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

ocfs2: reject FITRIM ranges shorter than a cluster

ocfs2_trim_mainbm() trims the global bitmap in cluster units, but its
too-short range validation only checks sb->s_blocksize.

On filesystems with a cluster size larger than the block size, a FITRIM
range that is at least one block but shorter than one cluster is accepted
and shifted down to len == 0. The later start + len - 1 and len -= ...
arithmetic then underflows and can drive trimming past the requested
range.

Reject ranges shorter than s_clustersize instead. That preserves the
existing -EINVAL behavior for requests that cannot discard even one
allocation unit and keeps zero-cluster trims out of the group walk.
Published: 2026-08-15
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The kernel's FITRIM handling for OCFS2 mistakenly accepts trimming ranges that are shorter than a filesystem cluster because the validation only checks the block size. A range that is a single block but smaller than a cluster is shifted so that its length becomes zero, and subsequent arithmetic that calculates the final end of the trim underflows. This can cause the kernel to trim past the requested range, potentially deleting or corrupting data that was not intended to be discarded. The weakness is a flaw in integer arithmetic and range validation, leading to integrity compromise of the filesystem.

Affected Systems

Linux kernel implementations that include the OCFS2 filesystem. No specific affected kernel versions were provided in the data; it is inferred that any kernel before the commit that introduced the fix may be vulnerable. Consult the referenced commit history to determine when the fix was applied. All systems running kernel versions prior to the fix that use OCFS2 may be vulnerable.

Risk and Exploitability

Based on the description, it is inferred that the vulnerability is local and requires write access to an OCFS2 filesystem. Exploitation would involve issuing a FITRIM ioctl with a carefully crafted range that is shorter than the cluster size. The CVSS score of 7.1 indicates a high severity level, while the EPSS score is low (<1%) and the vulnerability is not listed in CISA's KEV catalog. Because the flaw can cause data loss or corruption, the impact is significant for the integrity of files on the affected filesystem. While not universally exploitable by an unauthenticated attacker, a privileged user or process with write access can trigger the flaw, making timely patching critical.

Generated by OpenCVE AI on August 22, 2026 at 02:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel release that includes the commits disabling FITRIM ranges shorter than a cluster, as referenced in the advisory URLs.
  • Prior to applying the patch, restrict access to OCFS2 filesystems so that only trusted administrators can perform trimming operations; enforce least‑privilege on processes that may use the FITRIM ioctl.
  • Audit and monitor for unexpected FITRIM ioctl usage on OCFS2 volumes; log the range parameters to detect potential abuse or misuse until a patch can be applied.

Generated by OpenCVE AI on August 22, 2026 at 02:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 01:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-191

Fri, 21 Aug 2026 00:15:00 +0000

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

None

threat_severity

Moderate


Mon, 17 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-191

Mon, 17 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190
CWE-191

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


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

Type Values Removed Values Added
Weaknesses CWE-190
CWE-191

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: reject FITRIM ranges shorter than a cluster ocfs2_trim_mainbm() trims the global bitmap in cluster units, but its too-short range validation only checks sb->s_blocksize. On filesystems with a cluster size larger than the block size, a FITRIM range that is at least one block but shorter than one cluster is accepted and shifted down to len == 0. The later start + len - 1 and len -= ... arithmetic then underflows and can drive trimming past the requested range. Reject ranges shorter than s_clustersize instead. That preserves the existing -EINVAL behavior for requests that cannot discard even one allocation unit and keeps zero-cluster trims out of the group walk.
Title ocfs2: reject FITRIM ranges shorter than a cluster
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:46:12.774Z

Reserved: 2026-08-15T05:44:03.886Z

Link: CVE-2026-74349

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:36.130

Modified: 2026-08-17T06:19:29.533

Link: CVE-2026-74349

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-74349 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T03:00:12Z

Weaknesses