# CVE-2023-52848: f2fs: fix to drop meta\_inode's page cache in f2fs\_put\_super()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 16, 2026-11-26)
- **Published:** 2024-05-21T15:31:45.196Z
- **Modified:** 2026-06-17T06:43:43.597Z

## Who should check

- Anyone running Linux \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< eb42e1862aa7934c2c21890097ce4993c5e0d192; \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< 10b2a6c0dade67b5a2b2d17fb75c457ea1985fad; \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< a4639380bbe66172df329f8b54aa7d2e943f0f64; 0e2577074b459bba7f4016f4d725ede37d48bb22; \>= 6.4.16, \< 6.5
- Anyone running Linux 6.5

## Description

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

f2fs: fix to drop meta\_inode's page cache in f2fs\_put\_super()

syzbot reports a kernel bug as below:

F2FS-fs (loop1): detect filesystem reference count leak during umount, type: 10, count: 1
kernel BUG at fs/f2fs/super.c:1639!
CPU: 0 PID: 15451 Comm: syz-executor.1 Not tainted 6.5.0-syzkaller-09338-ge0152e7481c6 \#0
RIP: 0010:f2fs\_put\_super+0xce1/0xed0 fs/f2fs/super.c:1639
Call Trace:
 generic\_shutdown\_super+0x161/0x3c0 fs/super.c:693
 kill\_block\_super+0x3b/0x70 fs/super.c:1646
 kill\_f2fs\_super+0x2b7/0x3d0 fs/f2fs/super.c:4879
 deactivate\_locked\_super+0x9a/0x170 fs/super.c:481
 deactivate\_super+0xde/0x100 fs/super.c:514
 cleanup\_mnt+0x222/0x3d0 fs/namespace.c:1254
 task\_work\_run+0x14d/0x240 kernel/task\_work.c:179
 resume\_user\_mode\_work include/linux/resume\_user\_mode.h:49 \[inline\]
 exit\_to\_user\_mode\_loop kernel/entry/common.c:171 \[inline\]
 exit\_to\_user\_mode\_prepare+0x210/0x240 kernel/entry/common.c:204
 \_\_syscall\_exit\_to\_user\_mode\_work kernel/entry/common.c:285 \[inline\]
 syscall\_exit\_to\_user\_mode+0x1d/0x60 kernel/entry/common.c:296
 do\_syscall\_64+0x44/0xb0 arch/x86/entry/common.c:86
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

In f2fs\_put\_super(), it tries to do sanity check on dirty and IO
reference count of f2fs, once there is any reference count leak,
it will trigger panic.

The root case is, during f2fs\_put\_super(), if there is any IO error
in f2fs\_wait\_on\_all\_pages(), we missed to truncate meta\_inode's page
cache later, result in panic, fix this case.

## Affected and fixed versions

- Linux: \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< eb42e1862aa7934c2c21890097ce4993c5e0d192; \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< 10b2a6c0dade67b5a2b2d17fb75c457ea1985fad; \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< a4639380bbe66172df329f8b54aa7d2e943f0f64; 0e2577074b459bba7f4016f4d725ede37d48bb22; \>= 6.4.16, \< 6.5 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 6.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52848.md
Affected: Linux >= 20872584b8c0b006c007da9588a272c9e28d2e18, < eb42e1862aa7934c2c21890097ce4993c5e0d192; >= 20872584b8c0b006c007da9588a272c9e28d2e18, < 10b2a6c0dade67b5a2b2d17fb75c457ea1985fad; >= 20872584b8c0b006c007da9588a272c9e28d2e18, < a4639380bbe66172df329f8b54aa7d2e943f0f64; 0e2577074b459bba7f4016f4d7…
Fixed in: Linux 10b2a6c0dade67b5a2b2d17fb75c457ea1985fad, Linux 6.5

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< eb42e1862aa7934c2c21890097ce4993c5e0d192; \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< 10b2a6c0dade67b5a2b2d17fb75c457ea1985fad; \>= 20872584b8c0b006c007da9588a272c9e28d2e18, \< a4639380bbe66172df329f8b54aa7d2e943f0f64; 0e2577074b459bba7f4016f4d725ede37d48bb22; \>= 6.4.16, \< 6.5; Linux 6.5.

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

Yes. Fixed in Linux 10b2a6c0dade67b5a2b2d17fb75c457ea1985fad, Linux 6.5. Upgrade Linux to 6.5 or later.

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

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

- patch: <https://git.kernel.org/stable/c/eb42e1862aa7934c2c21890097ce4993c5e0d192>
- patch: <https://git.kernel.org/stable/c/10b2a6c0dade67b5a2b2d17fb75c457ea1985fad>
- patch: <https://git.kernel.org/stable/c/a4639380bbe66172df329f8b54aa7d2e943f0f64>

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

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