net/sched: fq_pie: clamp quantum in change path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ec97ecf1ebe485a17cd8395a5f35e6b80b57665a · < c11e3a39807eb5a200445ae9082843ab86800415| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: fq_pie: clamp quantum in change path
fq_pie_change() accepts any quantum value 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, ...) matching fq_codel_change().
Conditions to recreate the bug: CONFIG_NET_SCH_FQ_PIE=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices).
tc qdisc add dev dummy0 root fq_pie tc qdisc change dev dummy0 root fq_pie quantum 1 stab data 32768 size_log 15 cell_log 0
From the CVE record · Linux
The Linux kernel's fq_pie qdisc accepts a quantum value that can make a deficit-refill loop spin under the qdisc lock, causing a soft lockup. A local attacker needs CAP_NET_ADMIN, which can be obtained in a user namespace with unshare -Urn, and CONFIG_NET_SCH_FQ_PIE enabled.
Administrators running Linux kernels with CONFIG_NET_SCH_FQ_PIE enabled should check for this issue; affected versions were not specified.