CVE-2026-43091: xfrm: Wait for RCU readers during policy netns exit
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfrm: Wait for RCU readers during policy netns exit
xfrm_policy_fini() frees the policy_bydst hash tables after flushing the policy work items and deleting all policies, but it does not wait for concurrent RCU readers to leave their read-side critical sections first.
The policy_bydst tables are published via rcu_assign_pointer() and are looked up through rcu_dereference_check(), so netns teardown must also wait for an RCU grace period before freeing the table memory.
Fix this by adding synchronize_rcu() before freeing the policy hash tables.
The Linux kernel CVE team has assigned CVE-2026-43091 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.9 with commit e1e551bc56302b80ff930c966f9985095fb1b70d and fixed in 6.6.136 with commit b66920a3348c0f63ba18365248fa21fbf0b3a937 Issue introduced in 4.9 with commit e1e551bc56302b80ff930c966f9985095fb1b70d and fixed in 6.12.83 with commit 438b1f668ad58f46ce699bb48e4698a7839e3f9e Issue introduced in 4.9 with commit e1e551bc56302b80ff930c966f9985095fb1b70d and fixed in 6.18.24 with commit 3733fce2871c9bca9dd18a1a23b1432ea215a094 Issue introduced in 4.9 with commit e1e551bc56302b80ff930c966f9985095fb1b70d and fixed in 6.19.14 with commit 33a3149dd81a1e2f52b80ee1e0fc380b39f3d028 Issue introduced in 4.9 with commit e1e551bc56302b80ff930c966f9985095fb1b70d and fixed in 7.0 with commit 069daad4f2ae9c5c108131995529d5f02392c446
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-43091
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_policy.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/b66920a3348c0f63ba18365248fa21fbf0b3a937 https://git.kernel.org/stable/c/438b1f668ad58f46ce699bb48e4698a7839e3f9e https://git.kernel.org/stable/c/3733fce2871c9bca9dd18a1a23b1432ea215a094 https://git.kernel.org/stable/c/33a3149dd81a1e2f52b80ee1e0fc380b39f3d028 https://git.kernel.org/stable/c/069daad4f2ae9c5c108131995529d5f02392c446