# CVE-2025-37906: ublk: fix race between io\_uring\_cmd\_complete\_in\_task and ublk\_cancel\_cmd

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-05-20T15:21:39.633Z
- **Modified:** 2026-10-21T13:18:07.423Z

## Who should check

- Anyone running Linux \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< 346b7d74c612234dae0878892682b9722e7c04c8; \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< fb2eb9ddf556f93fef45201e1f9d2b8674bcc975; \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< f40139fde5278d81af3227444fd6e76a76b9506d
- Anyone running Linux 6.7

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

## Affected and fixed versions

- Linux: \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< 346b7d74c612234dae0878892682b9722e7c04c8; \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< fb2eb9ddf556f93fef45201e1f9d2b8674bcc975; \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< f40139fde5278d81af3227444fd6e76a76b9506d (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37906. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37906.md
Affected: Linux >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, < 346b7d74c612234dae0878892682b9722e7c04c8; >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, < fb2eb9ddf556f93fef45201e1f9d2b8674bcc975; >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, < f40139fde5278d81af3227444fd6e76a76b9506d; Linux 6.7
Fixed in: Linux 346b7d74c612234dae0878892682b9722e7c04c8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37906 being exploited?

There is no confirmed exploitation: CVE-2025-37906 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37906?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37906?

Linux \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< 346b7d74c612234dae0878892682b9722e7c04c8; \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< fb2eb9ddf556f93fef45201e1f9d2b8674bcc975; \>= 216c8f5ef0f209a3797292c487bdaa6991ab4b92, \< f40139fde5278d81af3227444fd6e76a76b9506d; Linux 6.7.

### Is there a fix for CVE-2025-37906?

Yes. Fixed in Linux 346b7d74c612234dae0878892682b9722e7c04c8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37906?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37906>

HTML: <https://flawdb.com/CVE-2025-37906> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37906>
