Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-52852

published high CVSS 3.1 · 7.8

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

Published
21 May 2024, 15:31:47 UTC
Updated
05 Aug 2026, 09:11:41 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 8c4504cc0c64862740a6acb301e0cfa59580dbc5 · 6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 9375ea7f269093d7c884857ae1f47633a91f429c · 6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 932ddb5c29e884cc6fac20417ece72ba4a35c401 · 6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2 · 6ce19aff0b8cd386860855185c6cd79337fc4d2b to < b0327c84e91a0f4f0abced8cb83ec86a7083f086 · a23706426da9b611be5beae0f3faa260fb453b4e · 5.13.19 to < 5.14 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.139 through 5.15.* (unaffected · semver) · 6.1.63 through 6.1.* (unaffected · semver) · 6.5.12 through 6.5.* (unaffected · semver) · 6.6.2 through 6.6.* (unaffected · semver) · 6.7 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The UAF is reached via local VFS read/mmap fault → f2fs_readahead → f2fs_mpage_readpages → f2fs_read_multi_pages on a compression-enabled f2fs inode; no network or adjacent protocol handler exercises this path. AC:L - An unprivileged attacker can reliably prime compress_inode cache (read compressed data, then posix_fadvise/DONTNEED or reclaim pagecache) and re-fault so f2fs_load_compressed_page hits and frees dic; no condition outside attacker control is required on Android deployments that already mount with compress_cache. PR:L - Only an unprivileged local account with read access to a compressed f2fs file is needed (e.g. an app mmapping its own compress_extension=apk file on Android /data); no capabilities are checked on the fault/readahead path. UI:N - The attacker triggers the bug themselves by reading/mmapping their own compressed file on an already-mounted f2fs volume; no separate victim action is required. S:U - Impact is confined to the host kernel heap and f2fs pagecache under the same security authority; this is standard kernel privilege escalation with no VM/IOMMU/sandbox boundary crossed. C:H - Use-after-free of decompress_io_ctx (and its cpages) after f2fs_decompress_cluster frees dic enables heap reuse and arbitrary kernel read primitives per UAF scoring guidance. I:H - Continuing the loop after dic is freed yields UAF writes (including memcpy into reclaimed cpage memory), enabling heap spray and control-flow hijack primitives typical of kernel UAFs. A:H - The reported call trace is a kernel fault in __memcpy while touching the freed dic/cpages path, so the bug causes oops/panic even when not fully exploited.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 8c4504cc0c64862740a6acb301e0cfa59580dbc5 (affected · git)6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 9375ea7f269093d7c884857ae1f47633a91f429c (affected · git)6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 932ddb5c29e884cc6fac20417ece72ba4a35c401 (affected · git)6ce19aff0b8cd386860855185c6cd79337fc4d2b to < 9d065aa52b6ee1b06f9c4eca881c9b4425a12ba2 (affected · git)6ce19aff0b8cd386860855185c6cd79337fc4d2b to < b0327c84e91a0f4f0abced8cb83ec86a7083f086 (affected · git)a23706426da9b611be5beae0f3faa260fb453b4e (affected · git)5.13.19 to < 5.14 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.139 through 5.15.* (unaffected · semver)6.1.63 through 6.1.* (unaffected · semver)6.5.12 through 6.5.* (unaffected · semver)6.6.2 through 6.6.* (unaffected · semver)6.7 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

3

Linux · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
a3f6bd6cae7a00f7bed21384e63f47d364d3d82d7a8b2d8f8939bcd36b828a33
Ingested
23 Sep 2026, 08:14:33 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected