CVE-2026-53124: ublk: reset per-IO canceled flag on each fetch
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ublk: reset per-IO canceled flag on each fetch
If a ublk server starts recovering devices but dies before issuing fetch commands for all IOs, cancellation of the fetch commands that were successfully issued may never complete. This is because the per-IO canceled flag can remain set even after the fetch for that IO has been submitted - the per-IO canceled flags for all IOs in a queue are reset together only once all IOs for that queue have been fetched. So if a nonempty proper subset of the IOs for a queue are fetched when the ublk server dies, the IOs in that subset will never successfully be canceled, as their canceled flags remain set, and this prevents ublk_cancel_cmd from actually calling io_uring_cmd_done on the commands, despite the fact that they are outstanding.
Fix this by resetting the per-IO cancel flags immediately when each IO is fetched instead of waiting for all IOs for the queue (which may never happen).
The Linux kernel CVE team has assigned CVE-2026-53124 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 728cbac5fe219d3b8a21a0688a08f2b7f8aeda2b and fixed in 7.0.10 with commit 63335e5a67d89bb7cb9b023bbb3785896587a648 Issue introduced in 6.15 with commit 728cbac5fe219d3b8a21a0688a08f2b7f8aeda2b and fixed in 7.1 with commit 0842186d2c4e67d2f8c8c2d1d779e8acffd41b5b Issue introduced in 6.14.6 with commit 42ea64e01c96e594fb4f80c54dfe4f934d008a6e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53124
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/block/ublk_drv.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/63335e5a67d89bb7cb9b023bbb3785896587a648 https://git.kernel.org/stable/c/0842186d2c4e67d2f8c8c2d1d779e8acffd41b5b