Lucene search

K
osvGoogleOSV:CVE-2021-47433
HistoryMay 22, 2024 - 7:15 a.m.

CVE-2021-47433

2024-05-2207:15:00
Google
osv.dev
4
linux kernel
vulnerability
cve-2021-47433
btrfs
file system
fix

AI Score

7

Confidence

Low

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.