Skip to main content
Vulnerability Database/CVE-2026-97959

CVE-2026-97959: Linux Kernel Route4 Privilege Escalation

CVE-2026-97959 is a privilege escalation vulnerability in the Linux kernel route4 classifier that causes memory leaks through empty bucket retention. This post explains the technical details, affected versions, and mitigation steps.

Published:

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-97959 Overview

CVE-2026-97959 is a memory leak vulnerability in the Linux kernel's net/sched subsystem, specifically within the cls_route traffic classifier. The flaw occurs when route4_change moves an existing filter to a different top-level bucket. The emptied source bucket is never freed, leaving a stale entry in head->table[]. This causes route4_delete to incorrectly report that live filters remain, pinning the tcf_proto structure and leaking kernel memory.

Critical Impact

Local users with network admin capability can trigger kernel memory leaks by manipulating traffic control filters, leading to resource exhaustion over time.

Affected Products

  • Linux kernel builds with CONFIG_NET_CLS_ROUTE4=y
  • Linux kernel builds with CONFIG_NET_SCH_INGRESS=y
  • Linux kernel builds with CONFIG_NET_CLS_ACT=y

Discovery Timeline

  • 2026-09-25 - CVE-2026-97959 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97959

Vulnerability Analysis

The cls_route classifier organizes filters into top-level buckets stored in head->table[]. The route4_change function allows an existing filter to be reassigned to a different bucket when its handle is recomputed from the TCA_ROUTE4_TO, TCA_ROUTE4_FROM, or TCA_ROUTE4_IIF attributes. The route4_set_parms routine performs this recomputation.

The handle-mismatch check is gated on the new flag. For an existing filter being modified, the new handle may differ from the previous one and resolve to a different bucket. When this reassignment occurs, the filter is correctly unlinked from the source bucket, but the bucket itself is never released after becoming empty.

Root Cause

The root cause is missing lifecycle management for bucket objects in cls_route. No reference count tracks how many filters are linked to a bucket, so the code cannot detect when a bucket becomes empty due to a filter move. The stale empty bucket persists in head->table[], causing route4_delete to report *last=false even after the last live filter is removed. This keeps the enclosing tcf_proto structure alive indefinitely.

Attack Vector

A local user with CAP_NET_ADMIN can trigger the leak through standard tc commands. The reproducer adds a route4 filter to the ingress qdisc, modifies it with new from/to parameters that remap it to a different bucket, then deletes the filter. The empty bucket remains, and the tcf_proto is never freed. Repeated execution progressively exhausts kernel memory.

The vulnerability is reachable through the Netlink traffic control interface and does not require remote network access. See the upstream fix commit for details on the corrected refcounting logic.

Detection Methods for CVE-2026-97959

Indicators of Compromise

  • Unexplained growth in kernel slab allocations tied to tcf_proto or route4 bucket objects over time.
  • Audit log entries showing repeated tc filter change operations against route4 classifiers followed by tc filter del.
  • tc filter show output listing more pref entries on an interface than expected after deletions.

Detection Strategies

  • Monitor /proc/slabinfo for sustained growth in network scheduler allocation caches on hosts using route4 filters.
  • Audit Netlink RTM_NEWTFILTER and RTM_DELTFILTER messages targeting the route classifier via auditd rules.
  • Correlate elevated privileged process activity using tc with kernel memory pressure metrics.

Monitoring Recommendations

  • Alert on processes invoking tc filter commands outside of change-controlled configuration management windows.
  • Track kernel memory consumption trends on systems that rely on traffic control for ingress policing.
  • Review which non-root service accounts hold CAP_NET_ADMIN and whether that capability is required.

How to Mitigate CVE-2026-97959

Immediate Actions Required

  • Apply the stable kernel updates referenced in the fix commits as soon as distribution builds become available.
  • Inventory hosts with CONFIG_NET_CLS_ROUTE4=y enabled and prioritize patching those systems.
  • Restrict CAP_NET_ADMIN to trusted administrators and service accounts only.

Patch Information

The upstream fix refcounts filters linked to each bucket and frees the bucket when the count reaches zero, removing the scan previously present in route4_delete. The counter is updated at every add, change, and delete site. Review the fix in the following commits: 1853f30, 2e2f130, 81dd117, and f8495d6.

Workarounds

  • Rebuild kernels with CONFIG_NET_CLS_ROUTE4=n where the route4 classifier is not required; the classifier has been deprecated in modern kernels.
  • Avoid using tc filter change to modify route classifier handles; delete and recreate filters instead to avoid the move path.
  • Enforce strict capability bounding on container workloads to prevent untrusted containers from invoking traffic control operations.
bash
# Verify whether the route4 classifier is compiled into the running kernel
grep CONFIG_NET_CLS_ROUTE4 /boot/config-$(uname -r)

# List current route4 filters on an interface
tc filter show dev lo ingress | grep 'route'

# Remove the clsact qdisc to detach all ingress filters (service impact)
tc qdisc del dev lo clsact

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.