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

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-03-18T17:40:58.080Z
- Modified: 2026-10-19T19:17:18.100Z
- Weaknesses: CWE-401, CWE-772
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 94ed938aba557aa798acf496f09afb289b619fcd before f7156512c8166d385f574b9ec030479aa7b1e8c9; from 94ed938aba557aa798acf496f09afb289b619fcd before 28b97fcbbf523779688e8de5fe55bf2dae3859f6; from 94ed938aba557aa798acf496f09afb289b619fcd before f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913; from 94ed938aba557aa798acf496f09afb289b619fcd before 28768bd3abf9995a93f6e01bfce01c60622964dd; from 94ed938aba557aa798acf496f09afb289b619fcd before c1c050f92d8f6aac4e17f7f2230160794fceef0c; 4.4 (not affected: before 4.4; from 6.1.163 up to 6.1.*; from 6.6.124 up to 6.6.*; from 6.12.70 up to 6.12.*; from 6.18.10 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 4.4 before 6.1.163; from 6.2 before 6.6.124; from 6.7 before 6.12.70; from 6.13 before 6.18.10; 6.19

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f7156512c8166d385f574b9ec030479aa7b1e8c9> (patch)
- <https://git.kernel.org/stable/c/28b97fcbbf523779688e8de5fe55bf2dae3859f6> (patch)
- <https://git.kernel.org/stable/c/f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913> (patch)
- <https://git.kernel.org/stable/c/28768bd3abf9995a93f6e01bfce01c60622964dd> (patch)
- <https://git.kernel.org/stable/c/c1c050f92d8f6aac4e17f7f2230160794fceef0c> (patch)

## Sources

- CVE List: [CVE-2025-71268](https://www.cve.org/CVERecord?id=CVE-2025-71268), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2025-71268](https://nvd.nist.gov/vuln/detail/CVE-2025-71268), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-71268 · Whole record: https://cve.day/CVE-2025-71268.json · Rebuilt by cve.day 2026-11-25T22:59:11.955Z
