# CVE-2023-54124: f2fs: fix to drop all dirty pages during umount() if cp\_error is set

> 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.23% (percentile 9, 2026-11-26)
- **Published:** 2025-12-24T13:06:43.290Z
- **Modified:** 2026-08-05T09:17:25.391Z

## Who should check

- Anyone running Linux \>= af697c0f5c5b8798832e651baf23460d588393de, \< 92575f05a32dafb16348bfa5e62478118a9be069; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1; \>= af697c0f5c5b8798832e651baf23460d588393de, \< ad87bd313f70b51e48019d5ce2d02d73152356b3; \>= af697c0f5c5b8798832e651baf23460d588393de, \< d8f4ad5f3979dbd8e6251259562f12472717883a; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 7741ddc882a0c806a6508ba8203c55a779db7a21; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 82c3d6e9db41cbd3af1d4f90bdb441740b5fad10; \>= af697c0f5c5b8798832e651baf23460d588393de, \< c9b3649a934d131151111354bcbb638076f03a30
- Anyone running Linux 4.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to drop all dirty pages during umount() if cp\_error is set

xfstest generic/361 reports a bug as below:

f2fs\_bug\_on(sbi, sbi-\>fsync\_node\_num);

kernel BUG at fs/f2fs/super.c:1627!
RIP: 0010:f2fs\_put\_super+0x3a8/0x3b0
Call Trace:
 generic\_shutdown\_super+0x8c/0x1b0
 kill\_block\_super+0x2b/0x60
 kill\_f2fs\_super+0x87/0x110
 deactivate\_locked\_super+0x39/0x80
 deactivate\_super+0x46/0x50
 cleanup\_mnt+0x109/0x170
 \_\_cleanup\_mnt+0x16/0x20
 task\_work\_run+0x65/0xa0
 exit\_to\_user\_mode\_prepare+0x175/0x190
 syscall\_exit\_to\_user\_mode+0x25/0x50
 do\_syscall\_64+0x4c/0x90
 entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc

During umount(), if cp\_error is set, f2fs\_wait\_on\_all\_pages() should
not stop waiting all F2FS\_WB\_CP\_DATA pages to be writebacked, otherwise,
fsync\_node\_num can be non-zero after f2fs\_wait\_on\_all\_pages() causing
this bug.

In this case, to avoid deadloop in f2fs\_wait\_on\_all\_pages(), it needs
to drop all dirty pages rather than redirtying them.

## Affected and fixed versions

- Linux: \>= af697c0f5c5b8798832e651baf23460d588393de, \< 92575f05a32dafb16348bfa5e62478118a9be069; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1; \>= af697c0f5c5b8798832e651baf23460d588393de, \< ad87bd313f70b51e48019d5ce2d02d73152356b3; \>= af697c0f5c5b8798832e651baf23460d588393de, \< d8f4ad5f3979dbd8e6251259562f12472717883a; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 7741ddc882a0c806a6508ba8203c55a779db7a21; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 82c3d6e9db41cbd3af1d4f90bdb441740b5fad10; \>= af697c0f5c5b8798832e651baf23460d588393de, \< c9b3649a934d131151111354bcbb638076f03a30 (cvelist)
- Linux: 4.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-54124. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54124.md
Affected: Linux >= af697c0f5c5b8798832e651baf23460d588393de, < 92575f05a32dafb16348bfa5e62478118a9be069; >= af697c0f5c5b8798832e651baf23460d588393de, < 4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1; >= af697c0f5c5b8798832e651baf23460d588393de, < ad87bd313f70b51e48019d5ce2d02d73152356b3; >= af697c0f5c5b8798832e651…
Fixed in: Linux 92575f05a32dafb16348bfa5e62478118a9be069, Linux 4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1, Linux 7741ddc882a0c806a6508ba8203c55a779db7a21, Linux 82c3d6e9db41cbd3af1d4f90bdb441740b5fad10

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-54124 being exploited?

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

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

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

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

Linux \>= af697c0f5c5b8798832e651baf23460d588393de, \< 92575f05a32dafb16348bfa5e62478118a9be069; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1; \>= af697c0f5c5b8798832e651baf23460d588393de, \< ad87bd313f70b51e48019d5ce2d02d73152356b3; \>= af697c0f5c5b8798832e651baf23460d588393de, \< d8f4ad5f3979dbd8e6251259562f12472717883a; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 7741ddc882a0c806a6508ba8203c55a779db7a21; \>= af697c0f5c5b8798832e651baf23460d588393de, \< 82c3d6e9db41cbd3af1d4f90bdb441740b5fad10; \>= af697c0f5c5b8798832e651baf23460d588393de, \< c9b3649a934d131151111354bcbb638076f03a30; Linux 4.19.

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

Yes. Fixed in Linux 92575f05a32dafb16348bfa5e62478118a9be069, Linux 4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1, Linux 7741ddc882a0c806a6508ba8203c55a779db7a21, Linux 82c3d6e9db41cbd3af1d4f90bdb441740b5fad10. No fix listed yet: follow the vendor advisory.

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

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/92575f05a32dafb16348bfa5e62478118a9be069>
- other: <https://git.kernel.org/stable/c/4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1>
- other: <https://git.kernel.org/stable/c/ad87bd313f70b51e48019d5ce2d02d73152356b3>
- other: <https://git.kernel.org/stable/c/d8f4ad5f3979dbd8e6251259562f12472717883a>
- other: <https://git.kernel.org/stable/c/7741ddc882a0c806a6508ba8203c55a779db7a21>
- other: <https://git.kernel.org/stable/c/82c3d6e9db41cbd3af1d4f90bdb441740b5fad10>
- other: <https://git.kernel.org/stable/c/c9b3649a934d131151111354bcbb638076f03a30>

## 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-54124>

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