CVE-2023-54187
published high CVSS 3.1 · 7.8f2fs: fix potential corruption when moving a directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 3e77036246123ff710fa2661dcaa12a45284f09b · 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 957904f531fd857a92743b11fbc9c9ffdf7f3207 · 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9 · 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70 · 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < f20191100952013f0916418cdaed0ab55c7b634c · 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 0a76082a4a32a90d1ef33dee8b400efc082b4b6f · 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < d94772154e524b329a168678836745d2773a6e02 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.19 (affected) · 0 to < 3.19 (unaffected · semver) · 5.4.243 through 5.4.* (unaffected · semver) · 5.10.180 through 5.10.* (unaffected · semver) · 5.15.112 through 5.15.* (unaffected · semver) · 6.1.29 through 6.1.* (unaffected · semver) · 6.2.16 through 6.2.* (unaffected · semver) · 6.3.3 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix potential corruption when moving a directory F2FS has the same issue in ext4_rename causing crash revealed by xfstests/generic/707. See also commit 0813299c586b ("ext4: Fix possible corruption when moving a directory")
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached through the ordinary rename()/renameat2() syscall on a locally mounted f2fs filesystem, requiring local system access. No network protocol handler is involved. AC:L - The attacker controls both sides of the race — one thread issues the cross-directory rename while another creates entries in the moved directory to force inline-to-normal dentry conversion — and the unprotected window spans f2fs_balance_fs() (which can run GC and block for a long time), f2fs_lock_op() and f2fs_add_link(), making it wide and retryable indefinitely. PR:L - Any unprivileged local user with write access to two directories on an f2fs mount can trigger this; on Android every app has writable directories on the f2fs /data partition, and inline_dentry is enabled by default in default_options(). UI:N - The attacker performs both the rename and the concurrent directory-modifying operations itself; no victim action is needed on an already-mounted filesystem. S:U - The corruption stays within the kernel/filesystem security authority; there is no crossing into a hypervisor, IOMMU, or other separate security scope. C:H - The stale write lands inside the inode's i_addr[] block-address array, planting an attacker-influenced physical block number into the directory, so subsequent readdir/lookup reads and exposes disk blocks belonging to other users' files. I:H - This is persistent on-disk metadata corruption — an attacker-influenced 32-bit value is written into a directory inode's block pointer and marked dirty, causing later directory writes to overwrite blocks owned by other files and producing double-allocated blocks requiring fsck. A:H - The commit states the race causes a crash (reproduced by xfstests/generic/707), and the resulting mismatched page-type writeback wait can hang under the page lock while the corrupted metadata triggers -EFSCORRUPTED/SBI_NEED_FSCK filesystem shutdown.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 3e77036246123ff710fa2661dcaa12a45284f09b (affected · git)622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 957904f531fd857a92743b11fbc9c9ffdf7f3207 (affected · git)622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9 (affected · git)622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70 (affected · git)622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < f20191100952013f0916418cdaed0ab55c7b634c (affected · git)622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < 0a76082a4a32a90d1ef33dee8b400efc082b4b6f (affected · git)622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce to < d94772154e524b329a168678836745d2773a6e02 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.19 (affected)0 to < 3.19 (unaffected · semver)5.4.243 through 5.4.* (unaffected · semver)5.10.180 through 5.10.* (unaffected · semver)5.15.112 through 5.15.* (unaffected · semver)6.1.29 through 6.1.* (unaffected · semver)6.2.16 through 6.2.* (unaffected · semver)6.3.3 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/0a76082a4a32a90d1ef33dee8b400efc082b4b6f
- https://git.kernel.org/stable/c/3e77036246123ff710fa2661dcaa12a45284f09b
- https://git.kernel.org/stable/c/8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70
- https://git.kernel.org/stable/c/8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9
- https://git.kernel.org/stable/c/957904f531fd857a92743b11fbc9c9ffdf7f3207
- https://git.kernel.org/stable/c/d94772154e524b329a168678836745d2773a6e02
- https://git.kernel.org/stable/c/f20191100952013f0916418cdaed0ab55c7b634c
Provider assertions
1Linux · cna
f2fs: fix potential corruption when moving a directory
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cb8756d79e2abee65fbda0f38db7265a2d6a4539984a5c498e8d86a44c44fe80
- Ingested
- 23 Sep 2026, 08:15:07 UTC
- Source record
- Official CVE record