CVE-2026-90203: Squashfs: check block offset is not negative
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Squashfs: check block offset is not negative
If a negative offset is read off disk (for example the offset into the decompressed fragment block), this will cause squashfs_copy_data() to perform an out of bounds access.
Fix by checking if offset is negative, and returning 0. This matches existing behaviour where an offset beyond the block returns 0 bytes copied.
To trigger this out of bounds access requires a crafted Squashfs filesystem and CAP_SYS_ADMIN to mount it. Unprivileged users will not be able to mount such a filesystem, but once mounted, an unprivileged user can trigger the out of bounds access by reading the crafted file with the negative offset.
The Linux kernel CVE team has assigned CVE-2026-90203 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 5.10.270 with commit b169185d5c672b989985c6c2e38cafab2548ba88 Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 5.15.221 with commit c2a126fca820ae74872da28de68dc74d4595dc4b Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.1.188 with commit 95dadf366c117dcdca78a570e6832071deab1ecd Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.6.157 with commit 3d2f0cb66c909ea2312cdef465165bb9a3ba2d84 Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.12.110 with commit bbb2218eb072b0a15dc063929200183bd23c2344 Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 6.18.52 with commit d0a3729d464fcf516416a41cf304c0c92126ee03 Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 7.2.6 with commit e4afd90bc7bf3dd477970c6c42bdd29ad3fda7fe Issue introduced in 2.6.29 with commit f400e12656ab518be107febfe2315fb1eab5a342 and fixed in 7.3-rc1 with commit e300eb5002925b29be803d2661af07266cfa267e
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-90203
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/b169185d5c672b989985c6c2e38cafab2548ba88 https://git.kernel.org/stable/c/c2a126fca820ae74872da28de68dc74d4595dc4b https://git.kernel.org/stable/c/95dadf366c117dcdca78a570e6832071deab1ecd https://git.kernel.org/stable/c/3d2f0cb66c909ea2312cdef465165bb9a3ba2d84 https://git.kernel.org/stable/c/bbb2218eb072b0a15dc063929200183bd23c2344 https://git.kernel.org/stable/c/d0a3729d464fcf516416a41cf304c0c92126ee03 https://git.kernel.org/stable/c/e4afd90bc7bf3dd477970c6c42bdd29ad3fda7fe https://git.kernel.org/stable/c/e300eb5002925b29be803d2661af07266cfa267e