Linux
netfilter: nft_set_pipapo: split gc into unlink and reclaim phase
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_pipapo: split gc into unlink and reclaim phase Yiming Qian reports Use-after-free in the pipapo set type: Under a large number of expired elements, commit-time GC can run for a very long time in a non-preemptible context, triggering soft lockup warnings and RCU stall reports (local denial of service). We must split GC in an unlink and a reclaim phase. We cannot queue elements for freeing until pointers have been swapped. Expired elements are still exposed to both the packet path and userspace dumpers via the live copy of the data structure. call_rcu() does not protect us: dump operations or element lookups starting after call_rcu has fired can still observe the free'd element, unless the commit phase has made enough progress to swap the clone and live pointers before any new reader has picked up the old version. This a similar approach as done recently for the rbtree backend in commit 35f83a75529a ("netfilter: nft_set_rbtree: don't gc elements on insert").
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < 65ca51b9fb85477ab92a04295aed34b38f7c062e
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < c0f1f85097ac2b6e7d750fe4d05807985cd3fd3a
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < 16f3595c0441d87dfa005c47d8f95be213afaa9e
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < 7864c667aed01a58b87ca518a631322cd0ac34c0
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < c12d570d71920903a1a0468b7d13b085203d0c93
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < 500a50a301ce962b019ab95053ac70264fec2c21
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < aff13667708dfa0dce136b8efd81baa9fa6ef261
- >= 3c4287f62044a90e73a561aa05fc46e62da173da, < 9df95785d3d8302f7c066050117b04cd3c2048c2
Fixed in 65ca51b9fb85477ab92a04295aed34b38f7c062e, c0f1f85097ac2b6e7d750fe4d05807985cd3fd3a, 16f3595c0441d87dfa005c47d8f95be213afaa9e, 7864c667aed01a58b87ca518a631322cd0ac34c0, c12d570d71920903a1a0468b7d13b085203d0c93, 500a50a301ce962b019ab95053ac70264fec2c21, aff13667708dfa0dce136b8efd81baa9fa6ef261, 9df95785d3d8302f7c066050117b04cd3c2048c2
- 5.6
Fixed in 0, 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.77, 6.18.17, 6.19.7, 7.0
Mitigation
Upgrade Linux to 65ca51b9fb85477ab92a04295aed34b38f7c062e or c0f1f85097ac2b6e7d750fe4d05807985cd3fd3a or 16f3595c0441d87dfa005c47d8f95be213afaa9e or 7864c667aed01a58b87ca518a631322cd0ac34c0 or c12d570d71920903a1a0468b7d13b085203d0c93 or 500a50a301ce962b019ab95053ac70264fec2c21 or aff13667708dfa0dce136b8efd81baa9fa6ef261 or 9df95785d3d8302f7c066050117b04cd3c2048c2 or later.
Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.167 or 6.6.130 or 6.12.77 or 6.18.17 or 6.19.7 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.