CVE-2026-100055: ublk: mark the io command cancelable before publishing it
In the Linux kernel, the following vulnerability has been resolved:
ublk: mark the io command cancelable before publishing it
FETCH, COMMITANDFETCH and NEEDGETDATA publish the command in io->cmd before marking it cancelable. A cancel from the control path (STOPDEV, QUIESCEDEV) can complete it in between:
issue path control-path cancel io->cmd = C take C, iouringcmddone(C): C not marked, nothing to unlink ublkprepcancel(C) the completed C is linked on the cancelable list ring exit: the cancel walk hits it → GPF (KASAN, with a delay added)
Mark the command before ublkfilliocmd() publishes it. The handlers run with uringlock held, as iouring's cancel walk does, so marking takes no lock and the walk can't see a marked command before it is published. smpwmb() orders the mark before the io->cmd store; the cancel loads cmd with READONCE(io->cmd) before reading cmd->flags.
A marked command has to be completed by iouringcmddone(), so a failed FETCH and the inline UBLKIORESOK of NEEDGETDATA now do that. The CQE is the same.