CVE-2023-54185
Improper Error Handling in Linux btrfs add_new_free_space
Publication date: 2025-12-30
Last updated on: 2025-12-30
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | kernel | * |
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability involves the Linux kernel's btrfs filesystem code, specifically in the add_new_free_space() function. Previously, the function used BUG_ON() macros to handle failures when adding free space to the in-memory free space cache, which could cause kernel crashes on rare errors like -ENOMEM. The fix removes these BUG_ON() calls and instead returns error codes to the caller, allowing the system to handle errors gracefully without crashing.
How can this vulnerability impact me? :
If unpatched, this vulnerability could cause the Linux kernel to crash unexpectedly due to the BUG_ON() calls in the btrfs add_new_free_space() function when rare errors occur. This could lead to system instability or downtime. After the fix, errors are handled properly without crashing, improving system reliability.