From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EE843D9DCC for ; Tue, 6 Oct 2026 10:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282228; cv=none; b=ohA75aEKHOmtRS1dMHPqiURYO6wXTPs4slZOmV4eJieZBUdFmfMwo4bCYh9d6+0Z2pM8QVMVdHQsq0JdP0hfnNNRANCageWqo+1e2m/In+GFKJ4IjIoJ5v+J5W4Iz4GjarvJG8PtCA0hDQ0GiHfztCz+x2d8Fpg94qbRzVssZEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282228; c=relaxed/simple; bh=r+6J8XCV4KdeKFnlYfZk8/F2cLBefOoDeIFO7csh0rk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MhYds227nvJkx5C2kb9PU3+7Ija5ris/swHDgo4/lfI8iPOZtSoomm7dyP2vg7jSaWTFb0ejOXm8wUgCgnikUZ3Oz+gs4+UB/LUuIrOVbMkFaPxF47NdqZkhPw6gw0pTaB3y7kfSTTxoHdpftzQLWXX3oVilDVX4lB64hG5IWsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q7sMZgdd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="q7sMZgdd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA26C1F000FF; Tue, 6 Oct 2026 10:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282227; bh=EG5mM4i3znefORSX0gOEQy8pCQfeZl74eZfS5hR0bs0=; h=From:To:Cc:Subject:Date:Reply-To; b=q7sMZgddsDT+yfBbamEIQkkDzlWdeV31K5SgCtCrSjgbpfb8hzMuI0ZtDVpzlDW9Z mmqLpMZWjrxHjpz9j9vZAkphSoVULR/oUlGrxosfEIg1ikPbpaVpJBV5pzXo2qevrO 8rKJIyzVgqrjADyXhT/9LiviTx0oMFuKpUAIr4OU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98241: ipv6: xfrm: use full sockets in local error paths Date: Tue, 6 Oct 2026 10:45:42 +0200 Message-ID: <2026100650-CVE-2026-98241-e3d7@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3975; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d5V6qX7i1SR07sJsqIPWLdjlz0FKHKYIm495+b+r8Y4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtjJl6j6L3GkWuvj7tfcXDzudePZ4WdAFjjYpTbMjz YX7FwW0dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEAnMY5tlOfvg14nyi9o1p vxqSZBrcLh49HccwT7Pzs5xve/08zee2Xcoqy3N+2DmIAQA= 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: ipv6: xfrm: use full sockets in local error paths xfrm6_local_rxpmtu() and xfrm6_local_error() dereference skb->sk as if it always pointed at a full IPv6 socket. That is not guaranteed. TCP SYN-ACK skbs can be owned by a TCP_NEW_SYN_RECV request_sock while the output path itself is driven by the full listener. If rerouting selects an IPv6 XFRM tunnel route with a lower MTU, the local PMTU/error handling path can reach these callbacks with that mini-socket still attached to the skb. The callbacks then miscast the request socket as a full inet/IPv6 socket and can read beyond the request_sock allocation when they access inet_sock or ipv6_pinfo state. Resolve the owner with skb_to_full_sk() in both callbacks and bail out when no full socket is attached. This matches the surrounding XFRM IPv6 PMTU/error logic, which already reasons about full sockets with skb_to_full_sk(). The Linux kernel CVE team has assigned CVE-2026-98241 to this issue. Affected and fixed versions =========================== Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 5.10.271 with commit b1a88633c36d2cbc3831382f3846754d344276fd Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 5.15.222 with commit 904a0e827d0d7189271a3a2eb648293809f25efc Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 6.1.189 with commit 675919e08ce266b8cac11fd9af29170e762a480f Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 6.6.158 with commit 60459c670329d586a58db5d8f811fa5accfe4862 Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 6.12.112 with commit ca3d68c3213475b53db6647e159dc73bd1af5ab1 Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 6.18.54 with commit 4c030a0400ebfd2318361c923a88103b2c67c49f Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 7.2.8 with commit c21f3f7fbfeda7c5794f606cb0ffcc2d9001eef8 Issue introduced in 3.2 with commit dd767856a36e00b631d65ebc4bb81b19915532d6 and fixed in 7.3-rc4 with commit 6973a21ee73c5567f883813c8ef414774b45892f 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-98241 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/ipv6/xfrm6_output.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/b1a88633c36d2cbc3831382f3846754d344276fd https://git.kernel.org/stable/c/904a0e827d0d7189271a3a2eb648293809f25efc https://git.kernel.org/stable/c/675919e08ce266b8cac11fd9af29170e762a480f https://git.kernel.org/stable/c/60459c670329d586a58db5d8f811fa5accfe4862 https://git.kernel.org/stable/c/ca3d68c3213475b53db6647e159dc73bd1af5ab1 https://git.kernel.org/stable/c/4c030a0400ebfd2318361c923a88103b2c67c49f https://git.kernel.org/stable/c/c21f3f7fbfeda7c5794f606cb0ffcc2d9001eef8 https://git.kernel.org/stable/c/6973a21ee73c5567f883813c8ef414774b45892f