CVE-2023-52852

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

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 03:31 PM UTC
Updated: August 5, 2026 at 10:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.13.195.13.19 ≤ v < 5.145.13.19 ≤ v < 5.15.1395.14 ≤ v < 5.15.1395.14 ≤ v < 6.1.635.14 ≤ v < 6.5.125.14 ≤ v < 6.6.25.14 ≤ v < 6.75.16 ≤ v < 6.1.636.2 ≤ v < 6.5.126.6 ≤ v < 6.6.25.13.195.146ce19aff0b8cd386860855185c6cd79337fc4d2ba23706426da9b611be5beae0f3faa260fb453b4e
Vendor states this is fixed in 8c4504cc0c64862740a6acb301e0cfa59580dbc5 (fixed)
Vendor states this is fixed in 932ddb5c29e884cc6fac20417ece72ba4a35c401 (fixed)
Vendor states this is fixed in 9375ea7f269093d7c884857ae1f47633a91f429c (fixed)
Vendor states this is fixed in 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2 (fixed)
Vendor states this is fixed in b0327c84e91a0f4f0abced8cb83ec86a7083f086 (fixed)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.139 (unaffected)
Vendor states this is fixed in 6.1.63 (unaffected)
Vendor states this is fixed in 6.5.12 (unaffected)
Vendor states this is fixed in 6.6.2 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8c4504cc0c64862740a6acb301e0cfa59580dbc5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/932ddb5c29e884cc6fac20417ece72ba4a35c401
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9375ea7f269093d7c884857ae1f47633a91f429c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b0327c84e91a0f4f0abced8cb83ec86a7083f086

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card