Skip to contentSkip to conversation

CVE-2026-63919: xfrm: input: hold netns during deferred transport reinjection

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

xfrm: input: hold netns during deferred transport reinjection

Transport-mode reinjection stores a struct net pointer in skb->cb and uses it later from xfrm_trans_reinject(). That pointer must stay valid until the deferred callback runs.

Take a netns reference when queueing deferred reinjection work and drop it after the callback completes. Use maybe_get_net() so the queueing path does not revive a namespace that is already being torn down.

This keeps the existing workqueue design and fixes the netns lifetime handling in one place for all users of xfrm_trans_queue_net().

The Linux kernel CVE team has assigned CVE-2026-63919 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 5.10.259 with commit 7ee59eda8820b758ed29e1cd3222359c7b97302c
	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 5.15.210 with commit 2df7059a18afb7d3aee6c36cad5d371c198111d4
	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 6.1.176 with commit 8dfabcba6a943a7a02ebe1e1637c361ba96acbaa
	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 6.6.143 with commit 48ce101cd630d6745b6923b5bad8358bc4c119da
	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 6.12.93 with commit 55ddfc41451f01c588089cd74957a05311b6f202
	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 6.18.35 with commit 9f7ebb45a83afc3216e855e57d51bb4bc9b5232e
	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 7.0.12 with commit 9f67a36e91bb50d358760f381f233913fe5c09f8
	Issue introduced in 5.6 with commit 7b3801927e52f8621de311277f7fc727635019e7 and fixed in 7.1 with commit c16f74dc1d75d0e2e7670076d5375deda110ebeb

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-63919

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/7ee59eda8820b758ed29e1cd3222359c7b97302c
	https://git.kernel.org/stable/c/2df7059a18afb7d3aee6c36cad5d371c198111d4
	https://git.kernel.org/stable/c/8dfabcba6a943a7a02ebe1e1637c361ba96acbaa
	https://git.kernel.org/stable/c/48ce101cd630d6745b6923b5bad8358bc4c119da
	https://git.kernel.org/stable/c/55ddfc41451f01c588089cd74957a05311b6f202
	https://git.kernel.org/stable/c/9f7ebb45a83afc3216e855e57d51bb4bc9b5232e
	https://git.kernel.org/stable/c/9f67a36e91bb50d358760f381f233913fe5c09f8
	https://git.kernel.org/stable/c/c16f74dc1d75d0e2e7670076d5375deda110ebeb