CVE-2026-100054

ublk: mark the batch fetch command cancelable before linking it

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is in the Linux kernel's ublk subsystem. A batch fetch command is linked into the command list and only then marked cancelable. If a cancellation occurs from the control path between these steps, the command can be freed while still referenced in the cancelable list, leading to an inconsistent state or kernel crash. This is a classic race condition that can destabilize the kernel if triggered concurrently.

Affected Systems

All Linux kernel versions that ship the ublk subsystem are affected until the code change referenced in the CVE description is applied. The patch is upstreamed in the Linux source tree and is present in later official releases and distribution kernel packages following that commit.

Risk and Exploitability

No CVSS or EPSS score is provided and the vulnerability is not listed in the CISA KEV catalog, making the quantitative risk low to moderate. The flaw requires a local attacker who can trigger ublk operations to coordinate a cancellation while the kernel processes a batch fetch. Proper execution could result in a denial of service or kernel panic, but the attack surface is limited to systems running the vulnerable kernel and executing ublk-dependent workloads.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the system to a Linux kernel version that includes the fix for the ublk batch fetch cancellation ordering (see the CVE references for the relevant commit).
  • Reboot the machine after installing the updated kernel and verify that the kernel version reports the fix by checking `uname -r` and inspecting the commit log for the patch.
  • After reboot, restart any applications or services that use the ublk interface, run functional tests, and monitor kernel logs (e.g., `dmesg` or `/var/log/kern.log`) for any crash or abnormal activity.

Generated by OpenCVE AI on November 30, 2026 at 16:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
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.
Title ublk: mark the batch fetch command cancelable before linking it
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM