---
id: CVE-2025-37906
title: 'ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd'
summary: |-
  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 t…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92 <
    346b7d74c612234dae0878892682b9722e7c04c8
  - >-
    Linux >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92 <
    fb2eb9ddf556f93fef45201e1f9d2b8674bcc975
  - >-
    Linux >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92 <
    f40139fde5278d81af3227444fd6e76a76b9506d
  - Linux 6.7
published: '2025-05-20'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T12:36:34.934Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-37906'
references:
  - url: 'https://git.kernel.org/stable/c/346b7d74c612234dae0878892682b9722e7c04c8'
  - url: 'https://git.kernel.org/stable/c/fb2eb9ddf556f93fef45201e1f9d2b8674bcc975'
  - url: 'https://git.kernel.org/stable/c/f40139fde5278d81af3227444fd6e76a76b9506d'
tags:
  - cve.org
epss: 0.00186
epssPercentile: 0.08085
ingestedAt: '2026-10-21T12:48:53.709Z'
---

## Overview

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

- `Linux >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92 < 346b7d74c612234dae0878892682b9722e7c04c8`
- `Linux >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92 < fb2eb9ddf556f93fef45201e1f9d2b8674bcc975`
- `Linux >= 216c8f5ef0f209a3797292c487bdaa6991ab4b92 < f40139fde5278d81af3227444fd6e76a76b9506d`
- `Linux 6.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
