CVE-2021-47433: btrfs: fix abort logic in btrfs_replace_file_extents
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix abort logic in btrfsreplacefileextents
Error injection testing uncovered a case where we'd end up with a corrupt file system with a missing extent in the middle of a file. This occurs because the if statement to decide if we should abort is wrong.
The only way we would abort in this case is if we got a ret != -EOPNOTSUPP and we called from the file clone code. However the prealloc code uses this path too. Instead we need to abort if there is an error, and the only error we don't abort on is -EOPNOTSUPP and only if we came from the clone file code.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47433?
CVE-2021-47433 has been classified as a high severity vulnerability due to its potential to cause data corruption in btrfs file systems.
How do I fix CVE-2021-47433?
To fix CVE-2021-47433, update to the latest version of the Linux kernel that includes the patch addressing this vulnerability.
What are the potential impacts of CVE-2021-47433?
CVE-2021-47433 can lead to corrupt file systems and data loss if not addressed.
Which systems are primarily affected by CVE-2021-47433?
CVE-2021-47433 primarily affects systems using the btrfs file system in various versions of the Linux kernel.
Is CVE-2021-47433 actively exploited in the wild?
As of the latest reports, there is no evidence of active exploitation of CVE-2021-47433.