Bug 2492358 (CVE-2026-53130) - CVE-2026-53130 kernel: fs/omfs: reject s_sys_blocksize smaller than OMFS_DIR_START
Summary: CVE-2026-53130 kernel: fs/omfs: reject s_sys_blocksize smaller than OMFS_DIR_...
Keywords:
Status: NEW
Alias: CVE-2026-53130
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 18:07 UTC by OSIDB Bzimport
Modified: 2026-06-24 18:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-24 18:07:43 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-06-24 18:09:19 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062418-CVE-2026-53130-c204@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.