CVE-2026-139430

btrfs: fix lost error return value in btrfs_alloc_logged_file_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: fix lost error return value in btrfs_alloc_logged_file_extent()

If we fail to allocate a reserved file extent we then call
btrfs_record_squota_delta() and assign its return value to 'ret',
discarding the error from the failed allocation attempt and allowing
log replay to proceed as if no errors happened, resulting in some
replayed file extent item to point to an unallocated extent. At the
moment btrfs_record_squota_delta() always returns 0 (success).

Analysis

AI-generated

Technical impact

The flaw in the Linux kernel’s Btrfs filesystem causes a lost error return value during the allocation of a reserved file extent. When such an allocation fails, the subsequent call to btrfs_record_squota_delta() overwrites the failure status with a success value, allowing the log replay process to continue as if no error occurred. The result is that a replayed file extent item can reference an unallocated extent, creating a critical data integrity problem. An attacker could potentially exploit this to corrupt filesystem metadata or data, leading to data loss or a system crash.

Affected Systems

This vulnerability impacts the Linux kernel’s Btrfs filesystem. The patch is applied to all kernel releases that include the btrfs_alloc_logged_file_extent code path; however, specific affected version numbers are not provided in the available data. System administrators should review the kernel version being used to determine if the fix is present.

Risk and Exploitability

The CVSS score is not supplied, and the EPSS score remains unavailable, indicating limited public exploitation data. The vulnerability is not listed in CISA’s KEV catalog, suggesting no known active exploits. Despite the lack of public evidence, the nature of the bug allows for potentially severe data corruption, so the risk remains notable while the likelihood of exploitation is currently undetermined.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that includes the btrfs_alloc_logged_file_extent fix.
  • Verify that the btrfs_record_squota_delta return handling matches the commits cited in the advisory (e.g., 07fdd2be19).
  • Enable or run filesystem integrity checks (such as btrfs check) and monitor system logs for btrfs-related errors to catch undetected corruption.

Generated by OpenCVE AI on November 30, 2026 at 22:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-703
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: fix lost error return value in btrfs_alloc_logged_file_extent() If we fail to allocate a reserved file extent we then call btrfs_record_squota_delta() and assign its return value to 'ret', discarding the error from the failed allocation attempt and allowing log replay to proceed as if no errors happened, resulting in some replayed file extent item to point to an unallocated extent. At the moment btrfs_record_squota_delta() always returns 0 (success).
Title btrfs: fix lost error return value in btrfs_alloc_logged_file_extent()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-703

    Improper Check or Handling of Exceptional Conditions

Sources

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