net/sched: sch_fq: fix integer overflow of "credit"
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.180, Kernel 5.15.111, Kernel 6.1.28 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_fq: fix integer overflow of "credit" if sch_fq is configured with "initial quantum" having values greater than INT_MAX, the first assignment of "credit" does signed integer overflow to a very negative value. In this situation, the syzkaller script provided by Cristoph triggers the CPU soft-lockup warning even with few sockets. It's not an infinite loop, but "credit" wasn't probably meant to be minus 2Gb for each new flow. Capping "initial quantum" to INT_MAX proved to fix the issue. v2: validation of "initial quantum" is done in fq_policy, instead of open coding in fq_change() _ suggested by Jakub Kicinski
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=3.12 <5.10.180, >=5.11 <5.15.111, >=5.16 <6.1.28, >=6.2 <6.2.15, >=6.3 <6.3.2, >=afe4fd062416b158a8a8538b23adc1930a9b88dc <4b8a05e3801661a0438fcd0cdef181030d966a5a, >=afe4fd062416b158a8a8538b23adc1930a9b88dc <4fbefeab88c6e79753a25099d455d3d59d2946b4, >=afe4fd062416b158a8a8538b23adc1930a9b88dc <7041101ff6c3073fd8f2e99920f535b111c929cb, >=afe4fd062416b158a8a8538b23adc1930a9b88dc <85f24cb2f10b2b0f2882e5786a09b4790bb3a0ad, >=afe4fd062416b158a8a8538b23adc1930a9b88dc <d0b43125ec892aeb1b03e5df5aab595097da225a, =3.12, >=afe4fd062416b158a8a8538b23adc1930a9b88dc <2322462d6f9ad4874f4e3c63df3b5cc00cb1acbd | 5.10.180, 5.15.111, 6.1.28, 6.2.15, 6.3.2, 4b8a05e3801661a0438fcd0cdef181030d966a5a, 4fbefeab88c6e79753a25099d455d3d59d2946b4, 7041101ff6c3073fd8f2e99920f535b111c929cb, 85f24cb2f10b2b0f2882e5786a09b4790bb3a0ad, d0b43125ec892aeb1b03e5df5aab595097da225a, 2322462d6f9ad4874f4e3c63df3b5cc00cb1acbd |
| linux-kernel: Kernel | >=3.12.0 <5.10.180, >=5.11.0 <5.15.111, >=5.16.0 <6.1.28, >=6.2.0 <6.2.15, >=6.3.0 <6.3.2 | 5.10.180, 5.15.111, 6.1.28, 6.2.15, 6.3.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket