# CVE-2024-26671: blk-mq: fix IO hang from sbitmap wakeup race

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2024-04-02T06:49:13.834Z
- **Modified:** 2026-10-15T01:17:22.260Z

## Who should check

- Anyone running Linux \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 9525b38180e2753f0daa1a522b7767a2aa969676; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< ecd7744a1446eb02ccc63e493e2eb6ede4ef1e10; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 7610ba1319253225a9ba8a9d28d472fc883b4e2f; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 89e0e66682e1538aeeaa3109503473663cd24c8b; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 1d9c777d3e70bdc57dddf7a14a80059d65919e56; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 6d8b01624a2540336a32be91f25187a433af53a0; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< f1bc0d8163f8ee84a8d5affdf624cfad657df1d2; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 5266caaf5660529e3da53004b8b7174cab6374ed
- Anyone running Linux 4.11

## 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 and fixed versions

- Linux: \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 9525b38180e2753f0daa1a522b7767a2aa969676; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< ecd7744a1446eb02ccc63e493e2eb6ede4ef1e10; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 7610ba1319253225a9ba8a9d28d472fc883b4e2f; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 89e0e66682e1538aeeaa3109503473663cd24c8b; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 1d9c777d3e70bdc57dddf7a14a80059d65919e56; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 6d8b01624a2540336a32be91f25187a433af53a0; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< f1bc0d8163f8ee84a8d5affdf624cfad657df1d2; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 5266caaf5660529e3da53004b8b7174cab6374ed (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 5266caaf5660529e3da53004b8b7174cab6374ed or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26671. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26671.md
Affected: Linux >= da55f2cc78418dee88400aafbbaed19d7ac8188e, < 9525b38180e2753f0daa1a522b7767a2aa969676; >= da55f2cc78418dee88400aafbbaed19d7ac8188e, < ecd7744a1446eb02ccc63e493e2eb6ede4ef1e10; >= da55f2cc78418dee88400aafbbaed19d7ac8188e, < 7610ba1319253225a9ba8a9d28d472fc883b4e2f; >= da55f2cc78418dee88400aa…
Fixed in: Linux 9525b38180e2753f0daa1a522b7767a2aa969676, Linux 7610ba1319253225a9ba8a9d28d472fc883b4e2f, Linux 89e0e66682e1538aeeaa3109503473663cd24c8b, Linux 1d9c777d3e70bdc57dddf7a14a80059d65919e56, Linux 6d8b01624a2540336a32be91f25187a433af53a0, Linux 5266caaf5660529e3da53004b8b7174cab6374ed

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26671 being exploited?

There is no confirmed exploitation: CVE-2024-26671 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26671?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-26671?

Linux \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 9525b38180e2753f0daa1a522b7767a2aa969676; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< ecd7744a1446eb02ccc63e493e2eb6ede4ef1e10; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 7610ba1319253225a9ba8a9d28d472fc883b4e2f; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 89e0e66682e1538aeeaa3109503473663cd24c8b; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 1d9c777d3e70bdc57dddf7a14a80059d65919e56; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 6d8b01624a2540336a32be91f25187a433af53a0; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< f1bc0d8163f8ee84a8d5affdf624cfad657df1d2; \>= da55f2cc78418dee88400aafbbaed19d7ac8188e, \< 5266caaf5660529e3da53004b8b7174cab6374ed; Linux 4.11.

### Is there a fix for CVE-2024-26671?

Yes. Fixed in Linux 9525b38180e2753f0daa1a522b7767a2aa969676, Linux 7610ba1319253225a9ba8a9d28d472fc883b4e2f, Linux 89e0e66682e1538aeeaa3109503473663cd24c8b, Linux 1d9c777d3e70bdc57dddf7a14a80059d65919e56, Linux 6d8b01624a2540336a32be91f25187a433af53a0, Linux 5266caaf5660529e3da53004b8b7174cab6374ed. Upgrade Linux to 5266caaf5660529e3da53004b8b7174cab6374ed or later.

### How do I check if I'm affected by CVE-2024-26671?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9525b38180e2753f0daa1a522b7767a2aa969676>
- patch: <https://git.kernel.org/stable/c/ecd7744a1446eb02ccc63e493e2eb6ede4ef1e10>
- patch: <https://git.kernel.org/stable/c/7610ba1319253225a9ba8a9d28d472fc883b4e2f>
- patch: <https://git.kernel.org/stable/c/89e0e66682e1538aeeaa3109503473663cd24c8b>
- patch: <https://git.kernel.org/stable/c/1d9c777d3e70bdc57dddf7a14a80059d65919e56>
- patch: <https://git.kernel.org/stable/c/6d8b01624a2540336a32be91f25187a433af53a0>
- patch: <https://git.kernel.org/stable/c/f1bc0d8163f8ee84a8d5affdf624cfad657df1d2>
- patch: <https://git.kernel.org/stable/c/5266caaf5660529e3da53004b8b7174cab6374ed>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26671>

HTML: <https://flawdb.com/CVE-2024-26671> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26671>
