HIGH 7.8

CVE-2026-53130: Linux Kernel OMFS Integer Underflow Allows Kernel Memory Corruption

A vulnerability in the Linux kernel's OMFS (OMFS filesystem) implementation allows a local attacker to corrupt kernel memory by mounting a specially crafted filesystem image. The kernel fails to validate a critical filesystem parameter (the system block size) during mount, allowing it to be set smaller than a required minimum. This triggers an integer underflow that causes the kernel to zero out approximately 4 GB of memory, potentially overwriting sensitive kernel data structures. An attacker with local filesystem access can exploit this to cause denial of service or potentially execute code with kernel privileges.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-191
Affected products
1 configuration(s)
Published / Modified
2026-06-24 / 2026-07-06

NVD description (verbatim)

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.

8 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in omfs_fill_super(), which validates the s_sys_blocksize field from the OMFS superblock against an upper bound (PAGE_SIZE) but fails to enforce a lower bound (OMFS_DIR_START, or 0x1b8 = 440 bytes). When omfs_make_empty() later executes, it computes sbi->s_sys_blocksize - OMFS_DIR_START as a memset() length parameter. Since s_sys_blocksize is unsigned (u32), a crafted image with s_sys_blocksize < OMFS_DIR_START causes an integer underflow, wrapping the result to approximately 2^32 - (OMFS_DIR_START - s_sys_blocksize). This enormous value drives a ~4 GiB memset() from bh->b_data + OMFS_DIR_START, corrupting kernel memory far beyond the allocated buffer. The fix adds a corresponding lower-bound check in omfs_fill_super() to reject malformed superblocks during validation, before any filesystem processing occurs.

Business impact

Organizations relying on Linux systems that auto-mount untrusted filesystems (removable media, network shares, container images) face elevated risk. Exploitation causes immediate denial of service and potential privilege escalation. In multi-tenant or container environments, a compromised user could mount a crafted image to crash the host kernel or elevate privileges. Development teams and CI/CD pipelines that process arbitrary filesystem images should prioritize patching to prevent supply chain attacks leveraging crafted OMFS images.

Affected systems

The vulnerability affects the Linux kernel across all versions that include the OMFS filesystem driver. The fix must be applied to any kernel built with CONFIG_OMFS enabled. Most mainstream distributions (RHEL, Ubuntu, Debian, SUSE) include this driver by default. Verify your kernel configuration with 'grep CONFIG_OMFS /boot/config-$(uname -r)' or equivalent. Embedded systems, NAS devices, and appliances using custom kernels may also be affected depending on driver inclusion.

Exploitability

Exploitation requires local access and the ability to provide a malformed OMFS filesystem image to a target system. The attack surface includes: mounting untrusted removable media (USB drives, external disks), processing crafted filesystem images in containers or VMs, or mounting network shares controlled by an attacker. No special privileges are required to trigger the vulnerability—UI:R in the CVSS vector indicates user interaction (mounting) is needed, but the operation itself requires no elevated permissions. Once triggered, the impact is immediate and severe (kernel memory corruption, crash, or potential code execution).

Remediation

Apply the upstream Linux kernel patch that adds the lower-bound check to omfs_fill_super(). This patch rejects OMFS superblocks with s_sys_blocksize < OMFS_DIR_START (440 bytes) during mount validation, preventing the underflow condition. Patch availability and backport schedules vary by distribution; check your vendor's security advisory for the specific kernel version containing the fix. As an interim mitigation, disable the OMFS driver if not required (blacklist omfs module or rebuild kernel without CONFIG_OMFS), restrict mounting of untrusted filesystems via AppArmor/SELinux policies, and validate filesystem images before processing.

Patch guidance

Monitor your Linux vendor's security bulletins (Red Hat, Canonical, SUSE, Arch, etc.) for kernel updates addressing CVE-2026-53130. The fix is a minimal validation addition and should incur no performance impact. Verify the patched kernel version against your vendor's advisory to confirm the fix is included. For systems where custom kernels are built, cherry-pick the upstream patch from the Linux kernel repository (apply the omfs_fill_super() bound check). Test in a non-production environment to ensure OMFS-dependent workloads (if any) continue to function. Prioritize patching for systems that mount or process untrusted filesystem images.

Detection guidance

Monitor kernel logs (dmesg, journalctl) for mount failures on OMFS images with suspicious s_sys_blocksize values. System call tracing (auditd, strace) can capture mount() attempts with crafted images. Memory corruption warnings (kernel sanitizers if compiled in) or sudden kernel crashes following OMFS mount attempts may indicate exploitation. Implement filesystem image validation policies and scan for OMFS images in CI/CD pipelines. Network-based detection is limited; focus on endpoint logging of mount operations and image provenance tracking.

Why prioritize this

This vulnerability merits HIGH priority due to its CVSS 7.8 score, local attack vector requiring minimal privilege, and severe impact (kernel memory corruption, DoS, potential privilege escalation). While exploitation requires user interaction (mounting a malformed image), the barrier to providing such an image is low in environments handling untrusted media or container images. The fix is simple and low-risk, making patching straightforward. Organizations should patch promptly, especially if OMFS is enabled and untrusted storage is regularly processed.

Risk score, explained

CVSS 7.8 (HIGH) reflects: AV:L (local attack only, not network-exploitable), AC:L (no special conditions beyond a crafted filesystem), PR:N (no elevated privileges required), UI:R (user must mount the filesystem, but this is normal and often automatic), and S:U/C:H/I:H/A:H (high confidentiality, integrity, and availability impact—kernel memory corruption). The score appropriately reflects the severity of kernel-level memory corruption but is tempered by the local-only attack vector.

Frequently asked questions

Can this vulnerability be exploited remotely?

No. The attack vector is local (AV:L), meaning the attacker must have local filesystem access to provide a crafted OMFS image. However, remote scenarios are possible if a system auto-mounts untrusted network shares or processes uploaded filesystem images in a service.

What if my system doesn't use OMFS?

If your kernel is compiled without CONFIG_OMFS (verify with grep CONFIG_OMFS /boot/config-$(uname -r)), you are unaffected. However, OMFS is commonly included in mainstream distributions by default, so most systems should be considered potentially vulnerable unless explicitly confirmed otherwise.

Is there a workaround if I cannot patch immediately?

Yes. Disable the OMFS module (modprobe -r omfs or add 'blacklist omfs' to /etc/modprobe.d/), restrict mount permissions via SELinux or AppArmor policies to prevent unprivileged users from mounting untrusted filesystems, and validate or quarantine any OMFS images in your environment. Patching is the proper fix and should be prioritized.

Could this lead to privilege escalation?

Potentially. Kernel memory corruption can overwrite kernel data structures, including process credentials, capability bits, or security module state. Depending on what is overwritten, a local attacker could escalate privileges. However, reliable exploitation for privilege escalation would likely require additional heap spray techniques or knowledge of kernel layout (KASLR), making it more complex than a simple denial-of-service crash.

This analysis is based on available CVE data and upstream Linux kernel information as of the publication date. CVSS scores and exploitability assessments are provided for reference and may evolve as additional research is published. Verify all patch versions, affected product versions, and vendor-specific guidance against official security advisories from your Linux distribution vendor before deploying patches. This document does not constitute legal, compliance, or official security guidance; it is provided for informational purposes to support vulnerability management decisions. Always test patches in non-production environments before enterprise deployment. Source: NVD (public-domain), retrieved 2026-08-02. Analysis generated by SEC.co (claude-haiku-4-5).