CVE-2026-74349
ocfs2: reject FITRIM ranges shorter than a cluster
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.
INFO
Published Date :
Aug. 15, 2026, 6:22 a.m.
Last Modified :
Aug. 15, 2026, 6:22 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products
The following products are affected by CVE-2026-74349
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Update the Linux kernel to the patched version.
- Verify TRIM range validation logic.
- Ensure cluster size checks are correctly implemented.
- Test FITRIM functionality post-update.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-74349.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-74349 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-74349
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-74349 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-74349 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 15, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': 'd903d59c0315f59bdf0214b4f13d71c9feb2c45c', 'versionType': 'git'}, {'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': '441abb77222f155e8d931dbabb465466db01cfd7', 'versionType': 'git'}, {'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': 'e652d0f5108e447b22da4249bcd23dd1b63c73dd', 'versionType': 'git'}, {'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': '346314bb0cc2fc52b50b73d6ecc62e0217455c2e', 'versionType': 'git'}, {'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': '06c0a0431b9856506fcd9b2c1b0c6136567d756d', 'versionType': 'git'}, {'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': '3fa7139b5f42731a61f78c42433adae13f9adc21', 'versionType': 'git'}, {'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': '2c13e02592b918be7725ab5965e01ef4e46c4b57', 'versionType': 'git'}, {'status': 'affected', 'version': 'aa89762c54800208d5afdcd8e6bf124818f17fe0', 'lessThan': 'ca1afd88f5eaaff9168e1466e5401385edf59543', 'versionType': 'git'}], 'programFiles': ['fs/ocfs2/alloc.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.14'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.14', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.261', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.212', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.40', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.5', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/ocfs2/alloc.c'], 'defaultStatus': 'affected'}] 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. Added Reference https://git.kernel.org/stable/c/06c0a0431b9856506fcd9b2c1b0c6136567d756d Added Reference https://git.kernel.org/stable/c/2c13e02592b918be7725ab5965e01ef4e46c4b57 Added Reference https://git.kernel.org/stable/c/346314bb0cc2fc52b50b73d6ecc62e0217455c2e Added Reference https://git.kernel.org/stable/c/3fa7139b5f42731a61f78c42433adae13f9adc21 Added Reference https://git.kernel.org/stable/c/441abb77222f155e8d931dbabb465466db01cfd7 Added Reference https://git.kernel.org/stable/c/ca1afd88f5eaaff9168e1466e5401385edf59543 Added Reference https://git.kernel.org/stable/c/d903d59c0315f59bdf0214b4f13d71c9feb2c45c Added Reference https://git.kernel.org/stable/c/e652d0f5108e447b22da4249bcd23dd1b63c73dd