CVE-2025-22068

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
16/04/2025
Last modified:
01/10/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> ublk: make sure ubq-&gt;canceling is set when queue is frozen<br /> <br /> Now ublk driver depends on `ubq-&gt;canceling` for deciding if the request<br /> can be dispatched via uring_cmd &amp; io_uring_cmd_complete_in_task().<br /> <br /> Once ubq-&gt;canceling is set, the uring_cmd can be done via ublk_cancel_cmd()<br /> and io_uring_cmd_done().<br /> <br /> So set ubq-&gt;canceling when queue is frozen, this way makes sure that the<br /> flag can be observed from ublk_queue_rq() reliably, and avoids<br /> use-after-free on uring_cmd.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.23 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.13 (including) 6.13.11 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.14 (including) 6.14.2 (excluding)