What’s Vulnerable › Vulnerabilities

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

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

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

Get alerted when CVE-2025-71269 or the next vulnerability affects your stack