CVE-2026-74349

ocfs2: reject FITRIM ranges shorter than a cluster

Published Aug 15, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Ubuntu USN Ubuntu USN USN-8876-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8875-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8877-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8878-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8879-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8875-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9029-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-191
Type Values Removed Values Added
Weaknesses CWE-191
Type Values Removed Values Added
Weaknesses CWE-190
CWE-191
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'}

Type Values Removed Values Added
Weaknesses CWE-190
CWE-191
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 6:55 PM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 16, 2026, 7:17 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM