CVE-2026-100056: ublk: keep a canceled FETCH round canceling until the server is gone

Published Nov 30, 2026
·
Updated

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

ublk: keep a canceled FETCH round canceling until the server is gone

A cancel completes a fetched io command and sets io->cmd to NULL, but the io still counts as ready. Only ubq->canceling stops ublkqueuerq() from using the NULL io->cmd. Two paths clear that flag too early:

partial FETCH round recovery, two queues ------------------- -------------------- task A: FETCH tags 0-2 q0 ready: q0->canceling = false task A exits: q0 task exits: startcancel(): mark queues startcancel(): ub->canceling tags 0-2: io->cmd = NULL is still set -> q0 not marked task B: FETCH tag 3 q0: io->cmd = NULL queue ready: canceling = false q1 ready STARTDEV ENDUSERRECOVERY read -> ublkqueuecmd(NULL) read on q0 -> ublkqueuecmd(NULL)

A FETCH round runs from the open of /dev/ublkcN until ublkresetchdev() resets the queues. A canceled command can't be fetched again in the same round. So the ready check only needs one fact: did this round see a cancel? ub->canceling already records it: ublkstartcancel() sets it under cancelmutex before any command is taken. It is only cleared too early, when all queues are ready.

Fix:

- clear ub->canceling only in ublkresetchdev() - when a queue gets ready, clear ubq->canceling only if ub->canceling is not set, and check it under cancelmutex

The check and the marking are ordered by cancelmutex:

check first: queue cleared -> startcancel() marks it again -> command taken cancel first: check sees ub->canceling -> queue stays canceling

While ub->canceling is set, no queue clears its flag. So the "all queues marked" shortcut in ublkstartcancel() is correct again.

UBLKFBATCHIO follows the same rule. It does not dispatch through io->cmd, so it never hit the oops, but a round which lost a fetch command is treated the same way: it has to start over.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Update Linux kernel ublk cancellation handling: clear ub->canceling only in ublk_reset_ch_dev(), and when a queue becomes ready, clear ubq->canceling only if ub->canceling is set.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
Description

Frequently Asked Questions

1

What scenarios are specifically identified as vulnerable?

The issue identifies partial FETCH-round recovery and a two-queue sequence in which one queue retains a canceled command while another queue becomes ready. In the illustrated two-queue case, the cancellation state for the first queue can be cleared even though its I/O command pointer is NULL.

2

Can a canceled command be fetched again to recover within the same FETCH round?

No. A canceled command cannot be fetched again during the same FETCH round, which lasts from opening /dev/ublkcN until ublk_reset_ch_dev() resets the queues.

3

What state must remain in effect after a cancellation?

The cancellation state must continue to prevent ready I/O from being submitted with a NULL command pointer for the remainder of that FETCH round. The description indicates that ub->canceling records whether the round has seen a cancellation and is set under cancel_mutex before commands are taken.

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