CVE-2021-47113

medium

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.

References

https://git.kernel.org/stable/c/ff8de2cec65a8c8521faade12a31b39c80e49f5b

https://git.kernel.org/stable/c/dc09ef3562726cd520c8338c1640872a60187af5

https://git.kernel.org/stable/c/0df50d47d17401f9f140dfbe752a65e5d72f9932

Details

Source: Mitre, NVD

Published: 2024-03-15

Updated: 2024-03-17

Risk Information

CVSS v2

Base Score: 4.6

Vector: CVSS2#AV:L/AC:L/Au:S/C:N/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 5.5

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Severity: Medium