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

CVE-2026-98235: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98235 is a privilege escalation flaw in the Linux kernel that affects network scheduler action handling, potentially allowing attackers to gain elevated privileges. 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-98235 Overview

CVE-2026-98235 is a reference counting flaw in the Linux kernel's traffic control subsystem, specifically in net/sched/act_api.c. A batched RTM_DELACTION request takes a temporary reference on each action before attempting deletion. When tcf_action_delete() fails on an action bound to a filter, the cleanup iterator tcf_act_for_each_action() stops at the first NULL slot. This leaves references held on the remaining actions in the batch. The leaked references cause a later delete of an unbound action to return success without removing it from the IDR (ID Radix tree).

Critical Impact

The flaw leaks kernel references on traffic control actions and can cause stale entries to persist in the action IDR after a reported successful delete.

Affected Products

  • Linux kernel (upstream net/sched subsystem)
  • Distributions shipping the affected act_api.c implementation
  • Kernel stable branches referenced in the fix commits

Discovery Timeline

  • 2026-10-06 - CVE-2026-98235 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98235

Vulnerability Analysis

The vulnerability resides in the netlink traffic control action API used by tc to manage classifier actions. A batched RTM_DELACTION message instructs the kernel to delete multiple actions in a single transaction. The handler tca_action_gd() first takes a temporary reference on each action in the batch to keep them alive during processing.

As tcf_action_delete() iterates the batch, it clears each processed slot and drops its temporary reference. If deletion of one action fails (for example, because the action is bound to a filter and cannot be removed), the function returns an error. The caller then invokes tcf_action_put_many() to release the temporary references on the actions that were never processed.

Root Cause

The cleanup helper tcf_action_put_many() uses the tcf_act_for_each_action() iterator, which halts at the first NULL slot in the action array. Because tcf_action_delete() cleared earlier slots as it worked, the iterator exits before reaching the unprocessed tail entries. Those tail actions keep an extra reference. A subsequent delete of such an unbound action decrements the reference count but does not reach zero, so the action is not removed from the IDR despite the API returning success.

Attack Vector

Exploitation requires the ability to issue RTM_DELACTION netlink requests against the traffic control subsystem, which generally requires CAP_NET_ADMIN in the relevant network namespace. A local attacker or workload with that capability can craft batches containing an action bound to a filter alongside other actions. Repeated operations drive reference leaks and leave stale IDR entries that can confuse subsequent management operations. See the kernel fix commits for the exact code change: Kernel Git Commit 1be63e4, Kernel Git Commit 57b477e, Kernel Git Commit 6e05e4, and Kernel Git Commit 9eaba1a.

No verified public exploit code is available. The upstream patch modifies tcf_action_put_many() to walk the full array and skip NULL slots so that all remaining references are released.

Detection Methods for CVE-2026-98235

Indicators of Compromise

  • Unexpected tc actions entries that persist after a successful tc actions del command
  • Kernel memory pressure or slab growth tied to tc_action allocations without corresponding frees
  • Repeated RTM_DELACTION netlink messages from non-administrative workloads

Detection Strategies

  • Audit kernel versions across the fleet and compare against the stable branches that received the fix commits
  • Monitor for unprivileged containers or namespaces holding CAP_NET_ADMIN and issuing batched action deletes
  • Correlate traffic control configuration drift with netlink activity logs captured via auditd

Monitoring Recommendations

  • Enable auditing of netlink socket operations touching the NETLINK_ROUTE family
  • Track tc command invocations through endpoint telemetry and shell history
  • Alert on anomalous growth of per-namespace action tables that cannot be reconciled with configuration state

How to Mitigate CVE-2026-98235

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the fix commits to all affected systems
  • Rebuild and redeploy custom kernels that carry backports of the net/sched action API
  • Restrict CAP_NET_ADMIN in container and multi-tenant environments to trusted workloads only

Patch Information

The fix walks the full action array in tcf_action_put_many() and skips NULL slots so that references held on unprocessed actions are released on DELACTION failure. The change is distributed across stable branches in commits 1be63e4, 57b477e, 6e05e4, and 9eaba1a. Deploy the distribution kernel update that incorporates these commits.

Workarounds

  • Avoid issuing batched RTM_DELACTION requests that mix filter-bound and unbound actions until the patch is deployed
  • Drop CAP_NET_ADMIN from untrusted namespaces and containers using Linux capability bounding sets
  • Prefer per-action delete requests over batched deletes in automation that manages tc state
bash
# Verify the running kernel includes the fix (example on Debian/Ubuntu)
uname -r
apt-get changelog linux-image-$(uname -r) | grep -i 'act_api\|DELACTION'

# Remove CAP_NET_ADMIN from an unprivileged container profile
capsh --drop=cap_net_admin -- -c 'tc actions list action gact'

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.