Linux
ocfs2: reject FITRIM ranges shorter than a cluster
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < d903d59c0315f59bdf0214b4f13d71c9feb2c45c
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < 441abb77222f155e8d931dbabb465466db01cfd7
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < e652d0f5108e447b22da4249bcd23dd1b63c73dd
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < 346314bb0cc2fc52b50b73d6ecc62e0217455c2e
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < 06c0a0431b9856506fcd9b2c1b0c6136567d756d
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < 3fa7139b5f42731a61f78c42433adae13f9adc21
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < 2c13e02592b918be7725ab5965e01ef4e46c4b57
- >= aa89762c54800208d5afdcd8e6bf124818f17fe0, < ca1afd88f5eaaff9168e1466e5401385edf59543
Fixed in d903d59c0315f59bdf0214b4f13d71c9feb2c45c, 441abb77222f155e8d931dbabb465466db01cfd7, e652d0f5108e447b22da4249bcd23dd1b63c73dd, 346314bb0cc2fc52b50b73d6ecc62e0217455c2e, 06c0a0431b9856506fcd9b2c1b0c6136567d756d, 3fa7139b5f42731a61f78c42433adae13f9adc21, 2c13e02592b918be7725ab5965e01ef4e46c4b57, ca1afd88f5eaaff9168e1466e5401385edf59543
- 3.14
Fixed in 0, 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to d903d59c0315f59bdf0214b4f13d71c9feb2c45c or 441abb77222f155e8d931dbabb465466db01cfd7 or e652d0f5108e447b22da4249bcd23dd1b63c73dd or 346314bb0cc2fc52b50b73d6ecc62e0217455c2e or 06c0a0431b9856506fcd9b2c1b0c6136567d756d or 3fa7139b5f42731a61f78c42433adae13f9adc21 or 2c13e02592b918be7725ab5965e01ef4e46c4b57 or ca1afd88f5eaaff9168e1466e5401385edf59543 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.