Skip to contentSkip to conversation

CVE-2026-72326: net/sched: cake: reject overhead values that underflow length

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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: cake: reject overhead values that underflow length

CAKE accepts signed overhead values and stores them in an s16, but the adjusted packet length calculation uses unsigned arithmetic. A negative effective length can therefore wrap to a large value.

Such configurations make rate accounting depend on integer wraparound rather than on the packet size userspace intended to model. A static netlink lower bound is not enough because packets reaching CAKE can be smaller than any reasonable manual-overhead allowance.

Fold the signed overhead adjustment into the existing datapath MPU clamp so negative adjusted lengths are clamped before link-layer framing adjustments.

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

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

	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 5.10.261 with commit f511dd7bf6077aa7afbe72914520553fedaacbb4
	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 5.15.212 with commit e1df6cff03aad8c96e55a8b2a991e505c7a3ff6f
	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 6.1.178 with commit 297f459865360b46a887667cbf3aac6a6f013841
	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 6.6.145 with commit 336c1e414fc0e9844d445174e8ada2a7dd8d1c4b
	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 6.12.97 with commit bcdf3a3664f7d2c4e37e155f30f72ef33f041804
	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 6.18.40 with commit 7aa0e64fea778a9e3df73e64da95367ff8ad2ea5
	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 7.1.5 with commit f1e7807df5bf2d42a40266430e9f82f37633cdcf
	Issue introduced in 4.19 with commit a729b7f0bd5bf4919306556aed614438f5174537 and fixed in 7.2-rc3 with commit b7f97cae7ec1b6c3c32843c42be218690d310467

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

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_cake.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/f511dd7bf6077aa7afbe72914520553fedaacbb4
	https://git.kernel.org/stable/c/e1df6cff03aad8c96e55a8b2a991e505c7a3ff6f
	https://git.kernel.org/stable/c/297f459865360b46a887667cbf3aac6a6f013841
	https://git.kernel.org/stable/c/336c1e414fc0e9844d445174e8ada2a7dd8d1c4b
	https://git.kernel.org/stable/c/bcdf3a3664f7d2c4e37e155f30f72ef33f041804
	https://git.kernel.org/stable/c/7aa0e64fea778a9e3df73e64da95367ff8ad2ea5
	https://git.kernel.org/stable/c/f1e7807df5bf2d42a40266430e9f82f37633cdcf
	https://git.kernel.org/stable/c/b7f97cae7ec1b6c3c32843c42be218690d310467