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-100055

published high CVSS 3.1 · 7.8

ublk: mark the io command cancelable before publishing it

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

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < f1de3e25aa13a74c6580cb922be3522c51407885 · 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < 49e950f877abdf49427c252d328727a4fc9e8625 · 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < 9a735ee97f7f381374cf10e53acc4c97829c8939 · 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < a261f0cacacc022e4fab5b8e38c59f74ce4942e8 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (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 io command cancelable before publishing it FETCH, COMMIT_AND_FETCH and NEED_GET_DATA publish the command in io->cmd before marking it cancelable. A cancel from the control path (STOP_DEV, QUIESCE_DEV) can complete it in between: issue path control-path cancel io->cmd = C take C, io_uring_cmd_done(C): C not marked, nothing to unlink ublk_prep_cancel(C) the completed C is linked on the cancelable list ring exit: the cancel walk hits it → GPF (KASAN, with a delay added) Mark the command before ublk_fill_io_cmd() publishes it. The handlers run with uring_lock held, as io_uring's cancel walk does, so marking takes no lock and the walk can't see a marked command before it is published. smp_wmb() orders the mark before the io->cmd store; the cancel loads cmd with READ_ONCE(io->cmd) before reading cmd->flags. A marked command has to be completed by io_uring_cmd_done(), so a failed FETCH and the inline UBLK_IO_RES_OK of NEED_GET_DATA now do that. The CQE is the same.

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 - Both sides of the race are local io_uring passthrough: UBLK_IO_FETCH_REQ/COMMIT_AND_FETCH_REQ on /dev/ublkcN into ublk_ch_uring_cmd_local(), and UBLK_CMD_STOP_DEV on /dev/ublk-control into ublk_stop_dev() -> ublk_cancel_dev() -> ublk_cancel_cmd(). No remote peer supplies any data on either path. AC:L - The attacker drives both sides. One thread issues FETCH or COMMIT_AND_FETCH; another sends STOP_DEV, which reaches ublk_cancel_dev() even before START_DEV. The window runs from ublk_fill_io_cmd() publishing io->cmd to io_uring_cmd_mark_cancelable(), and COMMIT_AND_FETCH widens it with __ublk_complete_rq(). It is retried with DEL_DEV/ADD_DEV loops. PR:L - ublk_ctrl_add_dev() accepts UBLK_F_UNPRIVILEGED_DEV from callers without CAP_SYS_ADMIN. ublk_ctrl_uring_cmd_permission() then allows STOP_DEV given MAY_READ|MAY_WRITE on the owner's /dev/ublkcN, and ublk_ch_open() has no capability check. An ordinary user with unprivileged ublk access drives FETCH and STOP_DEV without any init-namespace capability. UI:N - The attacking process creates the device, opens /dev/ublkcN, submits the FETCH or COMMIT_AND_FETCH commands, sends STOP_DEV and closes its ring itself. No other user or administrator has to act. S:U - The completed io_kiocb left linked on ctx->cancelable_uring_cmd is a host kernel heap object. The corruption stays within the kernel's own authority and crosses no VM, IOMMU or sandbox boundary. C:H - ublk_cancel_cmd() completes the command through io_uring_cmd_done() while it is still unmarked, so it is never unlinked, and ublk_prep_cancel() then links the finished request. That request is recycled from the io_kiocb cache for attacker-chosen ops, which gives a reusable-request use-after-free/type confusion that can disclose kernel memory. I:H - The stale req->hash_node stays on the cancelable hlist while the io_kiocb is reused, and poll and later marks use the same hash_node, so list pointers are corrupted. At ring exit, io_uring_try_cancel_uring_cmd() calls req->file->f_op->uring_cmd() on the recycled request, which is a type-confused indirect call usable for control-flow hijack. A:H - At ring exit, io_uring_try_cancel_uring_cmd() walks the completed request that ublk_prep_cancel() linked; the fix commit reports this as a general protection fault (GPF) under KASAN. The attacker can repeat the STOP_DEV race at will to 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 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < f1de3e25aa13a74c6580cb922be3522c51407885 (affected · git)216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < 49e950f877abdf49427c252d328727a4fc9e8625 (affected · git)216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < 9a735ee97f7f381374cf10e53acc4c97829c8939 (affected · git)216c8f5ef0f209a3797292c487bdaa6991ab4b92 to < a261f0cacacc022e4fab5b8e38c59f74ce4942e8 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.7 (affected)0 to < 6.7 (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (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

4

Provider assertions

1

Linux · cna

ublk: mark the io command cancelable before publishing it

Provenance

Schema
5.2
Searchable
yes
Content hash
b13da179560169e59284da08b46566c4cfa4e3d42fa4d9a2316fe5b2554804d7
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