Linux kernel reference count underflow in blk-mq timeout handling
Affects Linux kernel versions from 6.1.84 before 6.1.193 when writing to zoned block devices and a hardware request timeout completes during the handler's flag update. Fixed in 6.1.193.
- Exploited
- No known exploitation
- Fix
- Fixed in 6.1.193
- Who is exposed
- Specific setups only
Summary
Written by a model
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: don't bring back flags of a completed request
The timeout handler sets and clears RQF_TIMED_OUT in a request it only holds a reference to, with a plain read-modify-write, while the completion clears flags in rq_flags the same way. If the two interleave, blk_mq_finish_request() runs twice with the flags back: the zone write plug reference is dropped twice and the scheduler's ->finish_request() is called again.
Change RQF_TIMED_OUT with cmpxchg, so the handler never writes back a flag that changed under it.
Who should check
Teams running Linux kernels with zoned block devices (SMR or ZNS) under zoned filesystems such as btrfs, f2fs or XFS zoned
“The request that gets finished twice is a local write to a zoned device”
What to do
Check whether your setup matches what the bug needs.
Write request on a zoned block device with RQF_ZONE_WRITE_PLUGGING set Request must hit a hardware timeout and then complete while the timeout handler is updating its flagsUpgrade to a fixed version: 6.1.193.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-139124 (blk-mq: don't bring back flags of a completed request), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-139124 (entry last updated 2026-12-01):
Affected:
- Linux Linux: from 6.1.84, fixed in 6.1.193
- Linux Linux: versions 6.5
Fixed versions: 6.1.193.
Conditions (all must be true for the bug to be hit):
- Write request on a zoned block device with RQF_ZONE_WRITE_PLUGGING set (source: https://www.cve.org/CVERecord?id=CVE-2026-139124)
- Request must hit a hardware timeout and then complete while the timeout handler is updating its flags (source: https://www.cve.org/CVERecord?id=CVE-2026-139124)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-139124 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139124 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/6c681181a9adf301550d5539b52b07d0e13292ad
- https://git.kernel.org/stable/c/a41beacd62449f29337419f40967e0e63ef06b0b
- https://git.kernel.org/stable/c/5d1abbe56e767959389a14f9f894c7817b64bdca
- https://git.kernel.org/stable/c/01686e7fffa83df2b36707ef7df2484e984b8e3b
- https://git.kernel.org/stable/c/47947572ad14c01872b60e91084954e0b0ebcadb
- https://git.kernel.org/stable/c/9531230ee1fcb8eca2c9cbb9bf02651cbf798842
- https://www.cve.org/CVERecord?id=CVE-2026-139124
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-139124
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-139124"}.Affected versions
- Linux LinuxFrom 6.1.84 · fixed in 6.1.193
- Linux Linux6.5
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7/10CVSS 7.0
- No patch0/5No signal
What would change the score
- Would score about 82 if added to CISA KEV
- Would score about 77 if CISA's SSVC rates exploitation active
- Would score about 42 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 8
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-139124 |
| Record | NVD · CVE-2026-139124 |
| Other links 6 | |
| Link | git.kernel.org · stable/c/6c681181a9adf301550d5539b52b07d0e13292ad |
| Link | git.kernel.org · stable/c/a41beacd62449f29337419f40967e0e63ef06b0b |
| Link | git.kernel.org · stable/c/5d1abbe56e767959389a14f9f894c7817b64bdca |
| Link | git.kernel.org · stable/c/01686e7fffa83df2b36707ef7df2484e984b8e3b |
| Link | git.kernel.org · stable/c/47947572ad14c01872b60e91084954e0b0ebcadb |
| Link | git.kernel.org · stable/c/9531230ee1fcb8eca2c9cbb9bf02651cbf798842 |
Questions about CVE-2026-139124
Is CVE-2026-139124 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A race in the kernel block layer lets a request's flags be restored after the request has already completed, causing a use-after-free of the zone write plug. The advisory says this can lead to memory corruption, hung zoned-filesystem writers, and starved I/O priorities.
Source: cve.org
Which versions are affected by CVE-2026-139124?
Linux: from 6.1.84 before 6.1.193. Linux: version 6.5.
Source: cve.now feed data
Am I affected, and how do I check?
Linux kernel versions from 6.1.84 before 6.1.193 are in the affected range. The bug needs a write to a zoned block device with the zone write plugging flag set, plus a hardware timeout whose completion lands inside a narrow window. To check a system's kernel version, run uname -r.
Source: cve.org
How do I fix CVE-2026-139124?
Upgrade the Linux kernel to 6.1.193 or later, which is the fixed version for this range.
Source: cve.org
Related
- CVE-2026-142948i2c: designware: queue only one read command for block reads
- CVE-2026-142947cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails
- CVE-2026-142946ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142945ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142944ASoC: amd: acp-es8336: Use an owned codec device reference
- CVE-2026-142943ASoC: amd: acp3x-es83xx: Keep an owned codec device reference
No corrections so far. Something wrong on this page? Report an error.