net/sched: fq_pie: clamp default quantum to avoid signed overflow
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f7942b2693bc24c7d609a03d06f97bee3b0bd96a, Kernel 044fa2498bbc2900f0c48a6ef2fdd5b2bdfc3795, Kernel 1f43e4dbc93b7d02761a024d5f895df823c07b72 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: net/sched: fq_pie: clamp default quantum to avoid signed overflow fq_pie_init() sets q->quantum = psched_mtu(qdisc_dev(sch)) without clamping. A device with a huge MTU (e.g. dummy with max_mtu == 0 accepting MTU 2147483634) makes psched_mtu() return 0x80000000, which overflows the signed flow->deficit to INT_MIN in fq_pie_qdisc_dequeue(), causing an infinite loop and soft lockup. Emulate fq_pie_policy which is already bounded to [1, 1 << 20]; clamp the default to [256, 1 << 20]. 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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <f7942b2693bc24c7d609a03d06f97bee3b0bd96a, >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <044fa2498bbc2900f0c48a6ef2fdd5b2bdfc3795, >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <1f43e4dbc93b7d02761a024d5f895df823c07b72, >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <435da3734a8e63d3067016accc977ed1d10aaaa0, >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <44dad8fe99b58a7fe2961e9eec6a5f07ace5b51f, >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <6f1be05faecef4c0f9a008200209f66ef2e133f7, >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <bf97fd2163ad1191ef8daa3d4df8372aee19e396, >=ec97ecf1ebe485a17cd8395a5f35e6b80b57665a <c86cd7ed0b0e44779a3d1683f03e4353baf4bdc9, =5.6 | f7942b2693bc24c7d609a03d06f97bee3b0bd96a, 044fa2498bbc2900f0c48a6ef2fdd5b2bdfc3795, 1f43e4dbc93b7d02761a024d5f895df823c07b72, 435da3734a8e63d3067016accc977ed1d10aaaa0, 44dad8fe99b58a7fe2961e9eec6a5f07ace5b51f, 6f1be05faecef4c0f9a008200209f66ef2e133f7, bf97fd2163ad1191ef8daa3d4df8372aee19e396, c86cd7ed0b0e44779a3d1683f03e4353baf4bdc9 |
| linux-kernel: Kernel | >=5.16.0 <6.1.188, >=5.6.0 <5.10.270, >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=5.11.0 <5.15.221 | 6.1.188, 5.10.270, 6.18.52, 7.2.6, 6.6.157, 6.12.110, 5.15.221 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket