CVE-2023-54185

Source
https://cve.org/CVERecord?id=CVE-2023-54185
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54185.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54185
Downstream
Related
Published
2025-12-30T12:08:55.218Z
Modified
2026-03-31T17:29:24.102915154Z
Summary
btrfs: remove BUG_ON()'s in add_new_free_space()
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: remove BUGON()'s in addnewfreespace()

At addnewfreespace() we have these BUGON()'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 addnewfreespace() return any errors, while removing the BUGON()'s, and returning the total amount of added free space to an optional u64 pointer argument.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54185.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52
Fixed
23e72231f8281505883514b23709076e234d4f27
Fixed
f775ceb0cb530e4a469b718fb2a24843071087f5
Fixed
d8ccbd21918fd7fa6ce3226cffc22c444228e8ad

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54185.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.29
Fixed
6.1.45
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.4.10

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54185.json"