HIGH Introduced in 5.6
netfilter HashGC Race
CVE-2026-98899
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.8MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: ipset: mark the rcu locked areas properly When we bump the uref counter, there's no need to keep the rcu lock because the referred hash table can't disappear. Also, from the same reason in mtype_gc we need the rcu lock and not a spinlock.
02KernelScan AI Analysis
Risk summary
A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can trigger a race condition in the ipset hash table garbage collection and add paths by manipulating ipsets. This improper RCU locking can lead to use-after-free, enabling kernel memory corruption, privilege escalation, or denial of service.
Vulnerability analysis
The ipset hash table implementation incorrectly used a spinlock in the garbage collection work handler where an RCU read lock was required, and had mismatched RCU lock/unlock ordering in the element add path. Because the hash table's lifetime is protected by a reference count (uref), the RCU read lock is sufficient and correct; the spinlock prevented proper RCU grace period observation, creating a window where the table could be freed while still being accessed. The fix replaces the spinlock with rcu_read_lock_bh/rcu_read_unlock_bh in mtype_gc and moves the RCU unlock earlier in mtype_add to cover only the reference count increment and table dereference. An attacker needs local access with CAP_NET_ADMIN — achievable inside a user namespace — to create and manipulate ipsets that trigger the garbage collection or add operations, making this a local privilege escalation vector in multi-tenant or container environments.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 5.6 | 5.10.271 | eee5172741b2 |
| 5.15 | 5.6 | 5.15.222 | ecb48c6b9edc |
| 5.4 | 5.4.24 | 5.5 | 67bd3d2350d1 |
| 5.5 | 5.5.8 | 5.6 | 892399abd1a0 |
| 6.1 | 5.6 | 6.1.189 | 0c46c9ce2413 |
| 6.12 | 5.6 | 6.12.111 | 5d0c22e73656 |
| 6.18 | 5.6 | 6.18.53 | — |
| 6.6 | 5.6 | 6.6.158 | ca9fab1ca155 |
| mainline | 5.6 | 7.2 | — |
| cip/5.10 | 5.6 | 5.10.271-cip78 | 67bd3d2350d1 |
| cip/5.10-rt | 5.6 | 5.10.272-cip79-rt35 | 67bd3d2350d1 |
| cip/6.1 | 5.6 | 6.1.189-cip61 | eee5172741b2 |
| cip/6.1-rt | 5.6 | 6.1.189-cip61-rt32 | eee5172741b2 |
| cip/6.12 | 5.6 | 6.12.111-cip32 | 0c46c9ce2413 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |