CVE-2021-47113
JSON

7.1high

btrfs: abort in rename_exchange if we fail to insert the second ref

Severity
7.1high CVSS:3.1 by Linux
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom cdd1fedf8261cd7a73c0596298902ff4f0f04492 before 0df50d47d17401f9f140dfbe752a65e5d72f9932, from cdd1fedf8261cd7a73c0596298902ff4f0f04492 before ff8de2cec65a8c8521faade12a31b39c80e49f5b, from cdd1fedf8261cd7a73c0596298902ff4f0f04492 before dc09ef3562726cd520c8338c1640872a60187af5, 4.7
Not affected: before 4.7, from 5.10.43 up to 5.10.*, from 5.12.10 up to 5.12.*, from 5.13 up to *
CVE List
linux linux_kernelbefore 5.10.43, from 5.11 before 5.12.10, 5.13NVD

All scores

Linux7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (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.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47113 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47113 changed 2026-08-04Public domain