Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187612; b=gqYapxCSZNKDMgwou8wpcWc5RSEg4e5WGU7TsNGm/fRZs7huXpjkEwz1ELvEYwLNHMW2 KGwNHFKT11OeUMu98ikMA076Cu1FtcUK5SQWrJlcuO2vDFoJ39fY7HzVYDSz2HdLd/Kq/ dPNM/15G7mzY9S5CX5ST+XZbFsNP6qI+VOtt559Xz1nWCexFVhkoSImvK4YeZd2YAFsTX k7JIVkU5QYH57Hyly0DoddFuPPeNojpVqZrsOYezH+xdYDFEoWmChZL2iyqztiiVICFwE fRLhUo8JjB7jP146GvI0TFT5oX7q+0FPs6FTvPqHRb/0JTbjHNIq9Jtcb02h+RS77mw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187612; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=0+IGTl3PKJLVch7g9IUNDV6Gyo/0GW/QCxSeEYKQZpo=; b=5V2wz7Lm9qSIjDVQrWxSlE9QyVtAjuM9C7iT7x8VRJFDJEHcwgTs/d+uvIaaYWSQRexJ ZOKgOnJvAPSKL+8r0NUogI5JKiDfIEJO8v4+8praVz0oBK5v0zuWd9QaOATWWcsIXNMqG vO/Y5Ogj30H/WAjjyAoq/WIYHBtFyWayx8mAEpYXva+zSRaCjMFRVVvlXQR/3D5Z+zVKU Mc8xndR/QE5Koy0Qo2WNNdsI1HPmGgdxrl9ZWlXcFE9zaPxeGm1bXwAs5o4fGKKNGRYTa 72UWadquwXyVJuQ7oV18xg7ehsrt+wA3UMo2nf+hyk/3F9BMgeARsgcvssDH+UumvNw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ueqNtzsy; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CF7F606A31A for ; Wed, 28 Oct 2026 11:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ueqNtzsy Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81A181F01825; Wed, 28 Oct 2026 11:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187612; bh=0+IGTl3PKJLVch7g9IUNDV6Gyo/0GW/QCxSeEYKQZpo=; h=From:To:Cc:Subject:Date:Reply-To; b=ueqNtzsy6Ez0F3yqzHT132qmG0MCrpqqzV+CkJHmSdWvKnkEu90gPEz0GpqGNoDWm lniAzWJ8b17XaTz1T+sqV6nzFmZZN4N168v14VZYmv58BDnhA0i25ytVNsr6CjBD2N NAQJaywjgcgEHFAS1C9Mcp4315GAqMvPR/tDgCvk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99165: sctp: revalidate output stream after association connect wait Date: Wed, 28 Oct 2026 11:35:52 +0100 Message-ID: <2026102806-CVE-2026-99165-1897@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3481; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eZAYKHxpCnMxOzqndjftUXH3t6W95vrgj+U2j/s08eY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz99icHTfWbLluZ7t7Y5tv+4u2/rkH3fstnN+GjLc1 +ZUT5S50RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIbwsUpABPRqmaYzXbedHZuDOu+Pv/H rZd3MCntZr5jyjA/ZNX8nOv7NaRl/+bG1EWfWsu6dfEcAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: sctp: revalidate output stream after association connect wait When message interleaving is enabled, the first send waits for association establishment before building its data chunks. The wait drops the socket lock, and handshake processing can reduce the output stream count to the peer-advertised inbound stream count. sctp_stream_init() then frees the extension of every removed stream. The sender resumes with the stream that it checked before the wait. If the peer removed that stream, sctp_outq_tail() later dereferences its NULL extension. Fatal-oops policies then panic the host. KASAN: null-ptr-deref in range [0x38-0x3f] RIP: sctp_outq_tail+0x49e/0xaa0 Call Trace: sctp_primitive_SEND sctp_sendmsg_to_asoc sctp_sendmsg A range check alone is insufficient. Stream reconfiguration can grow the output count again while the lock is released without recreating extensions freed by the earlier shrink. The stream can then be in range while its extension remains NULL. The send-buffer wait has the same issue. Factor the range and extension checks into a helper and repeat both after each send-path wait that drops the socket lock. Once the lock is reacquired, the validation remains stable through data creation and queueing. If validation fails after the connect wait, the auto-created association is already established. Return ESRCH so the existing caller path keeps it under state-machine ownership instead of freeing it directly, which would leave protocol, counter and socket state inconsistent. The Linux kernel CVE team has assigned CVE-2026-99165 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 668c9beb9020d5834ee9e43c208190a07d2b1928 and fixed in 6.18.59 with commit 77a63d1b813b08c4e5a948f5e04fbaca6176aa8f Issue introduced in 4.16 with commit 668c9beb9020d5834ee9e43c208190a07d2b1928 and fixed in 7.2.13 with commit fd56ac95ec31a05b66e8938debfa847f49c0e993 Issue introduced in 4.16 with commit 668c9beb9020d5834ee9e43c208190a07d2b1928 and fixed in 7.3 with commit b7ad72414c673ce1fa1f463e807cd4f34f8be9bf Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99165 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/sctp/socket.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/77a63d1b813b08c4e5a948f5e04fbaca6176aa8f https://git.kernel.org/stable/c/fd56ac95ec31a05b66e8938debfa847f49c0e993 https://git.kernel.org/stable/c/b7ad72414c673ce1fa1f463e807cd4f34f8be9bf