VDB

CVE-2024-26671

CVE-2024-26671 PUBLISHED

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.

PackageEcosystemFixed in
kernel-tools-libserrata.rockylinux.org4.18.0-553.123.1.el8
kernel-moduleserrata.rockylinux.org4.18.0-553.123.1.el8
bpftool-debuginfoerrata.rockylinux.org4.18.0-553.123.1.el8
kernel-develerrata.rockylinux.org4.18.0-553.123.1.el8
kernel-debug-develerrata.rockylinux.org4.18.0-553.123.1.el8
kernel-tools-debuginfoerrata.rockylinux.org4.18.0-553.123.1.el8
kernel-libbpf-staticAmazon Linux6.1.77-99.164.amzn2023
bpftoolerrata.rockylinux.org4.18.0-553.123.1.el8
kernel-tools-libs-develerrata.rockylinux.org4.18.0-553.123.1.el8
kernel-debug-modules-extraerrata.rockylinux.org4.18.0-553.123.1.el8
kernel-modules-extra-commonAmazon Linux6.1.77-99.164.amzn2023
kernel-modules-extraerrata.rockylinux.org4.18.0-553.123.1.el8

17 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinuxda55f2cc78418dee88400aafbbaed19d7ac8188e, da55f2cc78418dee88400aafbbaed19d7ac8188e, da55f2cc78418dee88400aafbbaed19d7ac8188e
LinuxLinux4.11, 0, 4.19.307
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
amazon:2023bpftool0
amazon:2023python3-perf0
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2023kernel-tools-devel0
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
amazon:2023perf0
linuxlinux_kernel4.11, 4.11, 4.11
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel0
SiemensRUGGEDCOM RST2428P0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2023kernel-devel0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›