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-98012 Overview
CVE-2026-98012 is a denial of service vulnerability in the Linux kernel's Stochastic Fairness Queueing (SFQ) traffic scheduler. The sfq_change() function fails to properly clamp the quantum parameter supplied via the tc (traffic control) interface. When combined with a crafted size table (stab), qdisc_pkt_len can reach approximately 2 GiB, allowing a small quantum value to force the deficit-refill loop to iterate roughly 2^31 times while holding the qdisc lock. The result is a soft lockup of the affected CPU.
Critical Impact
A local user with CAP_NET_ADMIN (obtainable within an unprivileged user namespace via unshare -Urn) can trigger a kernel soft lockup, causing denial of service on the affected system.
Affected Products
- Linux kernel builds with CONFIG_NET_SCH_SFQ=y
- Stable kernel branches referenced by commits 534cd7e, e6c1cb7, f3820dc, and fb9f88a
- Distributions shipping unpatched upstream kernels with the SFQ qdisc enabled
Discovery Timeline
- 2026-09-25 - CVE-2026-98012 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98012
Vulnerability Analysis
The Stochastic Fairness Queueing qdisc implements per-flow fairness by scheduling packets based on a deficit counter and a configurable quantum value. The sfq_change() function processes runtime configuration updates issued through the tc qdisc change command. The validation path only rejects negative values via the (int)ctl->quantum < 0 check, accepting any non-negative integer including quantum=1.
SFQ also honors a size table (stab) attached to the qdisc. The size table transforms the reported packet length so that qdisc_pkt_len can be inflated to roughly 2 GiB when attacker-chosen parameters such as size_log 15 are supplied. During dequeue, SFQ repeatedly refills the per-flow deficit in quantum-sized increments until it covers the (inflated) packet length. With quantum=1 and a 2 GiB packet length, this inner loop spins approximately 2^31 times while the qdisc spinlock is held, blocking all other packet processing on that queue and triggering the kernel soft lockup detector.
Root Cause
The root cause is missing upper-bound and lower-bound clamping of the quantum parameter in the configuration change path. The initialization path applies sensible bounds, but sfq_change() does not mirror those checks. Comparable qdiscs such as fq_codel enforce max(256U, quantum) on the low end and reject values greater than 1 << 20 on the high end. This categorizes as improper input validation leading to an algorithmic complexity denial of service.
Attack Vector
Exploitation requires CAP_NET_ADMIN within the current network namespace. An unprivileged local user can obtain this capability inside a new user and network namespace with unshare -Urn, meaning the attack is reachable without root on systems that permit unprivileged user namespaces. The attacker creates a dummy interface, attaches an SFQ qdisc, then issues a tc qdisc change command setting quantum 1 together with a size table containing a large size_log value. The subsequent dequeue path stalls the CPU holding the qdisc lock.
See the upstream fix in kernel commit f3820dce and the backports in commit 534cd7ec, commit e6c1cb72, and commit fb9f88a3 for technical details on the clamp implementation.
Detection Methods for CVE-2026-98012
Indicators of Compromise
- Kernel log entries containing soft lockup - CPU#N stuck with stack traces referencing sfq_dequeue, sfq_enqueue, or qdisc_pkt_len
- Unexpected tc qdisc change operations setting SFQ quantum to values less than 256 or specifying stab size tables with large size_log parameters
- Processes invoking unshare -Urn followed by tc commands under non-administrator user contexts
Detection Strategies
- Audit kernel ring buffer (dmesg) and /var/log/kern.log for soft lockup warnings associated with networking softirq contexts
- Monitor execution of tc qdisc add and tc qdisc change commands system-wide using auditd rules on the tc binary
- Baseline normal qdisc configurations and alert on SFQ parameters outside the documented sane range (quantum between 256 and 1 << 20)
Monitoring Recommendations
- Enable auditd watches on /sbin/tc and /usr/sbin/tc with execve logging to capture arguments
- Track creation of user and network namespaces by non-privileged accounts via audit rules on the unshare and clone syscalls
- Forward kernel soft lockup and RCU stall events to a centralized log platform for correlation across hosts
How to Mitigate CVE-2026-98012
Immediate Actions Required
- Apply the upstream kernel patches that add max(256U, quantum) clamping and reject quantum > 1 << 20 in sfq_change()
- Disable unprivileged user namespaces where not required by setting kernel.unprivileged_userns_clone = 0 (Debian/Ubuntu) or user.max_user_namespaces = 0
- Restrict CAP_NET_ADMIN to trusted administrators and audit container runtime configurations that grant it to workloads
Patch Information
The fix is implemented in upstream Linux kernel commit f3820dce with stable backports in 534cd7ec, e6c1cb72, and fb9f88a3. Update to a distribution kernel that incorporates these commits and reboot affected hosts.
Workarounds
- Rebuild the kernel without CONFIG_NET_SCH_SFQ where the SFQ qdisc is not required
- Block loading of the sch_sfq module using /etc/modprobe.d/ blacklist entries on systems where SFQ is built as a module
- Prevent unprivileged user namespace creation to raise the privilege bar required to invoke tc with CAP_NET_ADMIN
# Disable unprivileged user namespaces (persistent)
echo 'kernel.unprivileged_userns_clone = 0' | sudo tee /etc/sysctl.d/99-no-userns.conf
sudo sysctl --system
# Alternatively, block the SFQ module from loading
echo 'install sch_sfq /bin/true' | sudo tee /etc/modprobe.d/disable-sch_sfq.conf
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

