CVE-2023-54032
Race Condition in Linux btrfs Quota Root Deletion Causes Kernel Crash
Publication date: 2025-12-24
Last updated on: 2025-12-24
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| 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 is a race condition in the Linux kernel's Btrfs filesystem related to quota management. Specifically, when disabling quotas, the quota root is deleted from a list called dirty_cowonly_roots without properly acquiring the necessary lock (trans_lock). This unsynchronized manipulation can cause concurrent access issues, leading to unpredictable failures such as kernel crashes (general protection faults). The fix involves properly locking trans_lock before deleting the quota root from the list to prevent race conditions.
How can this vulnerability impact me? :
This vulnerability can cause system instability and crashes due to race conditions in the Btrfs quota management code. If exploited or triggered, it may lead to kernel panics or general protection faults, potentially causing data loss or system downtime.
What immediate steps should I take to mitigate this vulnerability?
Apply the patch or update to a Linux kernel version that includes the fix for this vulnerability, which involves locking struct btrfs_fs_info::trans_lock before deleting the quota root from the dirty cow roots list. This prevents the race condition causing potential crashes.