
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-54180 is a vulnerability in the Linux kernel's Btrfs filesystem subsystem, specifically in the btrfs_repair_io_failure() function (formerly repair_io_failure()) within fs/btrfs/extent_io.c. The bug causes a kernel panic (BUG_ON() assertion failure) when a device-replace operation is in progress and a read error triggers an I/O repair attempt targeting the replace destination device. It was published on December 30, 2025, and affects the Linux kernel, with an estimated CVSS severity of Medium (Feedly, VulDB).
The root cause is an unhandled edge case (CWE-617: Reachable Assertion) in the Btrfs I/O repair path. During a device-replace operation, read errors can originate from the replace target device (reported as a mirror beyond the normal RAID1 duplication count, e.g., mirror 3). When the repair logic subsequently attempts to write the corrected data back, it hits a BUG_ON() because the code does not account for the scenario where the repair target is the device being replaced. The fix involves adding a conditional check to handle the dev-replace case gracefully before reaching the assertion. Patches are referenced in the stable kernel tree at commits 53e9d68, a7018b4, and d73a27b (Feedly, Kernel Git).
Successful triggering of this vulnerability causes a kernel panic (BUG_ON() assertion), resulting in a system crash and denial of service. The impact is limited to availability — there is no evidence of confidentiality or integrity compromise beyond the crash itself. Systems running Btrfs with an active device-replace operation on a degraded or unreliable disk are at risk of unexpected reboots, which could lead to data inconsistency if writes were in flight (Feedly).
Apply the upstream Linux kernel patches that address the unhandled dev-replace case in btrfs_repair_io_failure(). The fixes are available in the stable kernel tree at commits 53e9d6851b56626885476a2966194ba994f8bb4b, a7018b40b49c37fb55736499f790ec0d2b381ae4, and d73a27b86fc722c28a26ec64002e3a7dc86d1c07. As a workaround, avoid initiating or leaving active device-replace operations on systems with known-failing disks until the patched kernel is applied. Linux distribution vendors (Debian, Ubuntu, RHEL, etc.) should be monitored for backported fixes in their respective stable kernel packages (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."