PT-2026-162635
CVE-2026-100053
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
ublk: let STOP DEV cancel the server's commands before its release
STOP DEV cancels the fetched commands after dropping ub->mutex, so
START DEV and FETCH can run in between:
STOP DEV START DEV / FETCH
lock ub->mutex
ublk stop dev unlocked() (not started: does nothing)
unlock ub->mutex
START DEV goes live, schedules scan
FETCH publishes a new command
cancel work sync(scan) cancels the new disk's scan
ublk cancel dev() takes the new command: NULL io->cmd
on a queue which isn't canceling
A START DEV after STOP DEV also goes live over the canceled commands.
Hold a reference on the server's /dev/ublkcN while canceling:
STOP DEV
lock ub->mutex
ublk stop dev unlocked()
cancel work sync(scan)
server attached: take a reference on its file, set STOPPING
unlock ub->mutex
ublk cancel dev()
drop the reference
- STOPPING makes FETCH and PREP get UBLK IO RES ABORT and START DEV -EBUSY; a START DEV or END USER RECOVERY waiting for the device to get ready wakes up too; the reset in the server's release clears it
- the release can't run before the reference is dropped, so no new server can attach, and the cancel only meets this server's commands
- the cancel still runs after the unlock: io uring cmd done() may take uring lock, under which FETCH takes ub->mutex
ublk ch open() saves the file in ->ch file and ublk ch release() clears
it, under cancel mutex. The release runs after the last reference is
gone, so take ours with file ref get(). Drop it with fput sync(): if
it is the last one, fput() would defer the release to this task, which
DEL DEV then makes wait for the device to be freed.
A server which opened the device but hasn't fetched is stopped too.
Document what a server sees after STOP DEV in ublk.rst.
Found an issue in the description? Have something to add? Feel free to write us 👾