CVE-2023-52852CWE-416

CVE-2023-52852

High · published May 21, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
14.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00240 · 14.3th percentile
Weakness
CWE-416 · Use After Free
Published
2024-05-21T20:15Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel≥ 5.13.19, < 5.15.1395.15.139
linux/linux_kernel≥ 5.16, < 6.1.636.1.63
linux/linux_kernel≥ 6.2, < 6.5.126.5.12
linux/linux_kernel≥ 6.6, < 6.6.26.6.2
References (10)
EPSS history
Timeline
  • 21 MAY 15:31Z
    f2fs: compress: fix to avoid use-after-free on dic
    cvelistv5