Skip to contentSkip to conversation

CVE-2026-90073: net/sched: hhf: clamp quantum before hhf_change() to avoid overflow

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net/sched: hhf: clamp quantum before hhf_change() to avoid overflow

hhf_init() sets q->quantum = psched_mtu(qdisc_dev(sch)) with no overflow check. A device with a huge MTU (e.g. dummy with max_mtu == 0 accepting MTU 2147483634) makes weight * quantum overflow the signed deficit in hhf_dequeue(), spinning forever.

Clamp q->quantum before hhf_change() so both the opt and !opt paths see a sane quantum. Without this, bare "tc qdisc add ... hhf" succeeds with a clamped quantum but "tc qdisc add ... hhf limit 1000" (any option present) fails with -EINVAL because hhf_change() re-validates the unclamped default (sch_hhf.c:559). 256 matches fq_codel's floor and is a sane minimum for a DRR quantum.

Conditions to recreate the bug: a device whose MTU (plus hard_header_len) wraps psched_mtu() into the sign bit (e.g. a dummy device with max_mtu == 0 accepting MTU 2147483634). Requires CAP_NET_ADMIN in a user namespace.

The Linux kernel CVE team has assigned CVE-2026-90073 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 5.10.270 with commit 2e0f0729f922c8de13801004e2131b57646c7c5f
	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 5.15.221 with commit 0c66223e90ddb4fd3700965a9241f2fde7bd6bc7
	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.1.188 with commit 20b65bf7ca06e48ec1d62ed8012f71205328dbe4
	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.6.157 with commit dea2789a9d5ff38bdd77f2e64d550430899e2839
	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.12.110 with commit fa9c2055f0a60f801ccf286af53d387dc6202c3f
	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.18.52 with commit 99770b5d8e0e1c69b996f74a19d71afd2c4a9aa4
	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 7.2.6 with commit 2446644b0f6d045b01db6acbaf55552dbec8a59a
	Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 7.3-rc1 with commit 2164b512b97bb053e8ce4d6e95576f11bed6a005

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-90073

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/2e0f0729f922c8de13801004e2131b57646c7c5f
	https://git.kernel.org/stable/c/0c66223e90ddb4fd3700965a9241f2fde7bd6bc7
	https://git.kernel.org/stable/c/20b65bf7ca06e48ec1d62ed8012f71205328dbe4
	https://git.kernel.org/stable/c/dea2789a9d5ff38bdd77f2e64d550430899e2839
	https://git.kernel.org/stable/c/fa9c2055f0a60f801ccf286af53d387dc6202c3f
	https://git.kernel.org/stable/c/99770b5d8e0e1c69b996f74a19d71afd2c4a9aa4
	https://git.kernel.org/stable/c/2446644b0f6d045b01db6acbaf55552dbec8a59a
	https://git.kernel.org/stable/c/2164b512b97bb053e8ce4d6e95576f11bed6a005