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: 5.5 Medium
EPSS: < 1% Very Low
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 failures 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‑606 and can manifest as a logical error in input handling.

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 likely attack vector is local modification of OCFS2 on‑disk structures, which is inferred from the requirement to craft a malformed dinode. The CVSS score for this vulnerability is 5.5, indicating moderate severity. Its EPSS score is less than 1% and it is not listed in the CISA KEV catalog, suggesting no known active exploitation. An attacker with local or root access who can manipulate OCFS2 storage may craft a malformed dinode that matches the invalid size-with-zero-clusters state, causing the kernel to read or traverse beyond allocated storage. This can lead to data corruption or a denial of service for applications using the affected filesystem. The exploit requires local modification of on‑disk structures, so the risk remains moderate to high for environments that expose such capabilities.

Generated by OpenCVE AI on August 22, 2026 at 11: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 22, 2026 at 11:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 10:45:00 +0000

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

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-606
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


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-17T05:09:19.690Z

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-17T06:18:16.133

Link: CVE-2026-72159

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72159 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T11:30:17Z

Weaknesses
  • CWE-606

    Unchecked Input for Loop Condition