CVE-2025-71268

btrfs: fix reservation leak in some error paths when inserting inline extent

Published Mar 18, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix reservation leak in some error paths when inserting inline extent

If we fail to allocate a path or join a transaction, we return from
__cow_file_range_inline() without freeing the reserved qgroup data,
resulting in a leak. Fix this by ensuring we call btrfs_qgroup_free_data()
in such cases.

Analysis

AI-generated

Technical impact

A memory leak occurs inside the Linux kernel’s Btrfs filesystem during the insertion of an inline extent. When allocation of a path or the joining of a transaction fails, the function __cow_file_range_inline() exits without freeing the reserved qgroup data. The leak can grow over time, consuming kernel memory or quota accounting structures and eventually degrading system performance or causing a service outage. This weakness is a classic resource exhaustion flaw, involving both a memory leak (CWE-401) and missing release of resource (CWE-772).

Affected Systems

All Linux kernel builds that include the Btrfs implementation are potentially affected. The CPE list indicates all Linux kernels, with explicit mentions of kernel 6.19 release candidates 1 through 4. Thus any distribution or vendor that ships with a kernel containing the vulnerable Btrfs code is at risk until the fix is applied.

Risk and Exploitability

The CVSS score of 7.5 reflects a high severity level, but the EPSS score of less than 1% shows a low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local or privileged access because the flaw resides in kernel‑level file system handling. While the risk of denial of service exists if the leak is repeatedly triggered, the practical attack window is limited and no widespread exploitation has been reported.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the btrfs qgroup cleanup patch
  • Apply the vendor’s kernel update or backport the commit identified in the advisory
  • If an upgrade is not immediately possible, monitor system memory usage and restrict Btrfs access from untrusted users

Generated by OpenCVE AI on October 19, 2026 at 20:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8278-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8289-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8296-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8296-2 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8278-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8440-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8289-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8393-1 Linux kernel (Azure FIPS) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-772
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics 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'}

cvssV3_1

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

Type Values Removed Values Added
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:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-778
Type Values Removed Values Added
Weaknesses CWE-778
Type Values Removed Values Added
Weaknesses CWE-739
Type Values Removed Values Added
Weaknesses CWE-739
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
References
Metrics threat_severity

None

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'}

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: fix reservation leak in some error paths when inserting inline extent If we fail to allocate a path or join a transaction, we return from __cow_file_range_inline() without freeing the reserved qgroup data, resulting in a leak. Fix this by ensuring we call btrfs_qgroup_free_data() in such cases.
Title btrfs: fix reservation leak in some error paths when inserting inline 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-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 6:25 PM
Reserved
Mar 17, 2026, 9:08 AM
Status
Modified
Published
Mar 18, 2026, 6:16 PM
Modified
Oct 19, 2026, 7:17 PM
Severity
Moderate
Public date
Mar 18, 2026, 12:00 AM