btrfs: do not free data reservation in fallback from inline due to -ENOSPC
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.168, 6.6.134, 6.12.81, 6.18.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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).
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 94ed938aba557aa798acf496f09afb289b619fcd · fixed in 3edd1f6c7c520536b62b2904807033597554dbac; From 94ed938aba557aa798acf496f09afb289b619fcd · fixed in 3a9fd45afadec1fbfec72057b9473d509fa8b68c; From 94ed938aba557aa798acf496f09afb289b619fcd · fixed in 0a1fbbd780f04d1b6cf48dd327c866ba937de1c4; From 94ed938aba557aa798acf496f09afb289b619fcd · fixed in 6de3a371a8b9fd095198b1aa68c22cc10a4c6961; From 94ed938aba557aa798acf496f09afb289b619fcd · fixed in f8da41de0bff9eb1d774a7253da0c9f637c4470a
- Linux Linux
4.4
- KernelLinux
From 4.4.0 · fixed in 6.1.168; From 6.2.0 · fixed in 6.6.134; From 6.7.0 · fixed in 6.12.81; From 6.13.0 · fixed in 6.18.10