CVE-2023-54185
btrfs: remove BUG_ON()'s in add_new_free_space()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < 23e72231f8281505883514b23709076e234d4f27; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < f775ceb0cb530e4a469b718fb2a24843071087f5; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < d8ccbd21918fd7fa6ce3226cffc22c444228e8ad
- Anyone running Linux 2.6.29
Vulnerability facts
- Affected
- Linux >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < 23e72231f8281505883514b23709076e234d4f27; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < f775ceb0cb530e4a469b718fb2a24843071087f5; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < d8ccbd21918fd7fa6ce3226cffc22c444228e8ad; Linux 2.6.29
- Fixed in
- Linux 23e72231f8281505883514b23709076e234d4f27
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: remove BUG_ON()'s in add_new_free_space() At add_new_free_space() we have these BUG_ON()'s that are there to deal with any failure to add free space to the in memory free space cache. Such failures are mostly -ENOMEM that should be very rare. However there's no need to have these BUG_ON()'s, we can just return any error to the caller and all callers and their upper call chain are already dealing with errors. So just make add_new_free_space() return any errors, while removing the BUG_ON()'s, and returning the total amount of added free space to an optional u64 pointer argument.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < 23e72231f8281505883514b23709076e234d4f27; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < f775ceb0cb530e4a469b718fb2a24843071087f5; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < d8ccbd21918fd7fa6ce3226cffc22c444228e8ad | — | cvelist |
| Linux | 2.6.29 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-54185. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-54185.md Affected: Linux >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < 23e72231f8281505883514b23709076e234d4f27; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < f775ceb0cb530e4a469b718fb2a24843071087f5; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < d8ccbd21918fd7fa6ce3226cffc22c444228e8ad; Linux 2.6.29 Fixed in: Linux 23e72231f8281505883514b23709076e234d4f27 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2023-54185 being exploited?
There is no confirmed exploitation: CVE-2023-54185 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-54185?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2023-54185?
Linux >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < 23e72231f8281505883514b23709076e234d4f27; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < f775ceb0cb530e4a469b718fb2a24843071087f5; >= 0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52, < d8ccbd21918fd7fa6ce3226cffc22c444228e8ad; Linux 2.6.29.
Is there a fix for CVE-2023-54185?
Yes. Fixed in Linux 23e72231f8281505883514b23709076e234d4f27. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-54185?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.