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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:23:27.640Z
- Modified: 2026-12-01T06:17:21.957Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a4d88375539920b7401ead59d2f944ac23c668ea before de0967c9aa6bb63d30e835c79fd935310f30402b; from a4d88375539920b7401ead59d2f944ac23c668ea before b59e96011d22e322fbf4d5d1d1124de538c278ed; 7.0 (not affected: before 7.0; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/de0967c9aa6bb63d30e835c79fd935310f30402b>
- <https://git.kernel.org/stable/c/b59e96011d22e322fbf4d5d1d1124de538c278ed>

## Sources

- CVE List: [CVE-2026-100054](https://www.cve.org/CVERecord?id=CVE-2026-100054), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-100054](https://nvd.nist.gov/vuln/detail/CVE-2026-100054), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-100054 · Whole record: https://cve.day/CVE-2026-100054.json · Rebuilt by cve.day 2026-12-01T06:32:16.716Z
