CVE-2026-100054: ublk: mark the batch fetch command cancelable before linking it

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ublk: mark the batch fetch command cancelable before linking it

UBLKUIOFETCHIOCMDS has the same order problem as the per-io commands: ublkbatchattach() links the fetch command into fcmdhead and marks it cancelable only after dropping evtslock. A cancel from the control path (ublkbatchcancelqueue()) can take it in between and complete it, and the later mark puts a completed request on iouring's cancelable list.

Mark it before linking it. evtslock 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 uringlock, and iouring'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 listempty() saw a linked node and ublkbatchcancelcmd() would listdelinit() NULL pointers - on the -ENODEV path, complete the command with iouringcmddone() before freeing fcmd: that removes it from the cancelable list under uringlock, after which nothing can see fcmd

Also use data->cmd instead of fcmd->cmd after dropping evtslock: once fcmd is linked and not the active one, a control-path cancel may complete and free it.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=7.0.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  3. Compensating control

    In the ublk batch-fetch path, mark the fetch command cancelable before linking it; initialize fcmd->node, complete the command with io_uring_cmd_done() on the -ENODEV path, and use data->cmd instead of fcmd->cmd after dropping evts_lock.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
Description
Data Sourced
via OSV·01:23 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Which deployments are exposed to the race?

The affected path is UBLK batch I/O fetch handling using UBLK_U_IO_FETCH_IO_CMDS. The race requires the control path to cancel a queue while a batch fetch command is being attached.

2

What timing causes the unsafe state?

Previously, the fetch command was linked into fcmd_head before it was marked cancelable, after evts_lock was dropped. A concurrent ublk_batch_cancel_queue() could complete the command in that interval, after which the later cancelable mark could place an already completed request on io_uring's cancelable list.

3

What does the fix change to prevent the race?

The command is marked cancelable before it is linked, with evts_lock ordering the mark before the link that cancellation can discover. The fix also initializes the command list node and completes the command through io_uring_cmd_done() before freeing it on the -ENODEV path, removing it from the cancelable list first.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203