CVE-2021-47113: btrfs: abort in rename_exchange if we fail to insert the second ref
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.
Security readout for executives and security teams
Plain-English summary
This Linux kernel Btrfs flaw can leave a filesystem corrupted if a rename-exchange operation fails at a specific point. It is mainly a data integrity risk for systems using Btrfs, not a confirmed remote-code-execution issue. No source in the bundle reports active exploitation.
Executive priority
Treat as a targeted reliability and data integrity issue. Prioritize patching where Btrfs supports production data, databases, build systems, or backup repositories. Broader emergency response is not supported by the provided evidence.
Technical view
In Btrfs rename_exchange handling, the kernel inserts inode references for both sides. If the second insert fails after the first succeeds, the first reference can remain dangling, corrupting the filesystem. The fix aborts when the first inode reference was inserted and the second insert fails.
Likely exposure
Exposure is most relevant to Linux systems using Btrfs. The source bundle lists Linux kernel versions and stable fixes, but exact distribution package ranges must be confirmed against vendor advisories.
Exploitation context
The issue was found through error-injection stress testing. The bundle marks KEV as false and provides no evidence of public exploitation or weaponized use.
Researcher notes
The source describes a filesystem-consistency bug in Btrfs rename_exchange error handling. Affected-version semantics in the bundle are incomplete, so researchers should verify exact kernel ranges through upstream stable commits and distribution advisories.
Mitigation direction
Identify Linux systems using Btrfs filesystems.
Check kernel vendor advisories for CVE-2021-47113 package status.
Update to a vendor kernel containing the cited stable fixes.
Prioritize systems where Btrfs stores critical or hard-to-restore data.
Maintain current backups before kernel or filesystem maintenance.
Validation and detection
Inventory kernel versions on Btrfs-backed hosts.
Map running kernels to vendor fixed package versions.
Check whether cited stable commits are included in custom kernels.
Review storage monitoring for Btrfs corruption or transaction errors.
Confirm backups and restore procedures for affected systems.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47113 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.