CVE-2021-47433

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
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:*:*:*:*:*:*

History

25 Sep 2025, 16:02

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
References () https://git.kernel.org/stable/c/0e309e1152fc34ef75991d9d69b165dbf75bf26c - () https://git.kernel.org/stable/c/0e309e1152fc34ef75991d9d69b165dbf75bf26c - Patch
References () https://git.kernel.org/stable/c/0e32a2b85c7d92ece86c17dfef390c5ed79c6378 - () https://git.kernel.org/stable/c/0e32a2b85c7d92ece86c17dfef390c5ed79c6378 - Patch
References () https://git.kernel.org/stable/c/4afb912f439c4bc4e6a4f3e7547f2e69e354108f - () https://git.kernel.org/stable/c/4afb912f439c4bc4e6a4f3e7547f2e69e354108f - Patch
First Time Linux linux Kernel
Linux
CWE NVD-CWE-noinfo
CPE cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:*

21 Nov 2024, 06:36

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/0e309e1152fc34ef75991d9d69b165dbf75bf26c - () https://git.kernel.org/stable/c/0e309e1152fc34ef75991d9d69b165dbf75bf26c -
References () https://git.kernel.org/stable/c/0e32a2b85c7d92ece86c17dfef390c5ed79c6378 - () https://git.kernel.org/stable/c/0e32a2b85c7d92ece86c17dfef390c5ed79c6378 -
References () https://git.kernel.org/stable/c/4afb912f439c4bc4e6a4f3e7547f2e69e354108f - () https://git.kernel.org/stable/c/4afb912f439c4bc4e6a4f3e7547f2e69e354108f -
Summary
  • (es) En el kernel de Linux, se resolvió la siguiente vulnerabilidad: btrfs: corrige la lógica de aborto en btrfs_replace_file_extents Las pruebas de inyección de errores descubrieron un caso en el que terminaríamos con un sistema de archivos corrupto al que le faltaba una extensión en medio de un archivo. Esto ocurre porque la declaración if para decidir si debemos abortar es incorrecta. La única manera de abortar en este caso es si obtenemos un ret! = -EOPNOTSUPP y llamamos desde el código de clonación del archivo. Sin embargo, el código de preasignación también utiliza esta ruta. En lugar de eso, debemos abortar si hay un error, y el único error por el que _no_ abortamos es -EOPNOTSUPP y solo si venimos del código del archivo clonado.

22 May 2024, 07:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-22 07:15

Updated : 2025-09-25 16:02


NVD link : CVE-2021-47433

Mitre link : CVE-2021-47433

CVE.ORG link : CVE-2021-47433


JSON object : View

Products Affected

linux

  • linux_kernel