KernelScan.io

HIGH Introduced in 5.6

netfilter HashGC Race

CVE-2026-98899

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.8MEDIUM

01

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.

02

Engine v0.9.0

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.

Affectednet/netfilter/ipset/ip_set_hash_gen.h (netfilter ipset)

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.

03

BranchIntroducedFixed inPatch commit
5.105.65.10.271eee5172741b2
5.155.65.15.222ecb48c6b9edc
5.45.4.245.567bd3d2350d1
5.55.5.85.6892399abd1a0
6.15.66.1.1890c46c9ce2413
6.125.66.12.1115d0c22e73656
6.185.66.18.53—
6.65.66.6.158ca9fab1ca155
mainline5.67.2—
cip/5.105.65.10.271-cip7867bd3d2350d1
cip/5.10-rt5.65.10.272-cip79-rt3567bd3d2350d1
cip/6.15.66.1.189-cip61eee5172741b2
cip/6.1-rt5.66.1.189-cip61-rt32eee5172741b2
cip/6.125.66.12.111-cip320c46c9ce2413

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35