CVE-2021-47113
published high CVSS 3.1 · 7.1btrfs: abort in rename_exchange if we fail to insert the second ref
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxcdd1fedf8261cd7a73c0596298902ff4f0f04492 to < 0df50d47d17401f9f140dfbe752a65e5d72f9932 · cdd1fedf8261cd7a73c0596298902ff4f0f04492 to < ff8de2cec65a8c8521faade12a31b39c80e49f5b · cdd1fedf8261cd7a73c0596298902ff4f0f04492 to < dc09ef3562726cd520c8338c1640872a60187af5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.7 (affected) · 0 to < 4.7 (unaffected · semver) · 5.10.43 through 5.10.* (unaffected · semver) · 5.12.10 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azurex86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-basex86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-develx86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-extrax86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-azurenoarch | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-rtnoarch | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-docsnoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-builds390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt-basex86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt-develx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt_debugx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt_debug-develx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-source-azurenoarch | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-source-rtnoarch | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-syms-azurex86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-syms-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultppc64le | Advisory build | 1-8.3.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaults390x | Advisory build | 1-8.3.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultx86_64 | Advisory build | 1-8.3.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseppc64le | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-bases390x | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-basex86_64 | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-devels390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-develnoarch | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-docsnoarch | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_191-defaultppc64le | Advisory build | 1-150200.5.3.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_191-defaults390x | Advisory build | 1-150200.5.3.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_191-defaultx86_64 | Advisory build | 1-150200.5.3.1 | SUSE-SU-2024:1650-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Scenarios
- en: AV:L - The bug is only in btrfs_rename_exchange, reached via local renameat2(RENAME_EXCHANGE) → vfs_rename → btrfs_rename2. nfsd and ksmbd call vfs_rename without RENAME_EXCHANGE, so there is no network protocol path into this function. AC:L - An attacker who can call rename_exchange on two entries they control can induce second-insert failure via memory or metadata pressure (ENOMEM/ENOSPC/EIO paths in btrfs_insert_inode_ref), matching how analogous unaborted-transaction bugs were scored; under uncertainty AC:L is required. PR:L - vfs_rename only requires ordinary directory write/exec (may_delete/may_create) on an already-mounted btrfs volume; an unprivileged user with a writable directory does not need init-namespace root or capabilities. UI:N - No separate victim action is required once btrfs is mounted (common for home/container/NAS volumes); the attacker triggers the bug solely through their own renameat2(RENAME_EXCHANGE) calls. S:U - Impact is durable corruption of the host btrfs instance within the same kernel/OS security authority; there is no VM escape, IOMMU bypass, or other cross-boundary effect. C:N - The defect commits a dangling inode_ref (on-disk metadata inconsistency) and provides no OOB/UAF read or other kernel or cross-user information-disclosure primitive. I:H - Without aborting after the first successful inode_ref insert, btrfs_end_transaction can allow that partial change to commit, leaving durable filesystem corruption (dangling inode refs), which is high integrity impact on FS metadata. A:H - Committed inode-ref corruption can break later unlink/lookup/balance/scrub paths and destabilize the shared volume for all users, constituting high availability impact comparable to other unaborted btrfs transaction bugs.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | cdd1fedf8261cd7a73c0596298902ff4f0f04492 to < 0df50d47d17401f9f140dfbe752a65e5d72f9932 (affected · git)cdd1fedf8261cd7a73c0596298902ff4f0f04492 to < ff8de2cec65a8c8521faade12a31b39c80e49f5b (affected · git)cdd1fedf8261cd7a73c0596298902ff4f0f04492 to < dc09ef3562726cd520c8338c1640872a60187af5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.7 (affected)0 to < 4.7 (unaffected · semver)5.10.43 through 5.10.* (unaffected · semver)5.12.10 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
3Linux · cna
btrfs: abort in rename_exchange if we fail to insert the second ref
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d2424b917c01857ede0c0520381fb17e9f812494a360d1ca890edd48f926e3cc
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record