CVE-2026-98629
net/sched: cls_u32: fix manual hash table handle IDR aliasing
Check your servers for CVE-2026-98629
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98629 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.82% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9b2c3184e126b941dfa716b8128ed6db92a64e2f, before 21fc07924e996e1e661268ca269c86b8d59d25b3 affected from 789f9963bd031c3a185605665b744912df8e7eda, before 0fac292d93fdb313099e98cce928b3a524c92c94 affected from 73af53d82076bbe184d9ece9e14b0dc8599e6055, before 54a454c5e41f5e2cb70c8163140ce095c5d5eefd affected from 73af53d82076bbe184d9ece9e14b0dc8599e6055, before f6696481eedfd5752b4b56eed715d0b0fe48b9c5 affected from 73af53d82076bbe184d9ece9e14b0dc8599e6055, before 2f898f9ec7c73c5697ee462681e7ea6984ee1f3d affected from 73af53d82076bbe184d9ece9e14b0dc8599e6055, before 0a5f5d9e94dead312d32c366b917c64e552b72f7 affected 4403f9293ce9ecc2a55c688d84ee37e3ba0fc1a8 affected from 6.1.119, before 6.1.189 affected from 6.6.63, before 6.6.158 affected from 6.11.10, before 6.12
Other versions: unaffected
|
| Linux |
affected 6.12 unaffected before 6.12 unaffected from 6.1.189 up to and including 6.1.* unaffected from 6.6.158 up to and including 6.6.* unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.55 up to and including 6.18.* unaffected from 7.2.9 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98629 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98629
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98629
trivy image --scanners vuln IMAGE | grep CVE-2026-98629
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/21fc07924e996e1e661268ca269c86b8d59d25b3 git.kernel.org
- https://git.kernel.org/stable/c/0fac292d93fdb313099e98cce928b3a524c92c94 git.kernel.org
- https://git.kernel.org/stable/c/54a454c5e41f5e2cb70c8163140ce095c5d5eefd git.kernel.org
- https://git.kernel.org/stable/c/f6696481eedfd5752b4b56eed715d0b0fe48b9c5 git.kernel.org
- https://git.kernel.org/stable/c/2f898f9ec7c73c5697ee462681e7ea6984ee1f3d git.kernel.org
- https://git.kernel.org/stable/c/0a5f5d9e94dead312d32c366b917c64e552b72f7 git.kernel.org
Source: the record CVE-2026-98629 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse