Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-100054

published high CVSS 3.1 · 7.8

ublk: mark the batch fetch command cancelable before linking it

Published
30 Nov 2026, 13:23:27 UTC
Updated
01 Dec 2026, 05:40:00 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxa4d88375539920b7401ead59d2f944ac23c668ea to < de0967c9aa6bb63d30e835c79fd935310f30402b · a4d88375539920b7401ead59d2f944ac23c668ea to < b59e96011d22e322fbf4d5d1d1124de538c278ed · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: ublk: mark the batch fetch command cancelable before linking it UBLK_U_IO_FETCH_IO_CMDS has the same order problem as the per-io commands: ublk_batch_attach() links the fetch command into fcmd_head and marks it cancelable only after dropping evts_lock. A cancel from the control path (ublk_batch_cancel_queue()) can take it in between and complete it, and the later mark puts a completed request on io_uring's cancelable list. Mark it before linking it. evts_lock orders the mark before the link, which is where the cancel finds it. Batch commands are not bounced to task work, so they can run from io-wq without uring_lock, and io_uring's cancel walk can now find a fetch command before it is linked. Two things make that safe: - initialize fcmd->node: it came from kzalloc(), so list_empty() saw a linked node and ublk_batch_cancel_cmd() would list_del_init() NULL pointers - on the -ENODEV path, complete the command with io_uring_cmd_done() before freeing fcmd: that removes it from the cancelable list under uring_lock, after which nothing can see fcmd Also use data->cmd instead of fcmd->cmd after dropping evts_lock: once fcmd is linked and not the active one, a control-path cancel may complete and free it.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The race is reached only through local io_uring passthrough on /dev/ublkcN and /dev/ublk-control: UBLK_U_IO_FETCH_IO_CMDS into ublk_ch_batch_io_uring_cmd() -> ublk_batch_attach(), racing UBLK_CMD_STOP_DEV -> ublk_stop_dev() -> ublk_cancel_dev() -> ublk_batch_cancel_queue(). No remote peer supplies data on either path. AC:L - The attacker owns both sides: one thread queues a second FETCH_IO_CMDS on a queue whose first fetch command still sits on fcmd_head, another sends STOP_DEV for the same device (it reaches ublk_cancel_dev() even before START_DEV). The window between spin_unlock(evts_lock) and io_uring_cmd_mark_cancelable() is short, but the attacker retries with DEL_DEV/ADD_DEV loops; nothing outside their control is needed. PR:L - ublk_ctrl_add_dev() accepts UBLK_F_UNPRIVILEGED_DEV from callers without CAP_SYS_ADMIN and does not strip UBLK_F_BATCH_IO for such devices; ublk_ctrl_uring_cmd_permission() then allows STOP_DEV on MAY_READ|MAY_WRITE access to the owner's /dev/ublkcN. An ordinary local user with unprivileged ublk access drives both sides; no init-namespace capability is checked. UI:N - The attacking process creates the device, opens /dev/ublkcN, submits the fetch commands and issues STOP_DEV itself; no other user or administrator has to act. S:U - The freed ublk_batch_fetch_cmd and the stale io_kiocb left on ctx->cancelable_uring_cmd are host kernel heap objects; the corruption stays inside the kernel's own authority and crosses no VM, IOMMU or sandbox boundary. C:H - ublk_batch_cancel_cmd() kfree()s fcmd, then ublk_batch_attach() reads fcmd->cmd from the freed 32-byte object and hands it to io_uring_cmd_mark_cancelable(); a reclaimed object supplies an attacker-chosen io_uring_cmd pointer, and the completed io_kiocb left on the cancelable list is a reusable-request UAF that can disclose kernel memory. I:H - io_uring_cmd_mark_cancelable() does hlist_add_head() through the possibly attacker-controlled cmd pointer and links an already completed request into ctx->cancelable_uring_cmd; on ring exit ublk_batch_cancel_fn() runs list_del_init(), a second io_uring_cmd_done() and a second kfree() on the freed fcmd: write-after-free plus double free. A:H - io_uring_try_cancel_uring_cmd() on ring exit walks the freed request and calls ->uring_cmd on it; sibling fix a261f0cacacc reports the same pattern ending in a GPF, so an unprivileged ublk owner can crash the kernel.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux a4d88375539920b7401ead59d2f944ac23c668ea to < de0967c9aa6bb63d30e835c79fd935310f30402b (affected · git)a4d88375539920b7401ead59d2f944ac23c668ea to < b59e96011d22e322fbf4d5d1d1124de538c278ed (affected · git)Default: unaffected Linux · cna
Linux Linux 7.0 (affected)0 to < 7.0 (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

ublk: mark the batch fetch command cancelable before linking it

Provenance

Schema
5.2
Searchable
yes
Content hash
f73c1f446c55fb59c954744f24b8118c49bd947824961e8674006406ab8f958f
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected