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

CVE-2026-97616: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-97616 is a privilege escalation flaw in the Linux kernel net/sched subsystem that causes reference leaks in action handling. This post explains its impact, 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-97616 Overview

CVE-2026-97616 affects the Linux kernel's traffic control subsystem, specifically the net/sched: act_api component. The flaw involves improper release of action references when a batched RTM_NEWACTION netlink request fails to initialize an action. When an action bound to a filter is encountered during cleanup, tcf_action_destroy() returns -EPERM without dropping a temporary reference taken by tcf_idr_check_alloc(). The error also halts cleanup of subsequent entries, leaking later actions and their reserved IDR slots.

Critical Impact

Exploitation leaks kernel memory and permanently reserves IDR slots, preventing reuse of action indices and enabling resource exhaustion against the traffic control subsystem.

Affected Products

  • Linux kernel (upstream mainline tree)
  • Linux kernel stable branches referenced in the fixing commits
  • Distributions shipping affected kernel versions in the net/sched subsystem

Discovery Timeline

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

Technical Details for CVE-2026-97616

Vulnerability Analysis

The vulnerability resides in the Linux kernel traffic control action API (net/sched/act_api.c). The traffic control subsystem allows user-space to install actions through batched RTM_NEWACTION netlink messages. When a new action replaces an existing one, tcf_idr_check_alloc() takes a temporary reference on the existing object.

If a later action in the batch fails to initialize, the kernel invokes tcf_action_destroy() to roll back the entries created so far. That cleanup path applies strict release semantics. For any action already bound to a filter, the strict check returns -EPERM and skips the reference drop.

The early return also prevents cleanup of entries that follow the bound action in the batch. Each untouched entry retains its reference count and its reserved slot in the IDR (ID radix tree), producing both a memory leak and a slot leak. This classifies as a Memory Leak and Resource Exhaustion issue in a privileged kernel subsystem.

Root Cause

The root cause is the use of strict release semantics inside a rollback path that must unconditionally release every reference taken earlier in the batch. The check that rejects bound actions is appropriate for explicit delete and flush operations but incorrect during batch failure recovery.

Attack Vector

A local actor with the CAP_NET_ADMIN capability in a namespace that permits traffic control configuration can craft a batched RTM_NEWACTION request that mixes a bound action with a later entry designed to fail initialization. Each triggering request leaks kernel memory and consumes IDR indices that cannot be reclaimed without a reboot. Repeated requests exhaust available action indices in the subsystem.

The fix replaces the strict call with tcf_idr_release(), which drops each reference held by the batch without rejecting bound actions. Explicit action deletion and flushing retain their separate bind-count checks. See the fixing commits for implementation details: Commit 0486177, Commit 478eb5a, Commit 64b36ea, and Commit f908c8a.

Detection Methods for CVE-2026-97616

Indicators of Compromise

  • Unexpected growth of kmalloc slabs associated with traffic control actions over time without matching free operations.
  • Failures to allocate new tc action indices on long-running hosts, surfaced as ENOSPC or EEXIST when loading filters.
  • Repeated batched RTM_NEWACTION netlink requests from the same process that return -EPERM partway through the batch.

Detection Strategies

  • Audit tc actions output over time and alert on monotonically growing action counts in namespaces where churn is expected to be bounded.
  • Enable kernel memory leak detection (kmemleak) in test environments to confirm leaks tied to the net/sched subsystem.
  • Correlate netlink audit records (AUDIT_NETFILTER_CFG, netlink socket activity) with processes that hold CAP_NET_ADMIN.

Monitoring Recommendations

  • Track /proc/slabinfo entries for traffic control object caches on hosts that run container runtimes or SDN control planes.
  • Monitor processes invoking tc operations and alert on anomalous batch sizes or repeated failure returns from RTM_NEWACTION.
  • Forward kernel ring buffer messages referencing act_api, tcf_idr, or tcf_action_destroy to a central log store for review.

How to Mitigate CVE-2026-97616

Immediate Actions Required

  • Apply the stable kernel updates that include the referenced fixing commits for net/sched: act_api.
  • Inventory hosts running affected kernels, prioritizing systems that expose traffic control configuration to container workloads or multi-tenant namespaces.
  • Restrict the CAP_NET_ADMIN capability to trusted processes and reduce the number of user namespaces that grant it.

Patch Information

Upgrade to a kernel release containing the fix. The patch replaces strict release semantics in the batched RTM_NEWACTION rollback path with tcf_idr_release(), which unconditionally drops references held by the batch while preserving bind-count checks for explicit delete and flush operations. Reference commits: Commit 0486177, Commit 478eb5a, Commit 64b36ea, Commit f908c8a.

Workarounds

  • Deny CAP_NET_ADMIN to unprivileged workloads by configuring seccomp, AppArmor, or SELinux policies that block RTM_NEWACTION netlink operations.
  • Disable or restrict user namespace creation on hosts that do not require it, using kernel.unprivileged_userns_clone=0 or equivalent distribution controls.
  • Reboot long-running hosts that show symptoms of IDR slot exhaustion in the traffic control subsystem to reclaim leaked indices until patching is complete.
bash
# Configuration example: disable unprivileged user namespaces
sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' >> /etc/sysctl.d/99-harden.conf

# Verify running kernel version against distribution patch notes
uname -r

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.