
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47189 is a memory ordering vulnerability discovered in the Linux kernel's btrfs filesystem code. The vulnerability was disclosed on April 10, 2024, affecting the synchronization between normal and ordered work functions in the btrfs filesystem implementation. The issue specifically impacts systems using the btrfs filesystem, particularly showing problems on ARM64 architectures (NVD).
The vulnerability stems from improper synchronization between normal and ordered work functions in the btrfs filesystem. The synchronization relies on WORK_DONE_BIT, but the used bitops don't guarantee proper ordering. This manifests as crashes on ARM64 systems where async_chunk::inode is seen as non-null in async_cow_submit, causing submit_compressed_extents to be called and crash when async_chunk::inode unexpectedly becomes NULL. The issue has been assigned a CVSS v3.1 base score of 6.3 (Medium) by CISA-ADP with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (NVD).
The vulnerability can lead to unpredictable behavior or security risks in systems using the btrfs filesystem. The primary impact is system stability issues, particularly manifesting as crashes on ARM64 architectures. The vulnerability affects the system's memory ordering mechanisms, potentially leading to data inconsistency or system crashes (Red Hat).
The vulnerability requires local access and low privileges to exploit. It primarily affects systems using the btrfs filesystem and is particularly noticeable on ARM64 architectures. The issue has been confirmed to cause system crashes under specific conditions when the filesystem operations trigger the improper memory ordering behavior (NVD).
The vulnerability has been fixed by adding barrier calls that ensure proper ordering of memory accesses. The fix includes adding smp_mb__before_atomic() before setting WORK_DONE_BIT and smp_rmb() after reading WORK_DONE_BIT in run_ordered_work. These changes ensure strict ordering of memory accesses between normal and ordered work functions. The fix has been implemented in various Linux kernel versions and is available through system updates (Kernel Commit).
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."