CVE-2026-100044

ublk: pin module while release work is pending

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

ublk: pin module while release work is pending

ublk_ch_release() takes a device reference and queues exit_work. The VFS
module reference held through the file operations is dropped after
->release() returns. A queued work item does not acquire its own module
reference for the callback.

Consequently, normal module removal can start while exit_work is pending or
executing. In addition to the worker callback itself, the final device put
can invoke ublk_cdev_rel(), which is also module code.

Take a module reference while ->release() is still covered by the file
operations reference and drop it only after the worker has completed its
final device put. A rearming worker retains the same reference.

Merely canceling exit_work during module exit is insufficient. The worker
is the terminal path for the device reference taken by ublk_ch_release(),
so its cancellation would strand that reference and skip the associated
cleanup.

Analysis

AI-generated

Technical impact

The vulnerability is a race condition in the Linux kernel's ublk driver that allows the kernel module to be removed while work items are still executing, causing a module reference to be dropped prematurely. This can lead to a use-after-free scenario that may result in a kernel panic or denial of service for the affected system.

Affected Systems

All Linux kernel builds that include support for the ublk block device are potentially affected. Specific version ranges were not specified in the advisory; therefore any kernel version containing the ublk subsystem should be reviewed for the patch. The affected vendor is Linux.

Risk and Exploitability

Severity and exploitation metrics are not provided; the EPSS score is unavailable and the vulnerability is not present in the CISA KEV catalog. The issue can be leveraged by a user with the ability to load or unload kernel modules, or by a process that can trigger removal of the ublk module while I/O operations are in progress. The attack likely requires local privileged execution and a race condition between the release() call and the worker callback completion.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest version that contains the fix for the ublk reference race.
  • If an immediate kernel update is not feasible, temporarily unload the ublk module until an update is applied, ensuring no pending work is queued.
  • As a precaution, ensure that module unload operations are performed only after all device operations have completed and after the exit_work has been cancelled or finished.

Generated by OpenCVE AI on November 30, 2026 at 16:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-416
CWE-772
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ublk: pin module while release work is pending ublk_ch_release() takes a device reference and queues exit_work. The VFS module reference held through the file operations is dropped after ->release() returns. A queued work item does not acquire its own module reference for the callback. Consequently, normal module removal can start while exit_work is pending or executing. In addition to the worker callback itself, the final device put can invoke ublk_cdev_rel(), which is also module code. Take a module reference while ->release() is still covered by the file operations reference and drop it only after the worker has completed its final device put. A rearming worker retains the same reference. Merely canceling exit_work during module exit is insufficient. The worker is the terminal path for the device reference taken by ublk_ch_release(), so its cancellation would strand that reference and skip the associated cleanup.
Title ublk: pin module while release work is pending
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-416

    Use After Free

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM