Skip to contentSkip to conversation

CVE-2026-23388: Squashfs: check metadata block offset is within range

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

lore
Share & tools
lore
#0 lore raw

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

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

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

Squashfs: check metadata block offset is within range

Syzkaller reports a "general protection fault in squashfs_copy_data"

This is ultimately caused by a corrupted index look-up table, which produces a negative metadata block offset.

This is subsequently passed to squashfs_copy_data (via squashfs_read_metadata) where the negative offset causes an out of bounds access.

The fix is to check that the offset is within range in squashfs_read_metadata. This will trap this and other cases.

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

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

	Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.1.167 with commit 0c8ab092aec3ac4294940054772d30b511b16713
	Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.6.130 with commit 6b847d65f5b0065e02080c61fad93d57d6686383
	Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.12.77 with commit 9e9fa5ad37c9cbad73c165c7ff1e76e650825e7c
	Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.18.17 with commit 01ee0bcc29864b78249308e8b35042b09bbf5fe3
	Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.19.7 with commit 3b9499e7d677dd4366239a292238489a804936b2
	Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 7.0-rc2 with commit fdb24a820a5832ec4532273282cbd4f22c291a0d

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-23388

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/squashfs/cache.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/0c8ab092aec3ac4294940054772d30b511b16713
	https://git.kernel.org/stable/c/6b847d65f5b0065e02080c61fad93d57d6686383
	https://git.kernel.org/stable/c/9e9fa5ad37c9cbad73c165c7ff1e76e650825e7c
	https://git.kernel.org/stable/c/01ee0bcc29864b78249308e8b35042b09bbf5fe3
	https://git.kernel.org/stable/c/3b9499e7d677dd4366239a292238489a804936b2
	https://git.kernel.org/stable/c/fdb24a820a5832ec4532273282cbd4f22c291a0d