CVE-2026-139126
blk-mq: don't trust the cookie in blk_mq_poll()
Check your servers for CVE-2026-139126
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139126 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: don't trust the cookie in blk_mq_poll()
blk_mq_poll() indexes queue_hw_ctx[] with bio->bi_cookie unchecked. Zone write plugging keeps the segment count of a plugged write in __bi_nr_segments, which shares a union with the cookie, and clears REQ_POLLED, but bio_poll() only looks at the cookie. A plugged polled write with more segments than there are hardware queues reads past the array. The bio is also SLAB_TYPESAFE_BY_RCU, so a cookie from a bio reused for another device can meet the wrong array as well.
Ignore a cookie that is out of range or doesn't name a poll queue.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3e08773c3841e9db7a520908cc2b136a77d275ff, before e40dc9c454ef3fc136e2de2e69f365cc570bd7a6 affected from 3e08773c3841e9db7a520908cc2b136a77d275ff, before 7394fa1f5cba107a5b921e0b359af660a212bf7f affected from 3e08773c3841e9db7a520908cc2b136a77d275ff, before f6d85fc206d58ac6d91e73e865329124ba57be60 affected from 3e08773c3841e9db7a520908cc2b136a77d275ff, before 24974185999fd80b676fbe2a6c7a97bbd38aaf3a
Other versions: unaffected
|
| Linux |
affected 5.16 unaffected before 5.16 unaffected from 6.12.120 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139126 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139126
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139126
trivy image --scanners vuln IMAGE | grep CVE-2026-139126
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e40dc9c454ef3fc136e2de2e69f365cc570bd7a6 git.kernel.org
- https://git.kernel.org/stable/c/7394fa1f5cba107a5b921e0b359af660a212bf7f git.kernel.org
- https://git.kernel.org/stable/c/f6d85fc206d58ac6d91e73e865329124ba57be60 git.kernel.org
- https://git.kernel.org/stable/c/24974185999fd80b676fbe2a6c7a97bbd38aaf3a git.kernel.org
Source: the record CVE-2026-139126 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse