# CVE-2023-54187: f2fs: fix potential corruption when moving a directory

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2025-12-30T12:08:56.562Z
- **Modified:** 2026-08-05T09:17:54.804Z

## Who should check

- Anyone running Linux \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 3e77036246123ff710fa2661dcaa12a45284f09b; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 957904f531fd857a92743b11fbc9c9ffdf7f3207; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< f20191100952013f0916418cdaed0ab55c7b634c; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 0a76082a4a32a90d1ef33dee8b400efc082b4b6f; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< d94772154e524b329a168678836745d2773a6e02
- Anyone running Linux 3.19

## 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")

## Affected and fixed versions

- Linux: \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 3e77036246123ff710fa2661dcaa12a45284f09b; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 957904f531fd857a92743b11fbc9c9ffdf7f3207; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< f20191100952013f0916418cdaed0ab55c7b634c; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 0a76082a4a32a90d1ef33dee8b400efc082b4b6f; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< d94772154e524b329a168678836745d2773a6e02 (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54187. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54187.md
Affected: Linux >= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, < 3e77036246123ff710fa2661dcaa12a45284f09b; >= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, < 957904f531fd857a92743b11fbc9c9ffdf7f3207; >= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, < 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9; >= 622f28ae9ba4fa89b4ff0f4…
Fixed in: Linux 3e77036246123ff710fa2661dcaa12a45284f09b, Linux 957904f531fd857a92743b11fbc9c9ffdf7f3207, Linux 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9, Linux 8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70, Linux 0a76082a4a32a90d1ef33dee8b400efc082b4b6f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54187 being exploited?

There is no confirmed exploitation: CVE-2023-54187 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54187?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-54187?

Linux \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 3e77036246123ff710fa2661dcaa12a45284f09b; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 957904f531fd857a92743b11fbc9c9ffdf7f3207; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< f20191100952013f0916418cdaed0ab55c7b634c; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< 0a76082a4a32a90d1ef33dee8b400efc082b4b6f; \>= 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce, \< d94772154e524b329a168678836745d2773a6e02; Linux 3.19.

### Is there a fix for CVE-2023-54187?

Yes. Fixed in Linux 3e77036246123ff710fa2661dcaa12a45284f09b, Linux 957904f531fd857a92743b11fbc9c9ffdf7f3207, Linux 8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9, Linux 8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70, Linux 0a76082a4a32a90d1ef33dee8b400efc082b4b6f. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54187?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3e77036246123ff710fa2661dcaa12a45284f09b>
- other: <https://git.kernel.org/stable/c/957904f531fd857a92743b11fbc9c9ffdf7f3207>
- other: <https://git.kernel.org/stable/c/8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9>
- other: <https://git.kernel.org/stable/c/8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70>
- other: <https://git.kernel.org/stable/c/f20191100952013f0916418cdaed0ab55c7b634c>
- other: <https://git.kernel.org/stable/c/0a76082a4a32a90d1ef33dee8b400efc082b4b6f>
- other: <https://git.kernel.org/stable/c/d94772154e524b329a168678836745d2773a6e02>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54187>

HTML: <https://flawdb.com/CVE-2023-54187> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54187>
