Skip to contentSkip to conversation

CVE-2026-53130: fs/omfs: reject s_sys_blocksize smaller than OMFS_DIR_START

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

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

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

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

fs/omfs: reject s_sys_blocksize smaller than OMFS_DIR_START

omfs_fill_super() rejects oversized s_sys_blocksize values (> PAGE_SIZE), but it does not reject values smaller than OMFS_DIR_START (0x1b8 = 440).

Later, omfs_make_empty() uses

    sbi->s_sys_blocksize - OMFS_DIR_START

as the length argument to memset(). Since s_sys_blocksize is u32, a crafted filesystem image with s_sys_blocksize < OMFS_DIR_START causes an unsigned underflow there, wrapping to a value near 2^32. That drives a ~4 GiB memset() from bh->b_data + OMFS_DIR_START and overwrites kernel memory far beyond the backing block buffer.

Add the corresponding lower-bound check alongside the existing upper-bound check in omfs_fill_super(), so that malformed images are rejected during superblock validation before any filesystem data is processed.

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

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

	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 5.10.258 with commit fbc72f5c645155dc2ed3573243ed20f9913e3a54
	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 5.15.209 with commit 5822a05a841a10794ad818620dd2af490b0705d3
	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 6.1.175 with commit 754ff1bea3819a90c6f33cccfc1a299ef7609f07
	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 6.6.141 with commit 131ea3e57fc22936ed0e2c8330f2e36106172f51
	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 6.12.91 with commit 79f84af38c9fef9deb0e02c79eb969b5541c2644
	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 6.18.33 with commit 6561afc38398e3518a29c5eebb975c30468f98a6
	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 7.0.10 with commit 817f16ed62bc58a168417bfb5e859c2a370bab03
	Issue introduced in 2.6.27 with commit a3ab7155ea21aadc8a4d5687e91b3d876973185e and fixed in 7.1 with commit 0621c385fda1376e967f37ccd534c26c3e511d14

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

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/omfs/inode.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/fbc72f5c645155dc2ed3573243ed20f9913e3a54
	https://git.kernel.org/stable/c/5822a05a841a10794ad818620dd2af490b0705d3
	https://git.kernel.org/stable/c/754ff1bea3819a90c6f33cccfc1a299ef7609f07
	https://git.kernel.org/stable/c/131ea3e57fc22936ed0e2c8330f2e36106172f51
	https://git.kernel.org/stable/c/79f84af38c9fef9deb0e02c79eb969b5541c2644
	https://git.kernel.org/stable/c/6561afc38398e3518a29c5eebb975c30468f98a6
	https://git.kernel.org/stable/c/817f16ed62bc58a168417bfb5e859c2a370bab03
	https://git.kernel.org/stable/c/0621c385fda1376e967f37ccd534c26c3e511d14