All reports
Medium

kernel: xfrm: Wait for RCU readers during policy netns exit

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-43091

Probability of exploitation in the next 30 days: 0.13%

FIRST EPSS · 2026-11-21

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.

A flaw was found in the Linux kernel XFRM IPsec policy teardown path. xfrm_policy_fini() freed policy_bydst hash tables without waiting for concurrent RCU readers to finish even though those tables are published with rcu_assign_pointer() and read via RCU. That could allow use-after-free access during network namespace exit. Upstream waits for an RCU grace period (synchronize_rcu()) before freeing the hash table memory.