# CVE-2023-52852: f2fs: compress: fix to avoid use-after-free on dic

> 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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-21T15:31:47.889Z
- **Modified:** 2026-08-05T09:11:41.937Z

## Who should check

- Anyone running Linux \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 8c4504cc0c64862740a6acb301e0cfa59580dbc5; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 9375ea7f269093d7c884857ae1f47633a91f429c; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 932ddb5c29e884cc6fac20417ece72ba4a35c401; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< b0327c84e91a0f4f0abced8cb83ec86a7083f086; a23706426da9b611be5beae0f3faa260fb453b4e; \>= 5.13.19, \< 5.14
- Anyone running Linux 5.14

## Description

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

f2fs: compress: fix to avoid use-after-free on dic

Call trace:
 \_\_memcpy+0x128/0x250
 f2fs\_read\_multi\_pages+0x940/0xf7c
 f2fs\_mpage\_readpages+0x5a8/0x624
 f2fs\_readahead+0x5c/0x110
 page\_cache\_ra\_unbounded+0x1b8/0x590
 do\_sync\_mmap\_readahead+0x1dc/0x2e4
 filemap\_fault+0x254/0xa8c
 f2fs\_filemap\_fault+0x2c/0x104
 \_\_do\_fault+0x7c/0x238
 do\_handle\_mm\_fault+0x11bc/0x2d14
 do\_mem\_abort+0x3a8/0x1004
 el0\_da+0x3c/0xa0
 el0t\_64\_sync\_handler+0xc4/0xec
 el0t\_64\_sync+0x1b4/0x1b8

In f2fs\_read\_multi\_pages(), once f2fs\_decompress\_cluster() was called if
we hit cached page in compress\_inode's cache, dic may be released, it needs
break the loop rather than continuing it, in order to avoid accessing
invalid dic pointer.

## Affected and fixed versions

- Linux: \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 8c4504cc0c64862740a6acb301e0cfa59580dbc5; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 9375ea7f269093d7c884857ae1f47633a91f429c; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 932ddb5c29e884cc6fac20417ece72ba4a35c401; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< b0327c84e91a0f4f0abced8cb83ec86a7083f086; a23706426da9b611be5beae0f3faa260fb453b4e; \>= 5.13.19, \< 5.14 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 5.14 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-52852. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52852.md
Affected: Linux >= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, < 8c4504cc0c64862740a6acb301e0cfa59580dbc5; >= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, < 9375ea7f269093d7c884857ae1f47633a91f429c; >= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, < 932ddb5c29e884cc6fac20417ece72ba4a35c401; >= 6ce19aff0b8cd3868608551…
Fixed in: Linux 8c4504cc0c64862740a6acb301e0cfa59580dbc5, Linux 9375ea7f269093d7c884857ae1f47633a91f429c, Linux 932ddb5c29e884cc6fac20417ece72ba4a35c401, Linux 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2, Linux 5.14

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

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

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

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

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

Linux \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 8c4504cc0c64862740a6acb301e0cfa59580dbc5; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 9375ea7f269093d7c884857ae1f47633a91f429c; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 932ddb5c29e884cc6fac20417ece72ba4a35c401; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2; \>= 6ce19aff0b8cd386860855185c6cd79337fc4d2b, \< b0327c84e91a0f4f0abced8cb83ec86a7083f086; a23706426da9b611be5beae0f3faa260fb453b4e; \>= 5.13.19, \< 5.14; Linux 5.14.

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

Yes. Fixed in Linux 8c4504cc0c64862740a6acb301e0cfa59580dbc5, Linux 9375ea7f269093d7c884857ae1f47633a91f429c, Linux 932ddb5c29e884cc6fac20417ece72ba4a35c401, Linux 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2, Linux 5.14. Upgrade Linux to 5.14 or later.

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

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/8c4504cc0c64862740a6acb301e0cfa59580dbc5>
- patch: <https://git.kernel.org/stable/c/9375ea7f269093d7c884857ae1f47633a91f429c>
- patch: <https://git.kernel.org/stable/c/932ddb5c29e884cc6fac20417ece72ba4a35c401>
- patch: <https://git.kernel.org/stable/c/9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2>
- patch: <https://git.kernel.org/stable/c/b0327c84e91a0f4f0abced8cb83ec86a7083f086>

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

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