Description
In the Linux kernel, the following vulnerability has been resolved:

btrfs: do not free data reservation in fallback from inline due to -ENOSPC

If we fail to create an inline extent due to -ENOSPC, we will attempt to
go through the normal COW path, reserve an extent, create an ordered
extent, etc. However we were always freeing the reserved qgroup data,
which is wrong since we will use data. Fix this by freeing the reserved
qgroup data in __cow_file_range_inline() only if we are not doing the
fallback (ret is <= 0).
Published: 2026-03-18
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Linux kernel’s btrfs filesystem handling of inline extents. When an inline extent cannot be created due to a lack of space, the code incorrectly frees the reserved qgroup data during the fallback to the copy‑on‑write path. This frees resources that will still be used, causing a bookkeeping mismatch between the reservation and the actual data usage. The resulting inconsistency can lead to allocation errors, corrupted file‑system metadata, or loss of user data. The weakness is consistent with improper resource handling (CWE‑404).

Affected Systems

All Linux kernel releases that contain the btrfs implementation before the patch commit that introduced the fix (for example, kernel 6.19 rc1 through rc4 and any earlier mainline kernels). The issue applies to the generic Linux kernel product; no vendor‑product version ranges are specified by the CNA, but any system using an unpatched kernel with btrfs is potentially affected.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate impact, and the EPSS score of less than 1% combined with the absence from CISA’s KEV catalog suggest that exploitation is currently unlikely to be widespread. The flaw is triggered only when a write operation to a btrfs volume fails because the filesystem has run out of space, so an attacker would need local or privileged access to create such failing write attempts. The vulnerability is not publicly documented as being actively exploited at this time.

Generated by OpenCVE AI on May 21, 2026 at 23:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that incorporates the btrfs reservation fix (for example, commit 6de3a371a8b9fd095198b1aa68c22cc10a4c6961 or a kernel version containing that commit).
  • If a kernel upgrade cannot be performed immediately, limit write permissions on btrfs volumes to trusted users only and monitor system logs for filesystem corruption signs such as allocation failures or metadata errors.
  • Ensure that distribution‑specific security patches or updates that include the kernel fix are applied as soon as they become available, and run regular integrity checks (e.g., btrfs scrub or fsck) to detect potential data inconsistencies early.

Generated by OpenCVE AI on May 21, 2026 at 23:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4561-1 linux-6.1 security update
Debian DSA Debian DSA DSA-6238-1 linux security update
Debian DSA Debian DSA DSA-6243-1 linux security update
History

Thu, 21 May 2026 23:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-404

Thu, 21 May 2026 21:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772

Thu, 21 May 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Sat, 11 Apr 2026 13:00:00 +0000


Fri, 27 Mar 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772

Fri, 27 Mar 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Thu, 26 Mar 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Wed, 25 Mar 2026 22:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399
CWE-416

Wed, 25 Mar 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399
CWE-416

Wed, 25 Mar 2026 12:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Tue, 24 Mar 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Thu, 19 Mar 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Wed, 18 Mar 2026 18:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: do not free data reservation in fallback from inline due to -ENOSPC If we fail to create an inline extent due to -ENOSPC, we will attempt to go through the normal COW path, reserve an extent, create an ordered extent, etc. However we were always freeing the reserved qgroup data, which is wrong since we will use data. Fix this by freeing the reserved qgroup data in __cow_file_range_inline() only if we are not doing the fallback (ret is <= 0).
Title btrfs: do not free data reservation in fallback from inline due to -ENOSPC
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-11T21:57:07.828Z

Reserved: 2026-03-17T09:08:18.457Z

Link: CVE-2025-71269

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-03-18T18:16:22.110

Modified: 2026-05-21T18:38:20.613

Link: CVE-2025-71269

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-03-18T00:00:00Z

Links: CVE-2025-71269 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-21T23:15:17Z

Weaknesses