net/sched: sch_fq: fix integer overflow of "credit"
Description
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
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
10- osv-coords8 versionspkg:rpm/suse/kernel-default&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2012%20SP5pkg:rpm/suse/kernel-default&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/kernel-default&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg:rpm/suse/kernel-source&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/kernel-source&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg:rpm/suse/kernel-syms&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/kernel-syms&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg:rpm/suse/kgraft-patch-SLE12-SP5_Update_74&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2012%20SP5
< 4.12.14-122.280.1+ 7 more
- (no CPE)range: < 4.12.14-122.280.1
- (no CPE)range: < 4.12.14-122.280.1
- (no CPE)range: < 4.12.14-122.280.1
- (no CPE)range: < 4.12.14-122.280.1
- (no CPE)range: < 4.12.14-122.280.1
- (no CPE)range: < 4.12.14-122.280.1
- (no CPE)range: < 4.12.14-122.280.1
- (no CPE)range: < 1-8.5.1
Patches
Vulnerability mechanics
References
6- git.kernel.org/stable/c/2322462d6f9ad4874f4e3c63df3b5cc00cb1acbdmitre
- git.kernel.org/stable/c/4b8a05e3801661a0438fcd0cdef181030d966a5amitre
- git.kernel.org/stable/c/4fbefeab88c6e79753a25099d455d3d59d2946b4mitre
- git.kernel.org/stable/c/7041101ff6c3073fd8f2e99920f535b111c929cbmitre
- git.kernel.org/stable/c/85f24cb2f10b2b0f2882e5786a09b4790bb3a0admitre
- git.kernel.org/stable/c/d0b43125ec892aeb1b03e5df5aab595097da225amitre
News mentions
0No linked articles in our index yet.