{"id":"CVE-2026-74349","summary":"ocfs2: reject FITRIM ranges shorter than a cluster","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: reject FITRIM ranges shorter than a cluster\n\nocfs2_trim_mainbm() trims the global bitmap in cluster units, but its\ntoo-short range validation only checks sb-\u003es_blocksize.\n\nOn filesystems with a cluster size larger than the block size, a FITRIM\nrange that is at least one block but shorter than one cluster is accepted\nand shifted down to len == 0.  The later start + len - 1 and len -= ... \narithmetic then underflows and can drive trimming past the requested\nrange.\n\nReject ranges shorter than s_clustersize instead.  That preserves the\nexisting -EINVAL behavior for requests that cannot discard even one\nallocation unit and keeps zero-cluster trims out of the group walk.","modified":"2026-08-18T03:56:54.499474123Z","published":"2026-08-15T05:58:36.630Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74349.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/06c0a0431b9856506fcd9b2c1b0c6136567d756d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c13e02592b918be7725ab5965e01ef4e46c4b57"},{"type":"WEB","url":"https://git.kernel.org/stable/c/346314bb0cc2fc52b50b73d6ecc62e0217455c2e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3fa7139b5f42731a61f78c42433adae13f9adc21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/441abb77222f155e8d931dbabb465466db01cfd7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca1afd88f5eaaff9168e1466e5401385edf59543"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d903d59c0315f59bdf0214b4f13d71c9feb2c45c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e652d0f5108e447b22da4249bcd23dd1b63c73dd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74349.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74349"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"aa89762c54800208d5afdcd8e6bf124818f17fe0"},{"fixed":"d903d59c0315f59bdf0214b4f13d71c9feb2c45c"},{"fixed":"441abb77222f155e8d931dbabb465466db01cfd7"},{"fixed":"e652d0f5108e447b22da4249bcd23dd1b63c73dd"},{"fixed":"346314bb0cc2fc52b50b73d6ecc62e0217455c2e"},{"fixed":"06c0a0431b9856506fcd9b2c1b0c6136567d756d"},{"fixed":"3fa7139b5f42731a61f78c42433adae13f9adc21"},{"fixed":"2c13e02592b918be7725ab5965e01ef4e46c4b57"},{"fixed":"ca1afd88f5eaaff9168e1466e5401385edf59543"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74349.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.14.0"},{"fixed":"5.10.261"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74349.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"}]}