CVE-2024-36916 blk-iocost: avoid out of bounds shift
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
blk-iocost: avoid out of bounds shift
UBSAN catches undefined behavior in blk-iocost, where sometimes
iocg->delay is shifted right by a number that is too large,
resulting in undefined behavior on some architectures.
[ 186.556576] ------------[ cut here ]------------
UBSAN: shift-out-of-bounds in block/blk-iocost.c:1366:23
shift exponent 64 is too large for 64-bit type 'u64' (aka 'unsigned long long')
CPU: 16 PID: 0 Comm: swapper/16 Tainted: G S E N 6.9.0-0_fbk700_debug_rc2_kbuilder_0_gc85af715cac0 #1
Hardware name: Quanta Twin Lakes MP/Twin Lakes Passive MP, BIOS F09_3A23 12/08/2020
Call Trace:
<IRQ>
dump_stack_lvl+0x8f/0xe0
__ubsan_handle_shift_out_of_bounds+0x22c/0x280
iocg_kick_delay+0x30b/0x310
ioc_timer_fn+0x2fb/0x1f80
__run_timer_base+0x1b6/0x250
...
Avoid that undefined behavior by simply taking the
"delay = 0" branch if the shift is too large.
I am not sure what the symptoms of an undefined value
delay will be, but I suspect it could be more than a
little annoying to debug.
Upgrade path
13 packages: 12 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.94-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +20 more | 6.1.94-1 | Fixed |
| debian/linux(Debian 13) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| debian/linux(Debian 14) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| Linux kernel | < 5.10.217; < 5.15.159; < 6.1.91; < 6.6.31 +17 more | 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10, 6.9, 62accf6c1d7b433752cb3591bba8967b7a801ad5, 488dc6808cb8369685f18cee81e88e7052ac153b, 844fc023e9f14a4fb1de5ae1eaefafd6d69c5fa1, beaa51b36012fad5a4d3c18b88a617aea7a9b96d, ce0e99cae00e3131872936713b7f55eefd53ab86, f6add0a6f78dc6360b822ca4b6f9f2f14174c8ca | Fixed |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 | Fixed |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 | Fixed |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-118.128 | 5.15.0-118.128 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-40.40 | 6.8.0-40.40 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1064.69 | 5.15.0-1064.69 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1060.63 | 5.15.0-1060.63 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.94-1 | 6.1.94-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:13) | < 6.8.11-1 | 6.8.11-1 |
Show 31 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:14) | < 6.8.11-1 | 6.8.11-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-118.128 | 5.15.0-118.128 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1064.69 | 5.15.0-1064.69 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1060.63 | 5.15.0-1060.63 |
| Linux kernel | >= 5160a5a53c0c4ae3708959d9465ea43ad5d90542, < 62accf6c1d7b433752cb3591bba8967b7a801ad5 | 62accf6c1d7b433752cb3591bba8967b7a801ad5 |
| Linux kernel | >= 5160a5a53c0c4ae3708959d9465ea43ad5d90542, < 844fc023e9f14a4fb1de5ae1eaefafd6d69c5fa1 | 844fc023e9f14a4fb1de5ae1eaefafd6d69c5fa1 |
| Linux kernel | >= 5160a5a53c0c4ae3708959d9465ea43ad5d90542, < f6add0a6f78dc6360b822ca4b6f9f2f14174c8ca | f6add0a6f78dc6360b822ca4b6f9f2f14174c8ca |
| Linux kernel | >= 5160a5a53c0c4ae3708959d9465ea43ad5d90542, < ce0e99cae00e3131872936713b7f55eefd53ab86 | ce0e99cae00e3131872936713b7f55eefd53ab86 |
| Linux kernel | >= 5160a5a53c0c4ae3708959d9465ea43ad5d90542, < 488dc6808cb8369685f18cee81e88e7052ac153b | 488dc6808cb8369685f18cee81e88e7052ac153b |
| Linux kernel | >= 5160a5a53c0c4ae3708959d9465ea43ad5d90542, < beaa51b36012fad5a4d3c18b88a617aea7a9b96d | beaa51b36012fad5a4d3c18b88a617aea7a9b96d |
| Linux kernel | = 5.10 | No fix listed |
| Linux kernel | < 5.10.217 | 5.10.217 |
| Linux kernel | < 5.15.159 | 5.15.159 |
| Linux kernel | < 6.1.91 | 6.1.91 |
| Linux kernel | < 6.6.31 | 6.6.31 |
| Linux kernel | < 6.8.10 | 6.8.10 |
| Linux kernel | < 6.9 | 6.9 |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-40.40 | 6.8.0-40.40 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 |
| Linux kernel | >= 5.10, < 5.10.217 | 5.10.217 |
| Linux kernel | >= 5.11, < 5.15.159 | 5.15.159 |
| Linux kernel | >= 5.16, < 6.1.91 | 6.1.91 |
| Linux kernel | >= 6.2, < 6.6.31 | 6.6.31 |
| Linux kernel | >= 6.7, < 6.8.10 | 6.8.10 |
| Linux kernel | = 6.9-rc1 | No fix listed |
| Linux kernel | = 6.9-rc2 | No fix listed |
| Linux kernel | = 6.9-rc3 | No fix listed |
| debian linux | = 10.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-36916 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6949-1 vendor-advisory
- USN-6950-1 vendor-advisory
- USN-6952-1 vendor-advisory
- USN-6955-1 vendor-advisory
- USN-6956-1 vendor-advisory
- USN-6957-1 vendor-advisory
- USN-6950-2 vendor-advisory
- USN-6950-3 vendor-advisory
- USN-6949-2 vendor-advisory
- USN-6952-2 vendor-advisory
- USN-6950-4 vendor-advisory
- USN-7019-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org third-party-advisory
- security.netapp.com third-party-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com
- ENISA EUVD EUVD-2024-36267 third-party-advisory