CVE-2021-47113

In the Linux kernel, the following vulnerability has been resolved: btrfs: abort in rename_exchange if we fail to insert the second ref Error injection stress uncovered a problem where we'd leave a dangling inode ref if we failed during a rename_exchange. This happens because we insert the inode ref for one side of the rename, and then for the other side. If this second inode ref insert fails we'll leave the first one dangling and leave a corrupt file system behind. Fix this by aborting if we did the insert for the first inode ref.
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.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*

History

13 Mar 2025, 19:36

Type Values Removed Values Added
CWE CWE-416
CPE cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*
First Time Linux linux Kernel
Linux
References () https://git.kernel.org/stable/c/0df50d47d17401f9f140dfbe752a65e5d72f9932 - () https://git.kernel.org/stable/c/0df50d47d17401f9f140dfbe752a65e5d72f9932 - Patch
References () https://git.kernel.org/stable/c/dc09ef3562726cd520c8338c1640872a60187af5 - () https://git.kernel.org/stable/c/dc09ef3562726cd520c8338c1640872a60187af5 - Patch
References () https://git.kernel.org/stable/c/ff8de2cec65a8c8521faade12a31b39c80e49f5b - () https://git.kernel.org/stable/c/ff8de2cec65a8c8521faade12a31b39c80e49f5b - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5

21 Nov 2024, 06:35

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/0df50d47d17401f9f140dfbe752a65e5d72f9932 - () https://git.kernel.org/stable/c/0df50d47d17401f9f140dfbe752a65e5d72f9932 -
References () https://git.kernel.org/stable/c/dc09ef3562726cd520c8338c1640872a60187af5 - () https://git.kernel.org/stable/c/dc09ef3562726cd520c8338c1640872a60187af5 -
References () https://git.kernel.org/stable/c/ff8de2cec65a8c8521faade12a31b39c80e49f5b - () https://git.kernel.org/stable/c/ff8de2cec65a8c8521faade12a31b39c80e49f5b -
Summary
  • (es) En el kernel de Linux, se resolvió la siguiente vulnerabilidad: btrfs: abortar en rename_exchange si no logramos insertar la segunda referencia. El error de inyección de estrés descubrió un problema en el que dejaríamos una referencia de inodo colgante si fallábamos durante un rename_exchange. Esto sucede porque insertamos la referencia del inodo para un lado del cambio de nombre y luego para el otro lado. Si esta segunda inserción de referencia de inodo falla, dejaremos el primero colgando y dejaremos un sistema de archivos corrupto. Solucione este problema abortando si hicimos la inserción para la primera referencia de inodo.

15 Mar 2024, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-03-15 21:15

Updated : 2025-03-13 19:36


NVD link : CVE-2021-47113

Mitre link : CVE-2021-47113

CVE.ORG link : CVE-2021-47113


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free