CVEvulnerability
CVE-2021-47113
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2024-03-15
- Last modified
- 2026-08-04
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
- 7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-416
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 configurations
• linux linux kernel (< 5.10.43)
• linux linux kernel (>= 5.11 < 5.12.10)
• linux linux kernel 5.13
Related
Weakness · CWE (1)
- CWE-416 Use After Free weakness
References
- https://git.kernel.org/stable/c/0df50d47d17401f9f140dfbe752a65e5d72f9932 Patch
- https://git.kernel.org/stable/c/dc09ef3562726cd520c8338c1640872a60187af5 Patch
- https://git.kernel.org/stable/c/ff8de2cec65a8c8521faade12a31b39c80e49f5b Patch
- https://git.kernel.org/stable/c/0df50d47d17401f9f140dfbe752a65e5d72f9932 Patch
- https://git.kernel.org/stable/c/dc09ef3562726cd520c8338c1640872a60187af5 Patch
- https://git.kernel.org/stable/c/ff8de2cec65a8c8521faade12a31b39c80e49f5b Patch