# CVE-2025-37906: ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd

- 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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-05-20T15:21:39.633Z
- Modified: 2026-10-21T13:18:07.423Z
- Weaknesses: CWE-362
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd

ublk_cancel_cmd() calls io_uring_cmd_done() to complete uring_cmd, but
we may have scheduled task work via io_uring_cmd_complete_in_task() for
dispatching request, then kernel crash can be triggered.

Fix it by not trying to canceling the command if ublk block request is
started.

(As written by CVE List.)

## Affected

- Linux Linux: from 216c8f5ef0f209a3797292c487bdaa6991ab4b92 before 346b7d74c612234dae0878892682b9722e7c04c8; from 216c8f5ef0f209a3797292c487bdaa6991ab4b92 before fb2eb9ddf556f93fef45201e1f9d2b8674bcc975; from 216c8f5ef0f209a3797292c487bdaa6991ab4b92 before f40139fde5278d81af3227444fd6e76a76b9506d; 6.7 (not affected: before 6.7; from 6.12.114 up to 6.12.*; from 6.14.6 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.7 before 6.14.6; 6.15

## 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`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/346b7d74c612234dae0878892682b9722e7c04c8>
- <https://git.kernel.org/stable/c/fb2eb9ddf556f93fef45201e1f9d2b8674bcc975> (patch)
- <https://git.kernel.org/stable/c/f40139fde5278d81af3227444fd6e76a76b9506d> (patch)

## Sources

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

---

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