Linux
xfrm: Wait for RCU readers during policy netns exit
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e1e551bc56302b80ff930c966f9985095fb1b70d, < b2faee12538b5b008eaef65a4201eb29cb5cefb3
- >= e1e551bc56302b80ff930c966f9985095fb1b70d, < b66920a3348c0f63ba18365248fa21fbf0b3a937
- >= e1e551bc56302b80ff930c966f9985095fb1b70d, < 438b1f668ad58f46ce699bb48e4698a7839e3f9e
- >= e1e551bc56302b80ff930c966f9985095fb1b70d, < 3733fce2871c9bca9dd18a1a23b1432ea215a094
- >= e1e551bc56302b80ff930c966f9985095fb1b70d, < 33a3149dd81a1e2f52b80ee1e0fc380b39f3d028
- >= e1e551bc56302b80ff930c966f9985095fb1b70d, < 069daad4f2ae9c5c108131995529d5f02392c446
Fixed in b2faee12538b5b008eaef65a4201eb29cb5cefb3, b66920a3348c0f63ba18365248fa21fbf0b3a937, 438b1f668ad58f46ce699bb48e4698a7839e3f9e, 3733fce2871c9bca9dd18a1a23b1432ea215a094, 33a3149dd81a1e2f52b80ee1e0fc380b39f3d028, 069daad4f2ae9c5c108131995529d5f02392c446
- 4.9
Fixed in 0, 6.1.191, 6.6.136, 6.12.83, 6.18.24, 6.19.14, 7.0
Mitigation
Upgrade Linux to b2faee12538b5b008eaef65a4201eb29cb5cefb3 or b66920a3348c0f63ba18365248fa21fbf0b3a937 or 438b1f668ad58f46ce699bb48e4698a7839e3f9e or 3733fce2871c9bca9dd18a1a23b1432ea215a094 or 33a3149dd81a1e2f52b80ee1e0fc380b39f3d028 or 069daad4f2ae9c5c108131995529d5f02392c446 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.136 or 6.12.83 or 6.18.24 or 6.19.14 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.