KernelScan.io

HIGH Introduced in 6.12

cls_u32 Handle Aliasing

CVE-2026-98629

CVSS 7.5 / 10.0 KernelScan AI

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

01

In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_u32: fix manual hash table handle IDR aliasing A u32 hash table created with an explicit handle ('tc filter add ... handle 801: u32 divisor N') keys its IDR entry on the raw handle, while the destroy paths free it under handle2id(handle). The two key domains disagree for handles in the 0x800..0xFFF htid range: handle2id() folds them back into the auto-allocated id space (1..0x7FF). A manual table therefore leaves its raw-keyed IDR entry unreachable on delete (a permanent leak), and its delete can drop the idr entry of an unrelated live auto table. A later auto allocation can then hand out a handle that aliases the live manual table; u32_lookup_ht() first-match routes lookups and TCA_U32_LINK for that htid to the wrong table. Key the divisor-path alloc on handle2id(handle) so allocation and removal share one key domain. A manual handle that maps onto an id already in use is rejected with -ENOSPC, and auto allocation skips ids held by live manual tables. Conditions to recreate: ip link add test0 type dummy tc qdisc add dev test0 clsact tc filter add dev test0 ingress protocol ip pref 1 \ handle 801: u32 divisor 16 tc filter add dev test0 ingress protocol ip pref 2 u32 divisor 16 tc -d filter show dev test0 ingress | grep 'fh 801:' # unpatched: two live tables with handle 0x80100000 (the pref 2 root # hnode is auto-allocated id 1); patched: the auto hnode takes id 2. Also tested with a poc with a live u32 table on the block, add/delete a manual table 'handle 901: u32 divisor 1' twice; unpatched, the re-add fails with -ENOSPC because the raw key leaked on the first delete.

02

Engine v0.9.0

Risk summary

A local attacker with CAP_NET_ADMIN (obtainable in an unprivileged user namespace) can create conflicting u32 hash table handles that cause IDR entry leaks and handle aliasing. This leads to traffic misclassification (integrity violation) and repeatable denial of service by exhausting the IDR pool. The bug is reachable via standard tc netlink commands on any system with the cls_u32 module.

Affectednet/sched/cls_u32.c (traffic control u32 classifier)

Vulnerability analysis

When a traffic control u32 hash table is created with an explicit handle in a certain numeric range, the kernel stores it using the raw handle value as a key, but the cleanup code uses a different, mapped key. This mismatch means deleting the table fails to remove its entry (leaking it permanently) and can instead remove a different, unrelated table's entry. Later automatic allocations then reuse the freed key, causing two active tables to share the same effective handle. As a result, packet classification lookups and link operations are directed to the wrong table, subverting traffic control policies. The fix ensures both creation and deletion use the same mapped key, rejecting manual handles that would collide with the automatic range and making automatic allocation skip keys held by manual tables. The flaw is triggered locally through standard traffic control commands requiring network administration privileges, which are available inside unprivileged containers.

03

BranchIntroducedFixed inPatch commit
6.16.1.1196.1.18921fc07924e99
6.116.11.106.1254a454c5e41f
6.126.126.12.112f6696481eedf
6.186.126.18.552f898f9ec7c7
6.66.6.636.6.1580fac292d93fd
7.26.127.2.90a5f5d9e94de
mainline6.127.3—
cip/6.16.126.1.189-cip6121fc07924e99
cip/6.1-rt6.126.1.189-cip61-rt3221fc07924e99
cip/6.126.126.12.112-cip3354a454c5e41f

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.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32