CVE-2026-139128

block: fix use-after-free of the disk in sync_bdevs()

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

block: fix use-after-free of the disk in sync_bdevs()

sync_bdevs() holds a reference to the bdev inode while it takes
bd_disk->open_mutex. For a partition the inode doesn't keep the gendisk
alive, the device reference does: part_release() drops the disk as soon
as the last reference to the partition device is gone. A sync(2) racing
with the last close of a partition of an already deleted disk locks a
freed open_mutex.

Take a device reference before touching the disk, like
blkdev_get_no_open() does, and skip the bdev if it's on its way out.

Analysis

AI-generated

Technical impact

The Linux kernel’s block layer contains a use‑after‑free bug in sync_bdevs() that can lock a freed open_mutex when a sync system call races with the last close of a partition whose disk has already been deleted. The flaw can cause the kernel to dereference memory that has been released, leading to a crash. This vulnerability is a classic use‑after‑free failure (CWE‑416).

Affected Systems

The defect affects the Linux kernel itself. Any kernel build that has not incorporated the commit fixing sync_bdevs()—identified in the provided patch references—is potentially vulnerable. No specific vendor or version constraints are listed, so the issue applies to all unpatched Linux kernel releases.

Risk and Exploitability

The CVSS score is not supplied and the EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog, indicating that there are no publicly documented exploits. The bug can cause a kernel crash, which would interrupt system operation and could be considered a local denial of service. The attack vector involves a race condition triggered by sync(2) calls and the final close of a partition that has been removed. Given the lack of publicly known exploits, the immediate threat is limited to the potential for involuntary service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that contains the commit that fixes sync_bdevs()
  • Reboot the system after the upgrade to load the corrected kernel
  • If an automated kernel update is not available, apply the patch manually to the source tree and rebuild the kernel

Generated by OpenCVE AI on December 1, 2026 at 09:40 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
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: block: fix use-after-free of the disk in sync_bdevs() sync_bdevs() holds a reference to the bdev inode while it takes bd_disk->open_mutex. For a partition the inode doesn't keep the gendisk alive, the device reference does: part_release() drops the disk as soon as the last reference to the partition device is gone. A sync(2) racing with the last close of a partition of an already deleted disk locks a freed open_mutex. Take a device reference before touching the disk, like blkdev_get_no_open() does, and skip the bdev if it's on its way out.
Title block: fix use-after-free of the disk in sync_bdevs()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

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