CVE-2023-54124

Source
https://cve.org/CVERecord?id=CVE-2023-54124
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54124.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-54124
Downstream
Published
2025-12-24T13:06:43.290Z
Modified
2026-04-02T09:45:36.803142Z
Summary
f2fs: fix to drop all dirty pages during umount() if cp_error is set
Details

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:

f2fsbugon(sbi, sbi->fsyncnodenum);

kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fsputsuper+0x3a8/0x3b0 Call Trace: genericshutdownsuper+0x8c/0x1b0 killblocksuper+0x2b/0x60 killf2fssuper+0x87/0x110 deactivatelockedsuper+0x39/0x80 deactivatesuper+0x46/0x50 cleanupmnt+0x109/0x170 _cleanupmnt+0x16/0x20 taskworkrun+0x65/0xa0 exittousermodeprepare+0x175/0x190 syscallexittousermode+0x25/0x50 dosyscall64+0x4c/0x90 entrySYSCALL64afterhwframe+0x72/0xdc

During umount(), if cperror is set, f2fswaitonallpages() should not stop waiting all F2FSWBCPDATA pages to be writebacked, otherwise, fsyncnodenum can be non-zero after f2fswaitonallpages() causing this bug.

In this case, to avoid deadloop in f2fswaitonallpages(), it needs to drop all dirty pages rather than redirtying them.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54124.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
af697c0f5c5b8798832e651baf23460d588393de
Fixed
92575f05a32dafb16348bfa5e62478118a9be069
Fixed
4ceedc2f8bdffb82e40b7d1bb912304f8e157cb1
Fixed
ad87bd313f70b51e48019d5ce2d02d73152356b3
Fixed
d8f4ad5f3979dbd8e6251259562f12472717883a
Fixed
7741ddc882a0c806a6508ba8203c55a779db7a21
Fixed
82c3d6e9db41cbd3af1d4f90bdb441740b5fad10
Fixed
c9b3649a934d131151111354bcbb638076f03a30

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54124.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
4.19.284
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.244
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.181
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.113
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.30
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54124.json"