Linux
btrfs: fix reservation leak in some error paths when inserting inline extent
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix reservation leak in some error paths when inserting inline extent If we fail to allocate a path or join a transaction, we return from __cow_file_range_inline() without freeing the reserved qgroup data, resulting in a leak. Fix this by ensuring we call btrfs_qgroup_free_data() in such cases.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 94ed938aba557aa798acf496f09afb289b619fcd, < f7156512c8166d385f574b9ec030479aa7b1e8c9
- >= 94ed938aba557aa798acf496f09afb289b619fcd, < 28b97fcbbf523779688e8de5fe55bf2dae3859f6
- >= 94ed938aba557aa798acf496f09afb289b619fcd, < f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913
- >= 94ed938aba557aa798acf496f09afb289b619fcd, < 28768bd3abf9995a93f6e01bfce01c60622964dd
- >= 94ed938aba557aa798acf496f09afb289b619fcd, < c1c050f92d8f6aac4e17f7f2230160794fceef0c
Fixed in f7156512c8166d385f574b9ec030479aa7b1e8c9, 28b97fcbbf523779688e8de5fe55bf2dae3859f6, f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913, 28768bd3abf9995a93f6e01bfce01c60622964dd, c1c050f92d8f6aac4e17f7f2230160794fceef0c
- 4.4
Fixed in 0, 6.1.163, 6.6.124, 6.12.70, 6.18.10, 6.19
Mitigation
Upgrade Linux to f7156512c8166d385f574b9ec030479aa7b1e8c9 or 28b97fcbbf523779688e8de5fe55bf2dae3859f6 or f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913 or 28768bd3abf9995a93f6e01bfce01c60622964dd or c1c050f92d8f6aac4e17f7f2230160794fceef0c or later.
Upgrade Linux to 0 or 6.1.163 or 6.6.124 or 6.12.70 or 6.18.10 or 6.19 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.