CVE-2026-68173
Received Received - Intake

Race Condition in Linux Kernel ublk Driver Leads to Request Stranding

Vulnerability report for CVE-2026-68173, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: ublk: wait on ublk_dev_ready() instead of ub->completion ub->completion is only re-armed by a successful START_USER_RECOVERY. If the ublk server sends END_USER_RECOVERY without one - e.g. its START failed with -EBUSY and the error was ignored - the wait is satisfied by the stale completion of the previous recovery cycle, and the device is marked LIVE and the requeue list kicked while the FETCH stream is still running and ubq->canceling is still set. The kick redispatches a previously requeued request, __ublk_queue_rq_common() sees ->canceling and parks it again via __ublk_abort_rq(), and after the last FETCH clears ->canceling nothing ever kicks the requeue list again: the request is stranded there while holding its tag. If it is the flush machinery's flush_rq, every subsequent fsync piles up in uninterruptible sleep and teardown hangs on tag draining. This matches a report of a lost PREFLUSH with ext4 on top of ublk after daemon crash recovery. ub->completion is an edge-triggered latch used as a proxy for the level condition "every queue has fetched all I/O commands", which can regress (F_BATCH's UNPREP, daemon death) and whose re-arm can be skipped. Drop it and wait on the real condition instead: the new helper ublk_wait_dev_ready_and_lock() waits on ublk_dev_ready() via wait_var_event_interruptible(), woken from ublk_mark_io_ready(), then re-checks it under ub->mutex, waiting again on regression, and returns with the mutex held and readiness guaranteed. Readiness becomes true in the same ub->mutex critical section that clears the last queue's ->canceling, so END_USER_RECOVERY marks the device LIVE and kicks the requeue list strictly after ->canceling clears. The wait stays interruptible, so a server whose daemon died can still be signalled out. For ublk_ctrl_start_dev() this replaces the fail-fast -EINVAL on an F_BATCH ready->UNPREP regression with waiting until the device is ready again.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-10
AI Q&A
2026-08-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a race condition in the ublk (user block device) subsystem. It occurs when the ublk server sends an END_USER_RECOVERY command without a prior successful START_USER_RECOVERY, leading to a stale completion signal. This causes the device to be marked as LIVE prematurely while I/O requests remain stranded, potentially causing system hangs during recovery or fsync operations.

Detection Guidance

This vulnerability is specific to the Linux kernel's ublk subsystem and requires kernel-level inspection. Detection involves checking kernel logs for ublk-related errors or hangs, particularly during device recovery or I/O operations. Commands like dmesg, journalctl -k, or checking for stranded requests in /sys/block/ may help identify issues.

Impact Analysis

If exploited, this flaw could cause system hangs or crashes, particularly during disk I/O operations like fsync. It may lead to data corruption or loss if recovery processes are interrupted. Systems using ublk for storage may experience unresponsive applications or require manual intervention to recover.

Mitigation Strategies

Apply the latest Linux kernel patches that address this issue. If using ublk devices, ensure the server properly handles START_USER_RECOVERY and END_USER_RECOVERY cycles. Avoid ignoring -EBUSY errors during recovery. Monitor for stranded requests or hangs in I/O operations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68173. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart