ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.114, 6.14.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 216c8f5ef0f209a3797292c487bdaa6991ab4b92 · fixed in 346b7d74c612234dae0878892682b9722e7c04c8; From 216c8f5ef0f209a3797292c487bdaa6991ab4b92 · fixed in fb2eb9ddf556f93fef45201e1f9d2b8674bcc975; From 216c8f5ef0f209a3797292c487bdaa6991ab4b92 · fixed in f40139fde5278d81af3227444fd6e76a76b9506d
- Linux Linux
6.7
- KernelLinux
From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.14.6