CVE-2021-47433

High

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix abort logic in btrfs_replace_file_extents 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.

SeverityHigh
CVSS8.1
Exploit probability—
ProductLinux Kernel
PublishedMay 22, 2024
First seenMay 22, 2024

How to fix

Update
  • linux linux_kernel5.10.75, 5.14.14 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernelv < 5.10.75, 5.11 ≤ v < 5.14.14, 5.155.10.75, 5.14.14

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.