CVE-2023-52497 json
erofs: fix lz4 inplace decompression
published 2024-02-29 2 y ago modified 2026-08-05 3 mo ago also EUVD-2023-57122
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix lz4 inplace decompression
Currently EROFS can map another compressed buffer for inplace decompression, that was used to handle the cases that some pages of compressed data are actually not in-place I/O.
However, like most simple LZ77 algorithms, LZ4 expects the compressed data is arranged at the end of the decompressed buffer and it explicitly uses memmove() to handle overlapping: __________________________________________________________ |_ direction of decompression --> ____ |_ compressed data _|
Although EROFS arranges compressed data like this, it typically maps two individual virtual buffers so the relative order is uncertain. Previously, it was hardly observed since LZ4 only uses memmove() for short overlapped literals and x86/arm64 memmove implementations seem to completely cover it up and they don't have this issue. Juhyung reported that EROFS data corruption can be found on a new Intel x86 processor. After some analysis, it seems that recent x86 processors with the new FSRM feature expose this issue with "rep movsb".
Let's strictly use the decompressed buffer for lz4 inplace decompression for now. Later, as an useful improvement, we could try to tie up these two buffers together in the correct order.
Patch / fix
- Linux Linux 5.4.285, 5.10.211, 5.15.150, 6.1.76, 6.6.15, 6.7.3, 6.8
- linux Debian 12 6.1.76-1
- linux Debian 14, Debian 13 6.6.15-1
debian advisories DEBIAN-CVE-2023-52497
- linux Ubuntu 20.04 LTS 5.4.0-202.222
- linux Ubuntu 22.04 LTS 5.15.0-112.122
- linux-aws Ubuntu 20.04 LTS 5.4.0-1136.146
- linux-aws Ubuntu 22.04 LTS 5.15.0-1063.69
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1140.149
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1062.70
- linux-gke Ubuntu 22.04 LTS 5.15.0-1060.66
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1083.88
ubuntu advisories UBUNTU-CVE-2023-52497
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- kernel-syms-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- kernel-source-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
suse advisories SUSE-SU-2024:1490-1SUSE-SU-2024:1480-1SUSE-SU-2024:1466-1SUSE-SU-2024:1321-1SUSE-SU-2024:1320-1
- git.kernel.org/stable/c/9ff2d260b25df6fe1341a79113d88fecf6bd553e commit
- git.kernel.org/stable/c/a0180e940cf1aefa7d516e20b259ad34f7a8b379 commit
- git.kernel.org/stable/c/77cbc04a1a8610e303a0e0d74f2676667876a184 commit
- git.kernel.org/stable/c/33bf23c9940dbd3a22aad7f0cda4c84ed5701847 commit
- git.kernel.org/stable/c/f36d200a80a3ca025532ed60dd1ac21b620e14ae commit
- git.kernel.org/stable/c/bffc4cc334c5bb31ded54bc3cfd651735a3cb79e commit
- git.kernel.org/stable/c/3c12466b6b7bf1e56f9b32c366a3d83d87afb4de commit
- lists.debian.org/debian-lts-announce/2024/06/msg00017.html patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-52497 updated cvss 5.5
kernel: erofs: fix lz4 inplace decompression
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
- Technology feeds
References
-
git.kernel.org
/stable/c/9ff2d260b25df6fe1341a79113d88fecf6bd553e
patch
-
git.kernel.org
/stable/c/a0180e940cf1aefa7d516e20b259ad34f7a8b379
patch
-
git.kernel.org
/stable/c/77cbc04a1a8610e303a0e0d74f2676667876a184
patch
-
git.kernel.org
/stable/c/33bf23c9940dbd3a22aad7f0cda4c84ed5701847
patch
-
git.kernel.org
/stable/c/f36d200a80a3ca025532ed60dd1ac21b620e14ae
patch
-
git.kernel.org
/stable/c/bffc4cc334c5bb31ded54bc3cfd651735a3cb79e
patch
-
git.kernel.org
/stable/c/3c12466b6b7bf1e56f9b32c366a3d83d87afb4de
patch
-
lists.debian.org
/debian-lts-announce/2024/06/msg00017.html
patch
Sources
- CVE List CVE-2023-52497
- NVD CVE-2023-52497
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.