CVE-2025-22068

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

State
Published
Severity
7.8 High
Published
Apr 16, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to before 7e3497d7dacb5aee69dd9be842b778083cae0e75Affected
  • 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to before 5491400589e7572c2d2627ed6384302f7672aa1dAffected
  • 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to before 9158359015f0eda00e521e35b7bc7ebce176aebfAffected
  • 216c8f5ef0f209a3797292c487bdaa6991ab4b92 to before 8741d0737921ec1c03cf59aebf4d01400c2b461aAffected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.12.23 through 6.12.*Not affected
  • 6.13.11 through 6.13.*Not affected
  • 6.14.2 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.