CVE-2023-54185
kernel: btrfs: remove BUG_ON()'s in add_new_free_space()
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 30, 2025
Updated · June 30, 2026
Description
The Btrfs filesystem contains BUG_ON() calls in add_new_free_space() that crash the kernel when memory allocation fails. This change replaces panic-inducing BUG_ON() with proper error handling.
Statement
The BUG_ON() calls are triggered by rare memory allocation failures. While the crash is a denial of service, exploiting it requires creating memory pressure during specific Btrfs operations. The fix converts these to recoverable errors.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-617 · Reachable Assertion