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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-02)
- Published: 2024-05-21T15:31:47.889Z
- Modified: 2026-08-05T09:11:41.937Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 6ce19aff0b8cd386860855185c6cd79337fc4d2b before 8c4504cc0c64862740a6acb301e0cfa59580dbc5; from 6ce19aff0b8cd386860855185c6cd79337fc4d2b before 9375ea7f269093d7c884857ae1f47633a91f429c; from 6ce19aff0b8cd386860855185c6cd79337fc4d2b before 932ddb5c29e884cc6fac20417ece72ba4a35c401; from 6ce19aff0b8cd386860855185c6cd79337fc4d2b before 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2; from 6ce19aff0b8cd386860855185c6cd79337fc4d2b before b0327c84e91a0f4f0abced8cb83ec86a7083f086; a23706426da9b611be5beae0f3faa260fb453b4e; from 5.13.19 before 5.14; 5.14 (not affected: before 5.14; from 5.15.139 up to 5.15.*; from 6.1.63 up to 6.1.*; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 5.13.19 before 5.15.139; from 5.16 before 6.1.63; from 6.2 before 6.5.12; from 6.6 before 6.6.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2023-52852](https://www.cve.org/CVERecord?id=CVE-2023-52852), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52852](https://nvd.nist.gov/vuln/detail/CVE-2023-52852), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52852 · Whole record: https://cve.day/CVE-2023-52852.json · Rebuilt by cve.day 2026-11-25T22:58:34.054Z
