What’s Vulnerable › Vulnerabilities
CVE-2025-71269: btrfs: do not free data reservation in fallback from inline due to -ENOSPC
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-03-18 · updated 2026-10-19
- Weakness: CWE-416
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).
Affected products
- 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-rc1, 6.19-rc2, 6.19-rc3, 6.19-rc4 — fixed in 6.1.168, 6.12.81, 6.18.10, 6.6.134
How to fix
Upgrade to a fixed version: Linux kernel 6.1.168, 6.12.81, 6.18.10, 6.6.134. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/0a1fbbd780f04d1b6cf48dd327c866ba937de1c4
- https://git.kernel.org/stable/c/3a9fd45afadec1fbfec72057b9473d509fa8b68c
- https://git.kernel.org/stable/c/3edd1f6c7c520536b62b2904807033597554dbac
- https://git.kernel.org/stable/c/6de3a371a8b9fd095198b1aa68c22cc10a4c6961
- https://git.kernel.org/stable/c/f8da41de0bff9eb1d774a7253da0c9f637c4470a
Get alerted when CVE-2025-71269 or the next vulnerability affects your stack