CVE-2026-98011: net/sched: hhf: clamp quantum in change and init paths
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/sched: hhf: clamp quantum in change and init paths
hhf_change() accepts any quantum 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, ...) in hhf_change() matching fq_codel_change(). Clamp hhf_init() to [256, 1<<20] matching the siblings, and remove the old fallback that only set quantum=256 on overflow.
Conditions to recreate the bug:
CONFIG_NET_SCH_HHF=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices).
tc qdisc add dev dummy0 root hhf
tc qdisc change dev dummy0 root hhf quantum 1 stab data 32768 size_log 15 cell_log 0
The Linux kernel CVE team has assigned CVE-2026-98011 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.12.111 with commit 1113b674307ffddd402524bd1fd9d7d5629b705b Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.18.53 with commit 2e77947bbf6c166e76c038663832d0914418f761 Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 7.2.7 with commit 0898c6f9fa9ce2632ae88bd0f34a878ccc6335af Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 7.3-rc3 with commit eb56a495f59baf6cad5ed80e3ffb9078098b1346
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-98011
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_hhf.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/1113b674307ffddd402524bd1fd9d7d5629b705b https://git.kernel.org/stable/c/2e77947bbf6c166e76c038663832d0914418f761 https://git.kernel.org/stable/c/0898c6f9fa9ce2632ae88bd0f34a878ccc6335af https://git.kernel.org/stable/c/eb56a495f59baf6cad5ed80e3ffb9078098b1346