CVE-2024-49933
blk_iocost: fix more out of bound shifts
Reported by linux · Published October 21, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| perf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.115-126.197.amzn2023 |
| linux_kernel | linux | 6.11.3, 6.10.14, 6.6.55, 6.1.113, 5.15.168, 5.10.227 |
| Linux | Linux | 9bce8005ec0dcb23a58300e8522fe4a31da606fa, 364022095bdd4108efdaaa68576afa4712a5d085, 1b120f151871eb47ce9f283c007af3f8ae1d990e, 1ab2cfe19700fb3dde4c7dfec392acff34db3120 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | bec02dbbafad534674309f8b948094900f456797, bec02dbbafad534674309f8b948094900f456797, bec02dbbafad534674309f8b948094900f456797 |
| Linux | Linux | 5.10, 0, 5.10.227 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| Linux | Linux | *, *, 5.10 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| linux | linux_kernel | 5.10, 5.10, 5.10 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.115-126.197 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
Timeline
- Oct 21, 2024 CVE Published
- Oct 22, 2024 EPSS Score (30 in total, the first dated here)
- Oct 23, 2024 Coalition ESS Score (14 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 2, 2026 Security Advisory (449 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (381 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-49933
vulnetix vdb fixes CVE-2024-49933
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-49933/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart