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

ocfs2: reject non-inline dinodes with i_size and zero i_clusters

On a volume mounted without OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC, a
non-inline regular file with non-zero i_size and zero i_clusters is
structurally malformed: the extent map declares no allocated clusters yet
the size header claims content exists. Keep rejecting that shape, but
express it through a shared predicate so the same invariant is available
to normal inode reads and online filecheck.

The same zero-cluster shape is also malformed for non-inline directories.
ocfs2 directory growth allocates backing storage before advancing i_size,
and ocfs2_dir_foreach_blk_el() later walks until ctx->pos reaches
i_size_read(inode). A forged directory dinode with a huge i_size and no
clusters would repeatedly fail on holes while advancing through the
claimed size.

Sparse regular files remain exempt: on sparse-alloc volumes, truncate can
legitimately grow i_size without allocating clusters. System inodes and
inline-data dinodes also retain their separate storage rules.

Mirror the check in ocfs2_filecheck_validate_inode_block() as well.
filecheck reports through its own error namespace, so malformed
size/cluster state is logged as a filecheck invalid-inode result rather
than via ocfs2_error(), but it must not proceed into
ocfs2_populate_inode().
Published: 2026-08-15
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s OCFS2 filesystem previously lacked a check that rejects non‑inline dinodes that declare a non‑zero size while having zero allocated clusters. A malformed dinode satisfying this invalid state could cause the filesystem to read or write beyond allocated storage, repeat fails while traversing directories, and potentially corrupt file metadata or silently drop access to data. The effect is a loss of data integrity and, in worst‑case scenarios, a denial of service for applications relying on the affected filesystem. The weakness, a failure to enforce correct size/extent limits, is reflected by CWE‑682 and can manifest as an out‑of‑bounds read or write (CWE‑125).

Affected Systems

The issue manifests in any Linux kernel that contains the OCFS2 driver before the internal check was added. Systems using the default OCFS2 volume, especially those mounted without the OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC flag, are susceptible. All releases prior to the kernel update that introduces the reject check are affected; the exact minor revisions are not listed in the advisory.

Risk and Exploitability

The advisory does not provide a CVSS score or EPSS probability, and the vulnerability is not listed in the CISA KEV catalog, indicating no known active exploitation. Nevertheless, an attacker with local or root access and the ability to manipulate OCFS2 storage could craft a malformed dinode to trigger the defective behavior, leading to a denial of service or corruption of filesystem metadata. The exploit is local to the node and requires the ability to modify on‑disk structures, so the risk remains moderate to high for environments that expose such capabilities.

Generated by OpenCVE AI on August 15, 2026 at 09:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update to a kernel version containing the OCFS2 inode validation patch
  • Rebuild or upgrade the host operating system to incorporate the recent kernel change(s)
  • Verify that OCFS2 volumes are mounted with proper compatibility flags and that no malformed inodes exist by running ocfs2_filecheck or a similar filesystem integrity utility

Generated by OpenCVE AI on August 15, 2026 at 09:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
CWE-682

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: reject non-inline dinodes with i_size and zero i_clusters On a volume mounted without OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC, a non-inline regular file with non-zero i_size and zero i_clusters is structurally malformed: the extent map declares no allocated clusters yet the size header claims content exists. Keep rejecting that shape, but express it through a shared predicate so the same invariant is available to normal inode reads and online filecheck. The same zero-cluster shape is also malformed for non-inline directories. ocfs2 directory growth allocates backing storage before advancing i_size, and ocfs2_dir_foreach_blk_el() later walks until ctx->pos reaches i_size_read(inode). A forged directory dinode with a huge i_size and no clusters would repeatedly fail on holes while advancing through the claimed size. Sparse regular files remain exempt: on sparse-alloc volumes, truncate can legitimately grow i_size without allocating clusters. System inodes and inline-data dinodes also retain their separate storage rules. Mirror the check in ocfs2_filecheck_validate_inode_block() as well. filecheck reports through its own error namespace, so malformed size/cluster state is logged as a filecheck invalid-inode result rather than via ocfs2_error(), but it must not proceed into ocfs2_populate_inode().
Title ocfs2: reject non-inline dinodes with i_size and zero i_clusters
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-15T05:53:28.205Z

Reserved: 2026-08-09T03:40:39.909Z

Link: CVE-2026-72159

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:33.720

Modified: 2026-08-15T06:21:33.720

Link: CVE-2026-72159

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T09:30:04Z

Weaknesses