CVE-2021-47433

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
22/05/2024
Last modified:
25/09/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> btrfs: fix abort logic in btrfs_replace_file_extents<br /> <br /> Error injection testing uncovered a case where we&amp;#39;d end up with a<br /> corrupt file system with a missing extent in the middle of a file. This<br /> occurs because the if statement to decide if we should abort is wrong.<br /> <br /> The only way we would abort in this case is if we got a ret !=<br /> -EOPNOTSUPP and we called from the file clone code. However the<br /> prealloc code uses this path too. Instead we need to abort if there is<br /> an error, and the only error we _don&amp;#39;t_ abort on is -EOPNOTSUPP and only<br /> if we came from the clone file code.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.10.75 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.14.14 (excluding)
cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc5:*:*:*:*:*:*