Skip to contentSkip to conversation

CVE-2026-43166: erofs: fix interlaced plain identification for encoded extents

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

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: fix interlaced plain identification for encoded extents

Only plain data whose start position and on-disk physical length are both aligned to the block size should be classified as interlaced plain extents. Otherwise, it must be treated as shifted plain extents.

This issue was found by syzbot using a crafted compressed image containing plain extents with unaligned physical lengths, which can cause OOB read in z_erofs_transform_plain().

The Linux kernel CVE team has assigned CVE-2026-43166 to this issue.

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

	Issue introduced in 6.15 with commit 1d191b4ca51d73699cb127386b95ac152af2b930 and fixed in 6.18.16 with commit 9d5a97bc71ed5783687705c708454c4453aa91d1
	Issue introduced in 6.15 with commit 1d191b4ca51d73699cb127386b95ac152af2b930 and fixed in 6.19.6 with commit d3790f26d38606f020212486359b84632c19d08b
	Issue introduced in 6.15 with commit 1d191b4ca51d73699cb127386b95ac152af2b930 and fixed in 7.0 with commit 4a2d046e4b13202a6301a993961f5b30ae4d7119

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-2026-43166

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/zmap.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/9d5a97bc71ed5783687705c708454c4453aa91d1
	https://git.kernel.org/stable/c/d3790f26d38606f020212486359b84632c19d08b
	https://git.kernel.org/stable/c/4a2d046e4b13202a6301a993961f5b30ae4d7119