CVE-2025-22068
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ublk: asegurar que `ubq->canceling` esté configurado cuando la cola esté congelada. Ahora, el controlador ublk depende de `ubq->canceling` para decidir si la solicitud puede enviarse mediante `uring_cmd` e `io_uring_cmd_complete_in_task()`. Una vez configurado `ubq->canceling`, el `uring_cmd` puede enviarse mediante `ublk_cancel_cmd()` e `io_uring_cmd_done()`. Por lo tanto, al configurar `ubq->canceling` cuando la cola esté congelada, se garantiza que el indicador se pueda observar desde `ublk_queue_rq()` de forma fiable y se evita el `use-after-free` en `uring_cmd`.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22068 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-22068 changed 2026-06-17Public domain