Bug 2360225 (CVE-2025-22068) - CVE-2025-22068 kernel: ublk: make sure ubq->canceling is set when queue is frozen
Summary: CVE-2025-22068 kernel: ublk: make sure ubq->canceling is set when queue is fr...
Keywords:
Status: NEW
Alias: CVE-2025-22068
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:03 UTC by OSIDB Bzimport
Modified: 2025-04-18 03:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:03:29 UTC
In the Linux kernel, the following vulnerability has been resolved:

ublk: make sure ubq->canceling is set when queue is frozen

Now ublk driver depends on `ubq->canceling` for deciding if the request
can be dispatched via uring_cmd & io_uring_cmd_complete_in_task().

Once ubq->canceling is set, the uring_cmd can be done via ublk_cancel_cmd()
and io_uring_cmd_done().

So set ubq->canceling when queue is frozen, this way makes sure that the
flag can be observed from ublk_queue_rq() reliably, and avoids
use-after-free on uring_cmd.

Comment 1 Avinash Hanwate 2025-04-17 12:59:20 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041609-CVE-2025-22068-8ffd@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.