# CVE-2026-74349: ocfs2: reject FITRIM ranges shorter than a cluster

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-15T05:58:36.630Z
- Modified: 2026-10-16T19:17:40.977Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from aa89762c54800208d5afdcd8e6bf124818f17fe0 before d903d59c0315f59bdf0214b4f13d71c9feb2c45c; from aa89762c54800208d5afdcd8e6bf124818f17fe0 before 441abb77222f155e8d931dbabb465466db01cfd7; from aa89762c54800208d5afdcd8e6bf124818f17fe0 before e652d0f5108e447b22da4249bcd23dd1b63c73dd; from aa89762c54800208d5afdcd8e6bf124818f17fe0 before 346314bb0cc2fc52b50b73d6ecc62e0217455c2e; from aa89762c54800208d5afdcd8e6bf124818f17fe0 before 06c0a0431b9856506fcd9b2c1b0c6136567d756d; from aa89762c54800208d5afdcd8e6bf124818f17fe0 before 3fa7139b5f42731a61f78c42433adae13f9adc21; from aa89762c54800208d5afdcd8e6bf124818f17fe0 before 2c13e02592b918be7725ab5965e01ef4e46c4b57; from aa89762c54800208d5afdcd8e6bf124818f17fe0 before ca1afd88f5eaaff9168e1466e5401385edf59543; 3.14 (not affected: before 3.14; from 5.10.261 up to 5.10.*; from 5.15.212 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/d903d59c0315f59bdf0214b4f13d71c9feb2c45c>
- <https://git.kernel.org/stable/c/441abb77222f155e8d931dbabb465466db01cfd7>
- <https://git.kernel.org/stable/c/e652d0f5108e447b22da4249bcd23dd1b63c73dd>
- <https://git.kernel.org/stable/c/346314bb0cc2fc52b50b73d6ecc62e0217455c2e>
- <https://git.kernel.org/stable/c/06c0a0431b9856506fcd9b2c1b0c6136567d756d>
- <https://git.kernel.org/stable/c/3fa7139b5f42731a61f78c42433adae13f9adc21>
- <https://git.kernel.org/stable/c/2c13e02592b918be7725ab5965e01ef4e46c4b57>
- <https://git.kernel.org/stable/c/ca1afd88f5eaaff9168e1466e5401385edf59543>

## Sources

- CVE List: [CVE-2026-74349](https://www.cve.org/CVERecord?id=CVE-2026-74349), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-74349](https://nvd.nist.gov/vuln/detail/CVE-2026-74349), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-74349 · Whole record: https://cve.day/CVE-2026-74349.json · Rebuilt by cve.day 2026-11-25T22:59:33.178Z
