{"schema":"threatline.record/2","record":{"id":"CVE-2026-99165","aliases":[],"summary":"sctp: revalidate output stream after association connect wait","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsctp: revalidate output stream after association connect wait\n\nWhen message interleaving is enabled, the first send waits for association\nestablishment before building its data chunks.  The wait drops the socket\nlock, and handshake processing can reduce the output stream count to the\npeer-advertised inbound stream count.  sctp_stream_init() then frees the\nextension of every removed stream.\n\nThe sender resumes with the stream that it checked before the wait.  If the\npeer removed that stream, sctp_outq_tail() later dereferences its NULL\nextension.  Fatal-oops policies then panic the host.\n\nKASAN: null-ptr-deref in range [0x38-0x3f]\nRIP: sctp_outq_tail+0x49e/0xaa0\nCall Trace:\n sctp_primitive_SEND\n sctp_sendmsg_to_asoc\n sctp_sendmsg\n\nA range check alone is insufficient.  Stream reconfiguration can grow the\noutput count again while the lock is released without recreating extensions\nfreed by the earlier shrink.  The stream can then be in range while its\nextension remains NULL.  The send-buffer wait has the same issue.\n\nFactor the range and extension checks into a helper and repeat both after\neach send-path wait that drops the socket lock.  Once the lock is\nreacquired, the validation remains stable through data creation and\nqueueing.\n\nIf validation fails after the connect wait, the auto-created association is\nalready established.  Return ESRCH so the existing caller path keeps it\nunder state-machine ownership instead of freeing it directly, which would\nleave protocol, counter and socket state inconsistent.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99165","source_modified_at":"2026-10-28T10:35:17.366Z","fetched_at":"2026-10-28T15:55:58.673066Z","product":"Linux","vendor":"Linux","versions":[{"version":"668c9beb9020d5834ee9e43c208190a07d2b1928","lessThan":"77a63d1b813b08c4e5a948f5e04fbaca6176aa8f","status":"affected","versionType":"git"},{"version":"668c9beb9020d5834ee9e43c208190a07d2b1928","lessThan":"fd56ac95ec31a05b66e8938debfa847f49c0e993","status":"affected","versionType":"git"},{"version":"668c9beb9020d5834ee9e43c208190a07d2b1928","lessThan":"b7ad72414c673ce1fa1f463e807cd4f34f8be9bf","status":"affected","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99165","source_modified_at":"2026-10-28T10:35:17.366Z","fetched_at":"2026-10-28T15:55:58.673066Z","product":"Linux","vendor":"Linux","versions":[{"version":"4.16","status":"affected"},{"version":"0","lessThan":"4.16","status":"unaffected","versionType":"semver"},{"version":"6.18.59","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.13","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-99165","source_modified_at":"2026-10-28T10:35:17.366Z","fetched_at":"2026-10-28T15:55:58.673066Z","package":{"name":"Linux","ecosystem":null},"version":"77a63d1b813b08c4e5a948f5e04fbaca6176aa8f","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-28T10:35:17.366Z","modified_at":"2026-10-28T10:35:17.366Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99165","fetched_at":"2026-10-28T15:55:58.673066Z","source_modified_at":"2026-10-28T10:35:17.366Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/77a63d1b813b08c4e5a948f5e04fbaca6176aa8f"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/fd56ac95ec31a05b66e8938debfa847f49c0e993"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/b7ad72414c673ce1fa1f463e807cd4f34f8be9bf"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-28T10:35:17.366Z","content_hash":"08bf47b7c08ccb160f13e7d46cef5542a199b00dc57638dc9b04ea267dbfe00e"}}
