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

CVE-2026-97958: Linux Kernel Traffic Control DoS Vulnerability

CVE-2026-97958 is a denial of service flaw in the Linux kernel's traffic control subsystem that causes CPU hogging and system hangs. This article covers the technical details, affected components, and mitigation strategies.

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

CVE-2026-97958 is a denial of service vulnerability in the Linux kernel's net/sched traffic control subsystem. The flaw resides in the tc_ctl_chain() function within cls_api.c. A local user can send repeated RTM_GETCHAIN netlink requests without reading responses, filling the receive buffer and causing netlink_attachskb() to return -EAGAIN. The replay logic in tc_ctl_chain() then loops indefinitely, hogging CPU and triggering a Hung Task splat. The fix restricts the replay path to RTM_NEWCHAIN operations, where it is actually required for module loading.

Critical Impact

Local attackers can trigger sustained CPU exhaustion and kernel hung task conditions by abusing netlink traffic control chain queries.

Affected Products

  • Linux kernel versions containing commit 9f407f1768d3 ("net: sched: introduce chain templates") prior to the fix
  • Distributions shipping affected mainline and stable kernel branches
  • Systems exposing CAP_NET_ADMIN capable netlink sockets to untrusted local users or containers

Discovery Timeline

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

Technical Details for CVE-2026-97958

Vulnerability Analysis

The vulnerability lives in tc_ctl_chain() in net/sched/cls_api.c, which handles netlink messages for traffic control chain management. When a netlink peer sends RTM_GETCHAIN requests but never calls recv() on the responses, the receiver socket's buffer fills up. Subsequent calls to tc_chain_notify() reach netlink_attachskb(), which returns -EAGAIN to signal backpressure. The handler then jumps to the replay: label and retries the operation. Because the client never drains the socket, this loop continues indefinitely while holding the RTNL mutex, blocking other netlink operations and triggering kernel hung task warnings on peer threads.

Root Cause

The replay: label was introduced for RTM_NEWCHAIN handling where tcf_proto_lookup_ops() may drop the RTNL lock to call request_module(). The retry logic was never necessary for RTM_GETCHAIN, which performs no module loading. Applying the replay path uniformly to all opcodes allowed a benign -EAGAIN from a slow or malicious reader to be interpreted as a transient lock-drop condition, producing an unbounded retry.

Attack Vector

An unprivileged local user with the ability to open an AF_NETLINKNETLINK_ROUTE socket can trigger the condition. The attacker sends RTM_GETCHAIN messages repeatedly without draining the socket's receive queue. The kernel thread servicing the request enters the replay loop, consuming a CPU core and holding RTNL. The upstream fix (commits 503ba58481e3, a1c2840d95af, dff39930ad5e, e9ac395bb561) scopes the replay logic exclusively to RTM_NEWCHAIN, allowing RTM_GETCHAIN to return normally when the socket is full. Refer to the kernel.org patch for the exact source change.

Detection Methods for CVE-2026-97958

Indicators of Compromise

  • Kernel log entries containing INFO: task <name>:<pid> is blocked on a mutex referencing tc_ctl_chain, tc_chain_notify, or netlink_attachskb
  • Sustained 100% CPU usage by processes repeatedly invoking sendto() on NETLINK_ROUTE sockets without matching recvmsg() calls
  • RTNL-related soft lockup or hung task warnings in dmesg originating from the traffic control subsystem

Detection Strategies

  • Monitor /proc/net/netlink for sockets with large Rmem queue depth paired with the owning process's syscall pattern
  • Use eBPF or perf tracing on tc_ctl_chain and netlink_attachskb to flag abnormal replay loop frequency
  • Alert on khungtaskd events whose stack frames include cls_api.c symbols

Monitoring Recommendations

  • Collect kernel ring buffer output centrally and parse for hung task splats involving net/sched paths
  • Baseline netlink traffic volume per process and alert on anomalous RTM_GETCHAIN request rates
  • Track per-container CAP_NET_ADMIN usage, since container workloads with that capability can trigger the condition

How to Mitigate CVE-2026-97958

Immediate Actions Required

  • Apply the upstream stable kernel patches referenced in the NVD entry and reboot affected hosts
  • Audit which workloads hold CAP_NET_ADMIN and remove the capability where it is not required
  • Restrict unprivileged user namespace creation if it is not needed for the workload

Patch Information

Four stable branch patches resolve the issue by applying the replay logic only when handling RTM_NEWCHAIN. Review and apply the fix from the appropriate branch: Kernel Git Patch 1, Kernel Git Patch 2, Kernel Git Patch 3, and Kernel Git Patch 4.

Workarounds

  • Use seccomp policies to block sendto() on AF_NETLINK sockets for workloads that do not require traffic control management
  • Drop CAP_NET_ADMIN from container specifications and systemd unit files where traffic control configuration is unnecessary
  • Disable unprivileged user namespaces via sysctl -w kernel.unprivileged_userns_clone=0 on distributions that honor the toggle
bash
# Configuration example
# Drop CAP_NET_ADMIN from a systemd service
# /etc/systemd/system/<service>.d/override.conf
[Service]
CapabilityBoundingSet=~CAP_NET_ADMIN
AmbientCapabilities=

# Restrict unprivileged user namespaces
sysctl -w kernel.unprivileged_userns_clone=0

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.