CVE-2026-138847

xen-blkfront: Fix IO race during unplug

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

xen-blkfront: Fix IO race during unplug

During unplug, blkfront stops the hw queues and marks the disk as dead,
then later during removal calls del_gendisk(). However, IO issued after
the hw queues are stopped but before the call to del_gendisk() will be
queued but never handled. This causes del_gendisk() to hang forever
waiting for the queue refcount to drop to zero.

This can be reproduced by issuing IO during an artificial delay after
stopping the hw queues.

Fix this by simply not stopping the hw queues directly. Marking the disk
as dead already freezes the queue which prevents new requests being
added and it synchronously runs the hw queues to clear anything pending.
If the hw queues are stopped when calling blk_mark_disk_dead(), running
the hw queues is a no-op and can leave queued requests unprocessed.

Analysis

AI-generated

Technical impact

A race condition during Xen blkfront device unplug causes the Linux kernel to hang. The hw queues are stopped and the disk is marked dead, but subsequent IO requests that arrive before del_gendisk() is called are queued and never serviced. This leaves the kernel waiting forever for the queue refcount to drop, resulting in a deadlock and a system halt. The vulnerability is a classic concurrent execution race that can be triggered when unplugging a blkfront device while IO is still in flight.

Affected Systems

The flaw affects all Linux kernel implementations that include the Xen blkfront driver, specifically versions that have not yet applied the commit series provided in the reference URLs. The affected product is the Linux kernel in general; any distribution kernel that has not been patched with these changes is vulnerable, particularly those running Xen virtualized environments where blkfront devices are used.

Risk and Exploitability

The risk level is high because the vulnerability results in a kernel hang that can be triggered by a native user who can perform an unplug operation on a blkfront device during I/O. Although no publicly available exploit has been documented, the required conditions—access to the host and the ability to issue unplug commands—are common in many virtualized setups. The inability to retrieve EPSS or CVSS scores limits quantitative assessment, but the inherent denial of service impact makes this a serious concern for affected Xen host systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the referenced commits that patch the blkfront hardware queue stopping logic.
  • Avoid unplugging Xen blkfront devices while I/O is in progress; wait for all I/O to complete before triggering device removal.
  • If a kernel upgrade is not immediately possible, monitor the system for signs of kernel unresponsiveness after blkfront unplug operations and consider isolating or disabling active blkfront devices temporarily.

Generated by OpenCVE AI on November 30, 2026 at 17:15 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xen-blkfront: Fix IO race during unplug During unplug, blkfront stops the hw queues and marks the disk as dead, then later during removal calls del_gendisk(). However, IO issued after the hw queues are stopped but before the call to del_gendisk() will be queued but never handled. This causes del_gendisk() to hang forever waiting for the queue refcount to drop to zero. This can be reproduced by issuing IO during an artificial delay after stopping the hw queues. Fix this by simply not stopping the hw queues directly. Marking the disk as dead already freezes the queue which prevents new requests being added and it synchronously runs the hw queues to clear anything pending. If the hw queues are stopped when calling blk_mark_disk_dead(), running the hw queues is a no-op and can leave queued requests unprocessed.
Title xen-blkfront: Fix IO race during unplug
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM