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

CVE-2026-98013: Linux Kernel fq_pie DoS Vulnerability

CVE-2026-98013 is a denial of service flaw in the Linux kernel fq_pie scheduler that allows attackers to trigger soft lockups through crafted quantum values. 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-98013 Overview

CVE-2026-98013 is a denial-of-service vulnerability in the Linux kernel's net/sched subsystem, specifically in the Flow Queue Proportional Integral controller Enhanced (fq_pie) queuing discipline. The fq_pie_change() function accepts arbitrary quantum values from userspace, including a value of 1. When combined with a crafted size table that inflates qdisc_pkt_len to roughly 2 GiB, the deficit-refill loop spins approximately 2^31 iterations while holding the qdisc lock. The result is a soft lockup and denial of service on the affected system. The upstream fix clamps the quantum with max(256U, ...), mirroring the existing fq_codel_change() behavior.

Critical Impact

A local user with CAP_NET_ADMIN (obtainable via user namespaces with unshare -Urn) can trigger a soft lockup under the qdisc lock, causing a kernel-level denial of service.

Affected Products

  • Linux kernel builds with CONFIG_NET_SCH_FQ_PIE=y
  • Stable kernel branches referenced by commits 4864f58, 6655b56, c11e3a3, and f90fe65
  • Distributions shipping the fq_pie queuing discipline prior to the clamp fix

Discovery Timeline

  • 2026-09-25 - CVE-2026-98013 published to the National Vulnerability Database (NVD)
  • 2026-09-25 - Last updated in the NVD database

Technical Details for CVE-2026-98013

Vulnerability Analysis

The fq_pie queuing discipline implements fair queuing with the PIE active queue management algorithm. Each flow is serviced using a deficit round-robin scheduler whose per-round credit is governed by the quantum parameter. The scheduler drains a flow by repeatedly subtracting packet length from a running deficit and refilling the deficit by quantum when it goes negative.

When quantum is set to 1 and qdisc_pkt_len is inflated through a user-supplied size table (stab), the refill loop must run on the order of 2^31 times to catch up to a single packet length. The loop executes while the qdisc spinlock is held, blocking all other transmit paths and triggering the kernel soft-lockup detector. The condition is pure CPU exhaustion inside the kernel, not memory corruption.

Root Cause

The root cause is missing input validation in fq_pie_change(). Unlike the sibling fq_codel_change() function, which clamps quantum using max(256U, ...), fq_pie accepted the raw value from userspace. The fix introduces the same lower bound so the scheduler cannot be configured with a pathologically small quantum.

Attack Vector

Exploitation is local and requires CAP_NET_ADMIN. On kernels that permit unprivileged user namespaces, an attacker can obtain this capability inside a namespace with unshare -Urn without any prior privilege. The attacker then creates an fq_pie qdisc, attaches a size table with a large size_log, and changes quantum to 1:

tc qdisc add dev dummy0 root fq_pie
tc qdisc change dev dummy0 root fq_pie quantum 1 \
stab data 32768 size_log 15 cell_log 0

Once traffic is enqueued, the dequeue path enters the deficit-refill loop and holds the qdisc lock long enough to trigger a soft lockup.

Detection Methods for CVE-2026-98013

Indicators of Compromise

  • Kernel log entries containing soft lockup - CPU# with stack traces referencing fq_pie_dequeue or pie_qdisc_dequeue.
  • tc qdisc change events setting fq_piequantum to values below 256.
  • Creation of size tables (stab) with unusually large size_log values attached to fq_pie qdiscs.
  • Spawning of user namespaces (unshare -Urn) immediately followed by tc invocations from non-root users.

Detection Strategies

  • Audit tc command execution via execve telemetry and alert on quantum arguments less than 256 applied to fq_pie.
  • Monitor kernel: watchdog: BUG: soft lockup messages correlated with network scheduler symbols.
  • Hunt for processes invoking unshare with -U and -r flags followed by qdisc modification syscalls.

Monitoring Recommendations

  • Forward /dev/kmsg and journald kernel messages to a central log pipeline for soft-lockup pattern matching.
  • Record netlinkRTM_NEWQDISC events and inspect attribute payloads for TCA_FQ_PIE_QUANTUM and TCA_STAB combinations.
  • Track per-host CPU time spent in softirq context; sudden spikes correlated with qdisc changes warrant investigation.

How to Mitigate CVE-2026-98013

Immediate Actions Required

  • Apply the upstream patches referenced by commits 4864f58, 6655b56, c11e3a3, and f90fe65.
  • Disable unprivileged user namespaces on systems that do not require them by setting kernel.unprivileged_userns_clone=0 (Debian/Ubuntu) or user.max_user_namespaces=0.
  • Restrict CAP_NET_ADMIN to trusted administrators and avoid granting it inside containers that process untrusted workloads.

Patch Information

The fix adds max(256U, ...) to the quantum assignment in fq_pie_change(), matching fq_codel_change(). Rebuild and deploy kernels that incorporate any of the stable commits listed above, or install vendor-provided kernel updates that reference CVE-2026-98013.

Workarounds

  • Unload or blacklist the sch_fq_pie module if the queuing discipline is not required (echo 'blacklist sch_fq_pie' > /etc/modprobe.d/fq_pie.conf).
  • Use mandatory access controls (SELinux, AppArmor, seccomp) to block tc and raw netlink access from non-administrative users and containers.
  • Replace fq_pie with fq_codel on affected hosts until patched kernels are deployed.
bash
# Disable unprivileged user namespaces and prevent fq_pie module loading
sysctl -w kernel.unprivileged_userns_clone=0
echo 'install sch_fq_pie /bin/true' >> /etc/modprobe.d/fq_pie.conf
rmmod sch_fq_pie 2>/dev/null || true

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.