# CVE-2025-71269: btrfs: do not free data reservation in fallback from inline due to -ENOSPC

- 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.45%, higher than 31% of CVEs (2026-11-30)
- Published: 2026-03-18T17:40:58.949Z
- Modified: 2026-10-19T19:17:18.267Z
- Weaknesses: CWE-416
- 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: 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).

(As written by CVE List.)

## Affected

- Linux Linux: from 94ed938aba557aa798acf496f09afb289b619fcd before 3edd1f6c7c520536b62b2904807033597554dbac; from 94ed938aba557aa798acf496f09afb289b619fcd before 3a9fd45afadec1fbfec72057b9473d509fa8b68c; from 94ed938aba557aa798acf496f09afb289b619fcd before 0a1fbbd780f04d1b6cf48dd327c866ba937de1c4; from 94ed938aba557aa798acf496f09afb289b619fcd before 6de3a371a8b9fd095198b1aa68c22cc10a4c6961; from 94ed938aba557aa798acf496f09afb289b619fcd before f8da41de0bff9eb1d774a7253da0c9f637c4470a; 4.4 (not affected: before 4.4; from 6.1.168 up to 6.1.*; from 6.6.134 up to 6.6.*; from 6.12.81 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.168; from 6.2 before 6.6.134; from 6.7 before 6.12.81; 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/3edd1f6c7c520536b62b2904807033597554dbac> (patch)
- <https://git.kernel.org/stable/c/3a9fd45afadec1fbfec72057b9473d509fa8b68c> (patch)
- <https://git.kernel.org/stable/c/0a1fbbd780f04d1b6cf48dd327c866ba937de1c4> (patch)
- <https://git.kernel.org/stable/c/6de3a371a8b9fd095198b1aa68c22cc10a4c6961> (patch)
- <https://git.kernel.org/stable/c/f8da41de0bff9eb1d774a7253da0c9f637c4470a> (patch)

## Sources

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

---

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