CVE-2024-26671
blk-mq: fix IO hang from sbitmap wakeup race
Reported by linux · Published April 2, 2024
In the Linux kernel, the following vulnerability has been resolved: blk-mq: fix IO hang from sbitmap wakeup race In blk_mq_mark_tag_wait(), __add_wait_queue() may be re-ordered with the following blk_mq_get_driver_tag() in case of getting driver tag failure. Then in __sbitmap_queue_wake_up(), waitqueue_active() may not observe the added waiter in blk_mq_mark_tag_wait() and wake up nothing, meantime blk_mq_mark_tag_wait() can't get driver tag successfully. This issue can be reproduced by running the following test in loop, and fio hang can be observed in < 30min when running it on my test VM in laptop. modprobe -r scsi_debug modprobe scsi_debug delay=0 dev_size_mb=4096 max_queue=1 host_max_queue=1 submit_queues=4 dev=`ls -d /sys/bus/pseudo/drivers/scsi_debug/adapter*/host*/target*/*/block/* | head -1 | xargs basename` fio --filename=/dev/"$dev" --direct=1 --rw=randrw --bs=4k --iodepth=1 \ --runtime=100 --numjobs=40 --time_based --name=test \ --ioengine=libaio Fix the issue by adding one explicit barrier in blk_mq_mark_tag_wait(), which is just fine in case of running out of tag.
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-tools-libs | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-modules | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| bpftool-debuginfo | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-devel | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-debug-devel | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-tools-debuginfo | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-libbpf-static | Amazon Linux | 6.1.77-99.164.amzn2023 |
| bpftool | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-tools-libs-devel | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-debug-modules-extra | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
| kernel-modules-extra-common | Amazon Linux | 6.1.77-99.164.amzn2023 |
| kernel-modules-extra | errata.rockylinux.org | 4.18.0-553.123.1.el8 |
17 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | da55f2cc78418dee88400aafbbaed19d7ac8188e, da55f2cc78418dee88400aafbbaed19d7ac8188e, da55f2cc78418dee88400aafbbaed19d7ac8188e |
| Linux | Linux | 4.11, 0, 4.19.307 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | kernel-tools-devel | 0 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| amazon:2023 | perf | 0 |
| linux | linux_kernel | 4.11, 4.11, 4.11 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel | 0 |
| Siemens | RUGGEDCOM RST2428P | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | kernel-devel | 0 |
…and 4 more
Timeline
- Feb 19, 2024 CVE Published
- Apr 2, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 15, 2026 Security Advisory (128 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (123 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-26671
vulnetix vdb fixes CVE-2024-26671
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-26671/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart