Linux · Linux Kernel · CVE-2021-47189
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
The issue is related to a race condition in the btrfs component of the Linux kernel, specifically between normal and ordered work functions. This can lead to crashes on ARM64 systems when `async chunk::inode` is seen as non-null in `async cow submit`, causing `submit compressed extents` to be called and resulting in a crash because `async chunk::inode` suddenly becomes NULL. The synchronization between normal and ordered functions is done via the `WORK DONE BIT`, but the used bitops do not guarantee any ordering. To fix this, barrier calls are added to ensure that all accesses preceding the setting of `WORK DONE BIT` are strictly ordered before setting the flag, and a read barrier is added after reading `WORK DONE BIT` in `run ordered work` to ensure subsequent loads are strictly ordered after reading the bit.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.