CVE-2026-139334

btrfs: drop the extent maps of the written part of a failed ordered extent

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

btrfs: drop the extent maps of the written part of a failed ordered extent

If a truncated ordered extent fails to complete, the extent maps for the
part that was written are kept while the extent itself is freed below.
A later read can follow them to blocks that have been reallocated.
Drop the maps for the whole range on error.

Analysis

AI-generated

Technical impact

This vulnerability occurs inside the Linux kernel’s Btrfs filesystem. When an ordered extent is truncated and fails to write fully, the extent maps for the portion that was successfully written remain in memory while the rest of the extent is freed. A later read operation can then use those stale map entries to read data from blocks that have been reallocated for other purposes, potentially exposing sensitive data or causing data corruption. The flaw is a use‑after‑free of extent metadata, classified as CWE‑416.

Affected Systems

This issue affects any Linux kernel that implements Btrfs before the commit that fixed the mapping bug. The affected product is the Linux kernel with the Btrfs filesystem, and no specific version range is given, so all releases that contain the erroneous logic are vulnerable.

Risk and Exploitability

EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local: an attacker must be able to trigger a write that fails during truncation on a Btrfs volume and then read from that volume to observe the stale mapping. The necessity of a specific write failure condition reduces the likelihood of widespread exploitation, but the potential for accidental or malicious information leakage warrants prompt patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Ensure the kernel includes the fix for btrfs by installing the latest stable kernel release or the vendor’s patched kernel update.
  • If using a distribution managed kernel, apply the security update and reboot so that the corrected mapping logic is loaded into memory.
  • Consider disabling or reducing the use of ordered extents that can fragment the filesystem, and run periodic filesystem integrity checks (e.g., btrfs check) to detect lingering stale metadata.

Generated by OpenCVE AI on December 1, 2026 at 07:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: drop the extent maps of the written part of a failed ordered extent If a truncated ordered extent fails to complete, the extent maps for the part that was written are kept while the extent itself is freed below. A later read can follow them to blocks that have been reallocated. Drop the maps for the whole range on error.
Title btrfs: drop the extent maps of the written part of a failed ordered extent
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:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM