Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 94ed938aba557aa798acf496f09afb289b619fcd to < 3edd1f6c7c520536b62b2904807033597554dbacaffected
  • 94ed938aba557aa798acf496f09afb289b619fcd to < 3a9fd45afadec1fbfec72057b9473d509fa8b68caffected
  • 94ed938aba557aa798acf496f09afb289b619fcd to < 0a1fbbd780f04d1b6cf48dd327c866ba937de1c4affected
  • 94ed938aba557aa798acf496f09afb289b619fcd to < 6de3a371a8b9fd095198b1aa68c22cc10a4c6961affected
  • 94ed938aba557aa798acf496f09afb289b619fcd to < f8da41de0bff9eb1d774a7253da0c9f637c4470aaffected

Linux Linux

Default version status: affected

  • 4.4affected
  • 0 to < 4.4unaffected
  • 6.1.168 to ≤ 6.1.*unaffected
  • 6.6.134 to ≤ 6.6.*unaffected
  • 6.12.81 to ≤ 6.12.*unaffected
  • 6.18.10 to ≤ 6.18.*unaffected
  • 6.19 to ≤ *unaffected

References