CVE-2026-90419: nilfs2: prevent out-of-bounds read in super root block parsing
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: prevent out-of-bounds read in super root block parsing
super-root inode metadata size is trusted before nilfs_read_inode_common().
Reject super-root inode sizes whose computed on-disk footprint exceeds the filesystem block size. This prevents malformed filesystem images from making nilfs_read_inode_common() read past the end of the super-root block.
[ryusuke: clarify the commit title]
The Linux kernel CVE team has assigned CVE-2026-90419 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 5.10.270 with commit 16df2520502867a4f34e202b89d01243d59bb8b5 Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 5.15.221 with commit dcc85fc28f884038735464f6f104dda9c7dbfad6 Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 6.1.188 with commit 5b69ebe20d7f944c1f45177dca0c11474ac277cc Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 6.6.157 with commit 7029e70cf86d5c54c0a2812479b0bee2cabcbaaa Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 6.12.110 with commit 71bd64471ff583101b4a33dfc838ce29aef57960 Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 6.18.52 with commit 842397fdfd2e61d6470166c796f3125b6c27a162 Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 7.2.6 with commit 15c8559376416a84c3d8402fd8d0c89bb323d05f Issue introduced in 2.6.30 with commit 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f and fixed in 7.3-rc1 with commit 7cb2f76a6a2ba2130b577cb8ac13e1e46c4fc689
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-90419
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/nilfs2/the_nilfs.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/16df2520502867a4f34e202b89d01243d59bb8b5 https://git.kernel.org/stable/c/dcc85fc28f884038735464f6f104dda9c7dbfad6 https://git.kernel.org/stable/c/5b69ebe20d7f944c1f45177dca0c11474ac277cc https://git.kernel.org/stable/c/7029e70cf86d5c54c0a2812479b0bee2cabcbaaa https://git.kernel.org/stable/c/71bd64471ff583101b4a33dfc838ce29aef57960 https://git.kernel.org/stable/c/842397fdfd2e61d6470166c796f3125b6c27a162 https://git.kernel.org/stable/c/15c8559376416a84c3d8402fd8d0c89bb323d05f https://git.kernel.org/stable/c/7cb2f76a6a2ba2130b577cb8ac13e1e46c4fc689