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-98017 Overview
CVE-2026-98017 is a use-after-free vulnerability in the Linux kernel's net/sched traffic control subsystem. The flaw occurs when an RTM_NEWQDISC request causes clsact to bind a populated shared ingress block during ->init(), publishing an embedded mini_Qdisc to lockless readers. If the same request carries an invalid TCA_RATE, estimator setup fails after ->init(), and the unwind path synchronously frees the containing qdisc while tc_run() may still hold a reference to it.
A local attacker with the ability to issue netlink traffic control commands can trigger memory corruption, leading to privilege escalation or kernel compromise.
Critical Impact
Local attackers can trigger a use-after-free in the kernel scheduler, enabling privilege escalation and full host compromise on affected Linux systems.
Affected Products
- Linux kernel versions containing the clsact qdisc with the pre-patch tc_run() lockless mini_Qdisc publication path
- Distributions shipping kernels prior to the fixes referenced in commits 156a3ba, 20bf6fa, 5bfe927, and e6662f2
- Server, container, and workstation Linux deployments where unprivileged user namespaces or CAP_NET_ADMIN are available
Discovery Timeline
- 2026-09-25 - CVE-2026-98017 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98017
Vulnerability Analysis
The vulnerability resides in the Linux kernel's queueing discipline (qdisc) creation path for the clsact classifier action qdisc. During processing of an RTM_NEWQDISC netlink message, clsact->init() binds a shared ingress block that may already contain filters. As part of this binding, an embedded mini_Qdisc pointer is published to lockless readers via tc_run(), which executes in the receive path without holding RTNL.
When the same netlink request includes an invalid TCA_RATE attribute, rate estimator setup fails after ->init() has already published the pointer. The error unwind clears the pointer but then synchronously frees the enclosing qdisc. Concurrent packet processing in tc_run() can still dereference the freed memory, producing a classic use-after-free condition in the networking fast path.
Root Cause
The root cause is a lifetime management error between qdisc publication and qdisc teardown. The clsact init routine makes the qdisc reachable by lockless RCU readers before the full creation sequence completes successfully. The error path assumes exclusive ownership and performs a synchronous kfree, violating the invariant that any object exposed to RCU readers must be retired through an RCU grace period.
Attack Vector
An attacker with CAP_NET_ADMIN in a network namespace, which can be obtained by unprivileged users on systems that enable user namespaces, crafts an RTM_NEWQDISC netlink message that attaches a clsact qdisc to an interface sharing a populated ingress block. The message includes a malformed TCA_RATE attribute to force estimator setup failure. While the error path frees the qdisc, concurrent network traffic traversing tc_run() on another CPU dereferences the freed mini_Qdisc, allowing memory corruption primitives suitable for privilege escalation.
The patch set resolves the issue by retiring failed qdiscs through the same RCU helper used for normal destruction. The synchronous free is inlined into the RCU callback, ensuring no reader can observe a freed qdisc. The fix is distributed across upstream commits 156a3ba, 20bf6fa, 5bfe927, and e6662f2.
Detection Methods for CVE-2026-98017
Indicators of Compromise
- Kernel panics, oops messages, or KASAN use-after-free reports referencing tc_run, mini_qdisc_pair_swap, or clsact_init in call stacks
- Unexpected RTM_NEWQDISC netlink traffic from non-administrative processes or containers
- Audit records showing CAP_NET_ADMIN usage from unprivileged user namespaces followed by kernel errors
Detection Strategies
- Enable KASAN on test and canary systems to surface the use-after-free deterministically during fuzzing or exploit attempts
- Monitor kernel ring buffer (dmesg) and /var/log/kern.log for scheduler subsystem oops traces following qdisc configuration changes
- Correlate netlink audit events (AUDIT_NETFILTER_CFG) with subsequent kernel errors across short time windows
Monitoring Recommendations
- Deploy eBPF-based telemetry to track tc and clsact configuration operations by non-root processes and container workloads
- Alert on repeated qdisc creation failures returning -EINVAL tied to TCA_RATE parsing from the same process or namespace
- Centralize kernel logs and apply detections for crash signatures involving net/sched symbols
How to Mitigate CVE-2026-98017
Immediate Actions Required
- Apply the upstream kernel patches referenced in commits 156a3ba, 20bf6fa, 5bfe927, and e6662f2 or install vendor-provided updates that incorporate them
- Disable unprivileged user namespaces where not required by setting kernel.unprivileged_userns_clone=0 or the distribution-equivalent sysctl
- Audit container runtimes and workloads for unnecessary CAP_NET_ADMIN grants and remove them
Patch Information
The fix retires failed qdiscs through the standard RCU helper used for normal destruction, ensuring the mini_Qdisc is not freed while lockless readers in tc_run() may still reference it. Backported fixes are available in stable kernel trees via the commits listed in Kernel Git Commit 156a3ba, Kernel Git Commit 20bf6fa, Kernel Git Commit 5bfe927, and Kernel Git Commit e6662f2. Consult your distribution's security advisory channel for packaged updates.
Workarounds
- Restrict access to the tc command and netlink NETLINK_ROUTE operations through seccomp or Linux Security Modules (LSMs) such as SELinux or AppArmor
- Avoid attaching clsact qdiscs to interfaces sharing populated ingress blocks until patches are deployed
- Enforce container profiles that drop CAP_NET_ADMIN and block unprivileged user namespace creation
# Reduce attack surface by disabling unprivileged user namespaces
sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' >> /etc/sysctl.d/99-hardening.conf
# Verify running kernel version after patching
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

