ocfs2: reject FITRIM ranges shorter than a cluster

Summary

CVECVE-2026-74349
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-15 06:22:36 UTC
Updated2026-08-15 06:22:36 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 d903d59c0315f59bdf0214b4f13d71c9feb2c45c git Not specified
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 441abb77222f155e8d931dbabb465466db01cfd7 git Not specified
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 e652d0f5108e447b22da4249bcd23dd1b63c73dd git Not specified
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 346314bb0cc2fc52b50b73d6ecc62e0217455c2e git Not specified
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 06c0a0431b9856506fcd9b2c1b0c6136567d756d git Not specified
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 3fa7139b5f42731a61f78c42433adae13f9adc21 git Not specified
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 2c13e02592b918be7725ab5965e01ef4e46c4b57 git Not specified
CNA Linux Linux affected aa89762c54800208d5afdcd8e6bf124818f17fe0 ca1afd88f5eaaff9168e1466e5401385edf59543 git Not specified
CNA Linux Linux affected 3.14 Not specified
CNA Linux Linux unaffected 3.14 semver Not specified
CNA Linux Linux unaffected 5.10.261 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.212 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.178 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.97 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.40 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.5 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/441abb77222f155e8d931dbabb465466db01cfd7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/06c0a0431b9856506fcd9b2c1b0c6136567d756d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ca1afd88f5eaaff9168e1466e5401385edf59543 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3fa7139b5f42731a61f78c42433adae13f9adc21 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2c13e02592b918be7725ab5965e01ef4e46c4b57 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/346314bb0cc2fc52b50b73d6ecc62e0217455c2e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d903d59c0315f59bdf0214b4f13d71c9feb2c45c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e652d0f5108e447b22da4249bcd23dd1b63c73dd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report