# CVE-2025-22068: ublk: make sure ubq->canceling is set when queue is frozen

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:21.436Z
- Modified: 2026-08-05T11:56:29.279Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 216c8f5ef0f209a3797292c487bdaa6991ab4b92 before 7e3497d7dacb5aee69dd9be842b778083cae0e75; from 216c8f5ef0f209a3797292c487bdaa6991ab4b92 before 5491400589e7572c2d2627ed6384302f7672aa1d; from 216c8f5ef0f209a3797292c487bdaa6991ab4b92 before 9158359015f0eda00e521e35b7bc7ebce176aebf; from 216c8f5ef0f209a3797292c487bdaa6991ab4b92 before 8741d0737921ec1c03cf59aebf4d01400c2b461a; 6.7 (not affected: before 6.7; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.7 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/7e3497d7dacb5aee69dd9be842b778083cae0e75> (patch)
- <https://git.kernel.org/stable/c/5491400589e7572c2d2627ed6384302f7672aa1d> (patch)
- <https://git.kernel.org/stable/c/9158359015f0eda00e521e35b7bc7ebce176aebf> (patch)
- <https://git.kernel.org/stable/c/8741d0737921ec1c03cf59aebf4d01400c2b461a> (patch)

## Sources

- CVE List: [CVE-2025-22068](https://www.cve.org/CVERecord?id=CVE-2025-22068), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-22068](https://nvd.nist.gov/vuln/detail/CVE-2025-22068), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22068 · Whole record: https://cve.day/CVE-2025-22068.json · Rebuilt by cve.day 2026-11-25T22:58:56.593Z
