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

High 7.8 Published Updated

A race condition in the Linux kernel ublk driver can cause a kernel crash, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37906?

CVE-2025-37906 is a high-severity vulnerability in Linux kernel, published on 20 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-362

Which versions are affected by CVE-2025-37906?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-37906?

Apply the vendor's patch.

Is CVE-2025-37906 being exploited?

There is no known exploitation of CVE-2025-37906 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-37906, DEBIAN-CVE-2025-37906, GHSA-mrmf-653p-5vh8, ROOT-OS-DEBIAN-13-CVE-2025-37906, ROOT-OS-UBUNTU-2404-CVE-2025-37906, UBUNTU-CVE-2025-37906.

Is CVE-2025-37906 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free