Vulnerability · Published Apr 2, 2024 · Assigned by Linux
CVE-2024-26671blk-mq: fix IO hang from sbitmap wakeup race
Medium 4.7
In plain English
A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-debug-kvm | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-kvm | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-rt-modules-extra | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | perf | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| AlmaLinux:8 | python3-perf | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| Debian:12 | linux | 6.1.82-1 | DEBIAN-CVE-2024-26671 |
| Debian:13 | linux | 6.7.7-1 | DEBIAN-CVE-2024-26671 |
| Debian:14 | linux | 6.7.7-1 | DEBIAN-CVE-2024-26671 |
| Rocky Linux:8 | kernel | 0:4.18.0-553.el8_10 | RLSA-2024:3138 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-553.rt7.342.el8_10 | RLSA-2024:2950 |
| Ubuntu:22.04:LTS | linux | 5.15.0-106.116 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1061.67 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1063.72 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1022.23~22.04.1 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1063.72.1 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1059.67 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1022.24~22.04.1 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1058.63 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1044.51 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | 6.5.0-41.41~22.04.2 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1054.57 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1057.63 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1058.63 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-106.116 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-41.41.1~22.04.1 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1054.55 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1021.22 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1026.26 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1015.15 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1024.25 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1059.65 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1024.24~22.04.1 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1054.57 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | 6.5.0-40.40.1~22.04.1 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1015.16~22.04.1 | UBUNTU-CVE-2024-26671 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1030.34 | UBUNTU-CVE-2024-26671 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | da55f2cc78418dee88400aafbbaed19d7ac8188e – before 9525b38180e2753f0daa1a522b7767a2aa969676da55f2cc78418dee88400aafbbaed19d7ac8188e – before ecd7744a1446eb02ccc63e493e2eb6ede4ef1e10da55f2cc78418dee88400aafbbaed19d7ac8188e – before 7610ba1319253225a9ba8a9d28d472fc883b4e2fda55f2cc78418dee88400aafbbaed19d7ac8188e – before 89e0e66682e1538aeeaa3109503473663cd24c8bda55f2cc78418dee88400aafbbaed19d7ac8188e – before 1d9c777d3e70bdc57dddf7a14a80059d65919e56da55f2cc78418dee88400aafbbaed19d7ac8188e – before 6d8b01624a2540336a32be91f25187a433af53a0da55f2cc78418dee88400aafbbaed19d7ac8188e – before f1bc0d8163f8ee84a8d5affdf624cfad657df1d2da55f2cc78418dee88400aafbbaed19d7ac8188e – before 5266caaf5660529e3da53004b8b7174cab6374ed |
| Linux | Linux | 4.11 |
References
- https://git.kernel.org/stable/c/9525b38180e2753f0daa1a522b7767a2aa969676
- https://git.kernel.org/stable/c/ecd7744a1446eb02ccc63e493e2eb6ede4ef1e10
- https://git.kernel.org/stable/c/7610ba1319253225a9ba8a9d28d472fc883b4e2f
- https://git.kernel.org/stable/c/89e0e66682e1538aeeaa3109503473663cd24c8b
- https://git.kernel.org/stable/c/1d9c777d3e70bdc57dddf7a14a80059d65919e56
- https://git.kernel.org/stable/c/6d8b01624a2540336a32be91f25187a433af53a0
- https://git.kernel.org/stable/c/f1bc0d8163f8ee84a8d5affdf624cfad657df1d2
- https://git.kernel.org/stable/c/5266caaf5660529e3da53004b8b7174cab6374ed
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html x_transferred
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html