netfilter: ipset: Don't use test_bit() in lockless RCU readers in hash types
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 18f84d41d34fa35d0d64bbaea01fe664553ecc06 · < e4b4984e28c16406ecb318444dea4a8bf47def3e| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
Lockless RCU readers in Linux kernel netfilter ipset hash types use test_bit(), which does not guarantee the memory ordering needed when add, delete, or garbage collection runs in parallel. The input does not specify what an attacker could achieve or whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels with netfilter ipset hash types should check their kernels; affected versions are not specified.