Skip to contentSkip to conversation

CVE-2026-90076: net/sched: fq: add overflow bounds to quantum and initial quantum

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: fq: add overflow bounds to quantum and initial quantum

fq_init() computes quantum = 2 * psched_mtu() and initial_quantum = 10 * psched_mtu() with no overflow check. A device with a huge MTU (e.g. dummy with max_mtu == 0 accepting MTU 2147483634) makes psched_mtu() return 0x80000000; the 2 * and 10 * multiplications wrap to 0 in 32-bit arithmetic, so q->quantum == 0. Then in fq_dequeue() the credit-refill loop adds 0 to f->credit (which stays <= 0) and goto begin loops forever under the qdisc lock, creating a soft lockup.

Clamp psched_mtu() to [1, 1 << 20] before multiplying so the product cannot wrap, then cap the result at 1 << 20, matching the bound already enforced on TCA_FQ_QUANTUM in fq_change().

Conditions to recreate the bug: a device whose MTU (plus hard_header_len) is large enough that 2 * psched_mtu() wraps (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-90076 to this issue.

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

	Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 6.12.110 with commit d16dac3925be95ad46e986d4b139c9898b6e227f
	Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 6.18.52 with commit f6b3e3848a5fca63438984acd6d9eceac80814c1
	Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 7.2.6 with commit e35acd56f244d94355f9ab237c2ecc8fba5e6f04
	Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 7.3-rc1 with commit 709f34f7c28dc4dd6c40343d101850f11e172312

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

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.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/d16dac3925be95ad46e986d4b139c9898b6e227f
	https://git.kernel.org/stable/c/f6b3e3848a5fca63438984acd6d9eceac80814c1
	https://git.kernel.org/stable/c/e35acd56f244d94355f9ab237c2ecc8fba5e6f04
	https://git.kernel.org/stable/c/709f34f7c28dc4dd6c40343d101850f11e172312