{"id":"CVE-2023-54185","aliases":["CVE-2023-54185"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: remove BUG_ON()'s in add_new_free_space()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: remove BUG_ON()'s in add_new_free_space()\n\nAt add_new_free_space() we have these BUG_ON()'s that are there to deal\nwith any failure to add free space to the in memory free space cache.\nSuch failures are mostly -ENOMEM that should be very rare. However there's\nno need to have these BUG_ON()'s, we can just return any error to the\ncaller and all callers and their upper call chain are already dealing with\nerrors.\n\nSo just make add_new_free_space() return any errors, while removing the\nBUG_ON()'s, and returning the total amount of added free space to an\noptional u64 pointer argument.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: remove BUG_ON()'s in add_new_free_space()\n\nAt add_new_free_space() we have these BUG_ON()'s that are there to deal\nwith any failure to add free space to the in memory free space cache.\nSuch failures are mostly -ENOMEM that should be very rare. However there's\nno need to have these BUG_ON()'s, we can just return any error to the\ncaller and all callers and their upper call chain are already dealing with\nerrors.\n\nSo just make add_new_free_space() return any errors, while removing the\nBUG_ON()'s, and returning the total amount of added free space to an\noptional u64 pointer argument.","source":"cvelist"}],"published":"2025-12-30T12:08:55.218Z","modified":"2026-06-17T06:46:57.780Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52","fixed":"23e72231f8281505883514b23709076e234d4f27","status":"affected"},{"type":"git","introduced":"0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52","fixed":"f775ceb0cb530e4a469b718fb2a24843071087f5","status":"affected"},{"type":"git","introduced":"0f9dd46cda36b8de3b9f48bc42bd09d20b9c3b52","fixed":"d8ccbd21918fd7fa6ce3226cffc22c444228e8ad","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","status":"unaffected"},{"type":"semver","introduced":"6.1.45","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.10","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/23e72231f8281505883514b23709076e234d4f27","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f775ceb0cb530e4a469b718fb2a24843071087f5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8ccbd21918fd7fa6ce3226cffc22c444228e8ad","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54185","url":"https://www.cve.org/CVERecord?id=CVE-2023-54185","licence":"CVE Terms of Use","modified":"2026-05-11T19:57:06.627Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54185","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54185","licence":"Public domain","modified":"2026-06-17T06:46:57.780Z"}],"updatedAt":"2026-11-25T22:58:35.211Z","epss":{"score":0.00211,"percentile":0.12117,"date":"2026-12-01T12:00:22.000Z"}}