Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98629 Overview
CVE-2026-98629 is a Linux kernel vulnerability in the net/sched subsystem, specifically in the cls_u32 classifier. The flaw involves manual hash table handle ID allocation (IDR) aliasing in the u32 traffic classifier. When a u32 hash table is created with an explicit handle such as tc filter add ... handle 801: u32 divisor N, the IDR entry keys on the raw handle while destroy paths free it under handle2id(handle). This key-domain mismatch leaks IDR entries and allows auto-allocated handles to alias live manual tables, routing lookups and TCA_U32_LINK references to the wrong classifier table.
Critical Impact
Handle aliasing in the cls_u32 classifier can misroute traffic classification lookups and cause permanent IDR leaks, affecting network traffic filtering integrity.
Affected Products
- Linux kernel (net/sched cls_u32 classifier)
- Multiple stable kernel branches referenced in upstream commits
- Systems using tc traffic control with u32 filter hash tables
Discovery Timeline
- 2026-10-18 - CVE CVE-2026-98629 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98629
Vulnerability Analysis
The vulnerability resides in the u32 classifier (cls_u32), used by the Linux traffic control (tc) subsystem to match packet fields. Hash tables (hnodes) within this classifier are tracked using an IDR (ID Radix tree) to map handle identifiers to table pointers. The classifier supports both automatic handle allocation and user-specified manual handles.
The handle2id() function folds handle values from the 0x800..0xFFF range back into the auto-allocated identifier space of 1..0x7FF. The allocation path for manually created tables keys the IDR entry on the raw handle, while the destroy path uses handle2id(handle). These two different key domains overlap in the collision range, producing inconsistent behavior.
A deleted manual table leaves its raw-keyed IDR entry stranded, producing a permanent memory leak. Worse, the delete operation can remove the IDR entry of an unrelated live auto-allocated table. Subsequent automatic allocations can then assign a handle that aliases a live manual table, causing u32_lookup_ht() first-match semantics to route lookups and TCA_U32_LINK references to the wrong table.
Root Cause
The root cause is an inconsistency between the IDR key domain used at allocation time and the key domain used at destruction time for u32 hash tables with manual handles. Allocation uses the raw handle while destruction normalizes through handle2id(), producing stranded entries and cross-table collisions ([CWE-662] concurrency/consistency class defect).
Attack Vector
Exploitation requires CAP_NET_ADMIN privileges to issue tc filter commands. A local privileged user, container with network admin capabilities, or orchestration component that creates and deletes u32 hash tables with handles in the 0x800..0xFFF range can trigger the condition. The reproduction sequence creates a manual table with handle 801: u32 divisor 16, then adds an auto-allocated table and observes two live tables sharing handle 0x80100000. A second reproduction adds and deletes handle 901: u32 divisor 1 twice; the re-add fails with -ENOSPC because the raw-keyed entry leaked on the first delete.
The vulnerability affects traffic classification integrity in the Linux kernel. Refer to the upstream fix commits for the exact code paths. No synthetic exploit code is published here.
Detection Methods for CVE-2026-98629
Indicators of Compromise
- Multiple u32 hash tables sharing the same effective handle visible in tc -d filter show dev <iface> ingress output
- Repeated -ENOSPC errors when re-creating u32 hash tables with handles in the 0x800..0xFFF range
- Unexpected routing of packets through a different filter table than the one configured in TCA_U32_LINK
Detection Strategies
- Audit kernel version strings on Linux hosts and compare against the stable branch commits listed in the kernel.org references to determine patch status
- Monitor tc filter command invocations through audit subsystem (auditd) for creation of manual u32 handles in the collision range
- Inspect /proc/slabinfo and kernel memory growth for signs of long-term IDR entry leakage on hosts that heavily reconfigure traffic filters
Monitoring Recommendations
- Enable kernel audit rules for tc and netlink configuration changes that create or destroy classifier hash tables
- Collect dmesg and kmemleak output on test systems that exercise cls_u32 reconfiguration workflows
- Centralize kernel version inventory and traffic control configuration changes in a security data lake for drift detection
How to Mitigate CVE-2026-98629
Immediate Actions Required
- Apply the upstream kernel patches from the stable branches referenced by the kernel.org commits as soon as distribution packages are available
- Restrict CAP_NET_ADMIN privileges to trusted administrators and service accounts; audit container runtime configurations that grant network admin capabilities
- Inventory hosts and workloads that programmatically manipulate tc u32 filters and prioritize them for patching
Patch Information
The fix keys the divisor-path allocation on handle2id(handle) so that allocation and removal share a single key domain. Manual handles that map onto an identifier already in use are rejected with -ENOSPC, and automatic allocation skips identifiers held by live manual tables. Patches are available in the following upstream commits: Kernel Commit 0a5f5d9, Kernel Commit 0fac292d, Kernel Commit 21fc0792, Kernel Commit 2f898f9e, Kernel Commit 54a454c5, and Kernel Commit f6696481.
Workarounds
- Avoid creating u32 hash tables with explicit handles in the 0x800..0xFFF range until the kernel patch is applied
- Remove or restrict CAP_NET_ADMIN from unprivileged containers and workloads that do not require traffic control configuration
- Where possible, rely on auto-allocated handles for u32 hash tables rather than user-specified manual handles
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

