Linux
netfilter: ipset: Don't use test_bit() in lockless RCU readers in hash types
In the Linux kernel, the following vulnerability has been resolved: netfilter: ipset: Don't use test_bit() in lockless RCU readers in hash types Sashiko pointed out that there are a few lockless RCU readers using test_bit() which is a relaxed atomic operation and provides no memory barrier guarantees. Use test_bit_acquire() instead where the operation may run parallel with add/del/gc, i.e. is not one from the next cases - protected by region lock - in a set destroy phase - in a new/temporary set creation phase
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 18f84d41d34fa35d0d64bbaea01fe664553ecc06, < c107233d2ff4fd7cef5d02f9124b99194957a710
- >= 18f84d41d34fa35d0d64bbaea01fe664553ecc06, < 6329d3a9afe715fddda0460cfa46b496d61c2fe0
- >= 18f84d41d34fa35d0d64bbaea01fe664553ecc06, < 7445fe965b7d8756070a40e80f8b73348ccda1d7
- >= 18f84d41d34fa35d0d64bbaea01fe664553ecc06, < c4d257734e91bfcdc71d41843392dd6400b5bb1b
- >= 18f84d41d34fa35d0d64bbaea01fe664553ecc06, < 3219d74e4536658c937fd878a327257b86ce80dd
- >= 18f84d41d34fa35d0d64bbaea01fe664553ecc06, < e4b4984e28c16406ecb318444dea4a8bf47def3e
Fixed in c107233d2ff4fd7cef5d02f9124b99194957a710, 6329d3a9afe715fddda0460cfa46b496d61c2fe0, 7445fe965b7d8756070a40e80f8b73348ccda1d7, c4d257734e91bfcdc71d41843392dd6400b5bb1b, 3219d74e4536658c937fd878a327257b86ce80dd, e4b4984e28c16406ecb318444dea4a8bf47def3e
- 4.2
Fixed in 0, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to c107233d2ff4fd7cef5d02f9124b99194957a710 or 6329d3a9afe715fddda0460cfa46b496d61c2fe0 or 7445fe965b7d8756070a40e80f8b73348ccda1d7 or c4d257734e91bfcdc71d41843392dd6400b5bb1b or 3219d74e4536658c937fd878a327257b86ce80dd or e4b4984e28c16406ecb318444dea4a8bf47def3e or later.
Upgrade Linux to 0 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 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.