net/sched: ets: clamp quantum in parse and fallback paths
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33 · < 8f80b113dea0bed3c1a31a4224b72775cd9ec52d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: ets: clamp quantum in parse and fallback paths
ets_qdisc_change() falls back to psched_mtu() with no floor for bands without an explicit quantum. With a crafted size table qdisc_pkt_len reaches ~2 GiB, so a zero psched_mtu on a headerless device makes the deficit-refill loop spin under the qdisc lock.
Move the floor into ets_quantum_parse() so explicitly configured quanta are also clamped to [256, 1<<20], not just the fallback path.
Conditions to recreate the bug: CONFIG_NET_SCH_ETS=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices).
tc qdisc add dev dummy0 root ets bands 3 strict 2 quanta 1 1
From the CVE record · Linux
The Linux kernel’s ETS scheduler can spin under a qdisc lock when a crafted size table produces a large packet length and a headerless device yields a zero fallback quantum. A local attacker with CAP_NET_ADMIN, including in a user namespace, can trigger this when CONFIG_NET_SCH_ETS is enabled; no user interaction is described.
Operators running Linux kernels with CONFIG_NET_SCH_ETS enabled should check their kernel versions against the vendor advisory; affected versions are not specified.