Vulnerability · Published Feb 29, 2024 · Assigned by Linux

CVE-2023-52497erofs: fix lz4 inplace decompression

High 7.1

In plain English

A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.3%top 79.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux6.1.76-1DEBIAN-CVE-2023-52497
Debian:13linux6.6.15-1DEBIAN-CVE-2023-52497
Debian:14linux6.6.15-1DEBIAN-CVE-2023-52497
Ubuntu:22.04:LTSlinux5.15.0-112.122UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux5.15.0-112.122USN-6820-1
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-aws5.15.0-1063.69USN-6821-3
Ubuntu:22.04:LTSlinux-aws5.15.0-1063.69UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-azure5.15.0-1066.75UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-azure5.15.0-1066.75USN-6821-4
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1USN-6819-1
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1065.74.1USN-6821-4
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1067.76.1UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-gcp5.15.0-1062.70UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-gcp5.15.0-1062.70USN-6820-1
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1USN-6818-1
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-gke5.15.0-1060.66USN-6821-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1060.66UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1046.53USN-6821-2
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1046.53UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-41.41~22.04.2USN-6818-4
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-41.41~22.04.2UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-ibm5.15.0-1056.59UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-ibm5.15.0-1056.59USN-6821-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1058.64USN-6821-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1058.64UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-kvm5.15.0-1060.65UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-kvm5.15.0-1060.65USN-6821-2
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-110.120UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-110.120USN-6820-1
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1USN-6818-1
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1058.59UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1058.59USN-6820-2
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22USN-6818-3
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1026.26UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1015.15UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25USN-6819-3
Ubuntu:22.04:LTSlinux-oracle5.15.0-1061.67UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-oracle5.15.0-1061.67USN-6821-1
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1USN-6819-4
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-raspi5.15.0-1058.61USN-6919-1
Ubuntu:22.04:LTSlinux-raspi5.15.0-1058.61UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-riscv-6.56.5.0-40.40.1~22.04.1UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1015.16~22.04.1USN-6819-1
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1015.16~22.04.1UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1030.34UBUNTU-CVE-2023-52497
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1030.34USN-6820-1

Affected products (as reported)

VendorProductVersions
Linux Linux 0ffd71bcc3a03ebb3551661a36052488369c4de9 – before 9ff2d260b25df6fe1341a79113d88fecf6bd553e0ffd71bcc3a03ebb3551661a36052488369c4de9 – before a0180e940cf1aefa7d516e20b259ad34f7a8b3790ffd71bcc3a03ebb3551661a36052488369c4de9 – before 77cbc04a1a8610e303a0e0d74f2676667876a1840ffd71bcc3a03ebb3551661a36052488369c4de9 – before 33bf23c9940dbd3a22aad7f0cda4c84ed57018470ffd71bcc3a03ebb3551661a36052488369c4de9 – before f36d200a80a3ca025532ed60dd1ac21b620e14ae0ffd71bcc3a03ebb3551661a36052488369c4de9 – before bffc4cc334c5bb31ded54bc3cfd651735a3cb79e0ffd71bcc3a03ebb3551661a36052488369c4de9 – before 3c12466b6b7bf1e56f9b32c366a3d83d87afb4de
Linux Linux 5.3

References