CVE-2024-49933 blk_iocost: fix more out of bound shifts
- 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: fix more out of bound shifts
Recently running UBSAN caught few out of bound shifts in the
ioc_forgive_debts() function:
UBSAN: shift-out-of-bounds in block/blk-iocost.c:2142:38
shift exponent 80 is too large for 64-bit type 'u64' (aka 'unsigned long
long')
...
UBSAN: shift-out-of-bounds in block/blk-iocost.c:2144:30
shift exponent 80 is too large for 64-bit type 'u64' (aka 'unsigned long
long')
...
Call Trace:
<IRQ>
dump_stack_lvl+0xca/0x130
__ubsan_handle_shift_out_of_bounds+0x22c/0x280
? __lock_acquire+0x6441/0x7c10
ioc_timer_fn+0x6cec/0x7750
? blk_iocost_init+0x720/0x720
? call_timer_fn+0x5d/0x470
call_timer_fn+0xfa/0x470
? blk_iocost_init+0x720/0x720
__run_timer_base+0x519/0x700
...
Actual impact of this issue was not identified but I propose to fix the
undefined behaviour.
The proposed fix to prevent those out of bound shifts consist of
precalculating exponent before using it the shift operations by taking
min value from the actual exponent and maximum possible number of bits.
Upgrade path
10 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.115-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +27 more | 6.1.115-1 | Fixed |
| debian/linux(Debian 13) | < 6.11.4-1 | 6.11.4-1 | Fixed |
| debian/linux(Debian 14) | < 6.11.4-1 | 6.11.4-1 | Fixed |
| Linux kernel | < 5.10.227; < 5.15.168; < 6.1.113; < 6.6.55 +16 more | 1ab2cfe19700fb3dde4c7dfec392acff34db3120, 1b120f151871eb47ce9f283c007af3f8ae1d990e, 1f61d509257d6a05763d05bf37943b35306522b1, 5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3, 6.12, 9bce8005ec0dcb23a58300e8522fe4a31da606fa, 59121bb38fdc01434ea3fe361ee02b59f036227f, 364022095bdd4108efdaaa68576afa4712a5d085, f4ef9bef023d5c543cb0f3194ecacfd47ef590ec | Fixed |
| Microsoft cbl mariner | < 5.15.173.1-1 | 5.15.173.1-1 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-127.137 | 5.15.0-127.137 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-54.56 | 6.8.0-54.56 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1019.23 | 6.8.0-1019.23 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 5.15.173.1-1 | 5.15.173.1-1 |
| debian/linux(Debian:12) | < 6.1.115-1 | 6.1.115-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| 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 |
Show 34 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.11.4-1 | 6.11.4-1 |
| debian/linux(Debian:14) | < 6.11.4-1 | 6.11.4-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-127.137 | 5.15.0-127.137 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 |
| Linux kernel | >= bec02dbbafad534674309f8b948094900f456797, < 1f61d509257d6a05763d05bf37943b35306522b1 | 1f61d509257d6a05763d05bf37943b35306522b1 |
| Linux kernel | >= bec02dbbafad534674309f8b948094900f456797, < f4ef9bef023d5c543cb0f3194ecacfd47ef590ec | f4ef9bef023d5c543cb0f3194ecacfd47ef590ec |
| Linux kernel | >= bec02dbbafad534674309f8b948094900f456797, < 59121bb38fdc01434ea3fe361ee02b59f036227f | 59121bb38fdc01434ea3fe361ee02b59f036227f |
| Linux kernel | >= bec02dbbafad534674309f8b948094900f456797, < 1ab2cfe19700fb3dde4c7dfec392acff34db3120 | 1ab2cfe19700fb3dde4c7dfec392acff34db3120 |
| Linux kernel | >= bec02dbbafad534674309f8b948094900f456797, < 1b120f151871eb47ce9f283c007af3f8ae1d990e | 1b120f151871eb47ce9f283c007af3f8ae1d990e |
| Linux kernel | >= bec02dbbafad534674309f8b948094900f456797, < 364022095bdd4108efdaaa68576afa4712a5d085 | 364022095bdd4108efdaaa68576afa4712a5d085 |
| Linux kernel | >= bec02dbbafad534674309f8b948094900f456797, < 9bce8005ec0dcb23a58300e8522fe4a31da606fa | 9bce8005ec0dcb23a58300e8522fe4a31da606fa |
| Linux kernel | = 5.10 | No fix listed |
| Linux kernel | < 5.10.227 | 5.10.227 |
| Linux kernel | < 5.15.168 | 5.15.168 |
| Linux kernel | < 6.1.113 | 6.1.113 |
| Linux kernel | < 6.6.55 | 6.6.55 |
| Linux kernel | < 6.10.14 | 6.10.14 |
| Linux kernel | < 6.11.3 | 6.11.3 |
| Linux kernel | < 6.12 | 6.12 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-54.56 | 6.8.0-54.56 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1019.23 | 6.8.0-1019.23 |
| Linux kernel | >= 5.11, < 5.15.168 | 5.15.168 |
| Linux kernel | >= 5.16, < 6.1.113 | 6.1.113 |
| Linux kernel | >= 6.2, < 6.6.55 | 6.6.55 |
| Linux kernel | >= 6.7, < 6.10.14 | 6.10.14 |
| Linux kernel | >= 6.11, < 6.11.3 | 6.11.3 |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-49933 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7166-1 vendor-advisory
- USN-7166-2 vendor-advisory
- USN-7166-3 vendor-advisory
- USN-7186-1 vendor-advisory
- USN-7186-2 vendor-advisory
- USN-7194-1 vendor-advisory
- USN-7166-4 vendor-advisory
- USN-7276-1 vendor-advisory
- USN-7277-1 vendor-advisory
- USN-7301-1 vendor-advisory
- USN-7303-1 vendor-advisory
- USN-7304-1 vendor-advisory
- USN-7303-2 vendor-advisory
- USN-7310-1 vendor-advisory
- USN-7311-1 vendor-advisory
- USN-7303-3 vendor-advisory
- USN-7384-1 vendor-advisory
- USN-7385-1 vendor-advisory
- USN-7386-1 vendor-advisory
- USN-7384-2 vendor-advisory
- USN-7403-1 vendor-advisory
- USN-7468-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
- git.kernel.org patch
- lists.debian.org
- lists.debian.org