Skip to contentSkip to conversation

CVE-2025-68210: erofs: avoid infinite loop due to incomplete zstd-compressed data

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 16, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

erofs: avoid infinite loop due to incomplete zstd-compressed data

Currently, the decompression logic incorrectly spins if compressed data is truncated in crafted (deliberately corrupted) images.

The Linux kernel CVE team has assigned CVE-2025-68210 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit 7c35de4df1056a5a1fb4de042197b8f5b1033b61 and fixed in 6.12.59 with commit 4d0e0bb1908acac5b27d30b45c450e8ead97eb00
	Issue introduced in 6.10 with commit 7c35de4df1056a5a1fb4de042197b8f5b1033b61 and fixed in 6.17.9 with commit 1f86d73a0afe43b6a85d2aa8207853350b7e2111
	Issue introduced in 6.10 with commit 7c35de4df1056a5a1fb4de042197b8f5b1033b61 and fixed in 6.18 with commit f2a12cc3b97f062186568a7b94ddb7aa2ef68140

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-68210

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/erofs/decompressor_zstd.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4d0e0bb1908acac5b27d30b45c450e8ead97eb00
	https://git.kernel.org/stable/c/1f86d73a0afe43b6a85d2aa8207853350b7e2111
	https://git.kernel.org/stable/c/f2a12cc3b97f062186568a7b94ddb7aa2ef68140