CVE-2023-54185
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
30/12/2025
Last modified:
30/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
btrfs: remove BUG_ON()&#39;s in add_new_free_space()<br />
<br />
At add_new_free_space() we have these BUG_ON()&#39;s that are there to deal<br />
with any failure to add free space to the in memory free space cache.<br />
Such failures are mostly -ENOMEM that should be very rare. However there&#39;s<br />
no need to have these BUG_ON()&#39;s, we can just return any error to the<br />
caller and all callers and their upper call chain are already dealing with<br />
errors.<br />
<br />
So just make add_new_free_space() return any errors, while removing the<br />
BUG_ON()&#39;s, and returning the total amount of added free space to an<br />
optional u64 pointer argument.



