CVE-2026-98013: net/sched: fq_pie: clamp quantum in change path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/sched: fq_pie: clamp quantum in change path
fq_pie_change() accepts any quantum value from userspace, including 1. With a crafted size table qdisc_pkt_len reaches ~2 GiB, so quantum=1 makes the deficit-refill loop spin ~2^31 times under the qdisc lock (a soft lockup / denial of service).
Add max(256U, ...) matching fq_codel_change().
Conditions to recreate the bug:
CONFIG_NET_SCH_FQ_PIE=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices).
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
The Linux kernel CVE team has assigned CVE-2026-98013 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 6.12.111 with commit f90fe65b977e7aa9eb302230a09eb18f8c32ceaa Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 6.18.53 with commit c11e3a39807eb5a200445ae9082843ab86800415 Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 7.2.7 with commit 6655b56e2801008566c594ef231f6c7b3f716c61 Issue introduced in 5.6 with commit ec97ecf1ebe485a17cd8395a5f35e6b80b57665a and fixed in 7.3-rc3 with commit 4864f58c53eb47257d55e01f47d4a9f355f7f970
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98013
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/sched/sch_fq_pie.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/f90fe65b977e7aa9eb302230a09eb18f8c32ceaa https://git.kernel.org/stable/c/c11e3a39807eb5a200445ae9082843ab86800415 https://git.kernel.org/stable/c/6655b56e2801008566c594ef231f6c7b3f716c61 https://git.kernel.org/stable/c/4864f58c53eb47257d55e01f47d4a9f355f7f970