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 5AEA43DCDB0 for ; Tue, 6 Oct 2026 10:13:08 +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=1791281589; cv=none; b=ODez4f0PMcqxiJxaa0lBVAOX2WDtUq9kcPpHN2JLQ83kb07zKImQTGOQ/uYY8u3Qu8bRND83zyWiQFyDap79Q1Q2Sg74vixWxb2ZE9AecUlac/YZwgjCAc2hMRTjN/vmeMvtz8QGi+uHZ1Z3qTAF8+xw5XZAJh0YrprtNZJ0I9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791281589; c=relaxed/simple; bh=5XU2U4UuL7P+fSX6RGvA3dV6yPus6coJ9h1xiFBo8dY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oKV5Fb7cIbBy75fy3fhpKERemS9Dx0ekSChNkxITjU0Y357BNwRSRnwpxJLVWWCMwLIpviRXz04lWOFtNgVnW+TQlDVbymY1jzIbrvnQDVT5Ni6vESujOQgO1VgxlzEhyJzcoNzJJRGkLUEpJ8K58rt/MSkgW/PVGPC46n7EY9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vi2qE3xU; 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="Vi2qE3xU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10CCF1F000FF; Tue, 6 Oct 2026 10:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791281588; bh=uaJi40ifjBt/KtP1oo6JOSVf1+oYdypYk2t4xT2p8TQ=; h=From:To:Cc:Subject:Date:Reply-To; b=Vi2qE3xU5tQ2ZTjpP+faWiDzdK0+O6YLyZw0oM8YzS0flqAZrKTEIokybSAoyrUKl PJRy/DZsxMu5wHEpHYpzq67E4vSVfdmCkObJPhsofVvkQEH5MlPCMmdQMWw5feg11M E4DSWt16NpQtDLSJxt89RymDVf9TN6CqT2WrlMRY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98229: xfrm: save input state data before secpath resets Date: Tue, 6 Oct 2026 10:45:30 +0200 Message-ID: <2026100645-CVE-2026-98229-cd6b@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=3408; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OSw+yAC86ADWRR03xOH9QeTuQLn5mZcasRqOAyp56uQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtvz1DJfQ29ZyNzW1Us90TbSNdKibWqvuV1auzjNJ+ /K2rW7siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn8qGCYX2nwXTntMv8s/z8d r30DXxbvmdo5j2HBjNCj73LDnlYoBWZUbRaYE7ty3foUAA== 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: xfrm: save input state data before secpath resets xfrm_input() stores the current xfrm_state in the skb secpath while it continues receive-side processing. Some input paths can reset that secpath before xfrm_input() has finished dereferencing the state. Receive callback users such as VTI and XFRM interfaces can reset the secpath. The VTI receive path does so before checking whether the packet crosses network namespaces, while the XFRM interface path does so only for cross-network-namespace packets. The XFRM_MAX_DEPTH error path can also reset the secpath before the final drop callback reports the current state's protocol. If secpath_reset() drops the last state reference while the state is concurrently deleted, xfrm_input() can still dereference the freed state when selecting transport_finish() or reporting the drop callback protocol. Save the state protocol on the stack while the state is still valid, and use the already saved address family for transport_finish(). A larval XFRM_STATE_ACQ state has no type, so retain nexthdr as its protocol. This preserves the existing drop-path fallback while avoiding the post-reset state dereferences without adding an extra state reference to every received packet. The Linux kernel CVE team has assigned CVE-2026-98229 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit df3893c176e9b0bb39b28ab5ec8113fa20ad1ee0 and fixed in 6.12.112 with commit 35de97850987b3d022ed17df5b2577242e746daf Issue introduced in 3.15 with commit df3893c176e9b0bb39b28ab5ec8113fa20ad1ee0 and fixed in 6.18.54 with commit 148db154066b066616b82c12d373e786eba1f96a Issue introduced in 3.15 with commit df3893c176e9b0bb39b28ab5ec8113fa20ad1ee0 and fixed in 7.2.8 with commit 537a5ae18b2be70f8eb0aca843682e81a69aab91 Issue introduced in 3.15 with commit df3893c176e9b0bb39b28ab5ec8113fa20ad1ee0 and fixed in 7.3-rc4 with commit 3cf5cdecd99c9c186a5ea518d93bbf3045b6e3aa 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-98229 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/xfrm/xfrm_input.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/35de97850987b3d022ed17df5b2577242e746daf https://git.kernel.org/stable/c/148db154066b066616b82c12d373e786eba1f96a https://git.kernel.org/stable/c/537a5ae18b2be70f8eb0aca843682e81a69aab91 https://git.kernel.org/stable/c/3cf5cdecd99c9c186a5ea518d93bbf3045b6e3aa