Linux
ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd
In the Linux kernel, the following vulnerability has been resolved: ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd ublk_cancel_cmd() calls io_uring_cmd_done() to complete uring_cmd, but we may have scheduled task work via io_uring_cmd_complete_in_task() for dispatching request, then kernel crash can be triggered. Fix it by not trying to canceling the command if ublk block request is started.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, < 346b7d74c612234dae0878892682b9722e7c04c8
- >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, < fb2eb9ddf556f93fef45201e1f9d2b8674bcc975
- >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, < f40139fde5278d81af3227444fd6e76a76b9506d
Fixed in 346b7d74c612234dae0878892682b9722e7c04c8, fb2eb9ddf556f93fef45201e1f9d2b8674bcc975, f40139fde5278d81af3227444fd6e76a76b9506d
- 6.7
Fixed in 0, 6.12.114, 6.14.6, 6.15
Mitigation
Upgrade Linux to 346b7d74c612234dae0878892682b9722e7c04c8 or fb2eb9ddf556f93fef45201e1f9d2b8674bcc975 or f40139fde5278d81af3227444fd6e76a76b9506d or later.
Upgrade Linux to 0 or 6.12.114 or 6.14.6 or 6.15 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.