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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.261, 5.15.212, 6.1.178, 6.12.97, 6.18.40, 6.6.145, 7.1.5
- CVEs
- CVE-2026-74349
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:50 UTC · Revision 1
Source evidence
ocfs2: reject FITRIM ranges shorter than a cluster
core-osv · Original sourcePublished 15 Aug 2026, 05:58 UTC
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.
osv:CVE-2026-74349
Kernel
Fixed versions: 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5
Complete source record
{
"id": "71b7f6ce20a5fb67c2f6a21f58e2e617ca89c341984bbba36675952a347e0802",
"url": "https://osv.dev/vulnerability/CVE-2026-74349",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ocfs2: reject FITRIM ranges shorter than a cluster",
"summary": "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.",
"evidence": "osv:CVE-2026-74349",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.261",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.212",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.178",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.145",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.97",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.40",
"evidence": "/affected/1/ranges"
},
{
"value": "7.1.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-74349",
"aliases": [
"CVE-2026-74349"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74349.json"
}
}
],
"modified": "2026-10-28T02:30:53.120323013Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/06c0a0431b9856506fcd9b2c1b0c6136567d756d",
"https://git.kernel.org/stable/c/2c13e02592b918be7725ab5965e01ef4e46c4b57",
"https://git.kernel.org/stable/c/346314bb0cc2fc52b50b73d6ecc62e0217455c2e",
"https://git.kernel.org/stable/c/3fa7139b5f42731a61f78c42433adae13f9adc21",
"https://git.kernel.org/stable/c/441abb77222f155e8d931dbabb465466db01cfd7",
"https://git.kernel.org/stable/c/ca1afd88f5eaaff9168e1466e5401385edf59543",
"https://git.kernel.org/stable/c/d903d59c0315f59bdf0214b4f13d71c9feb2c45c",
"https://git.kernel.org/stable/c/e652d0f5108e447b22da4249bcd23dd1b63c73dd",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74349.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-74349",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74349.json"
}
},
"related_cves": [
{
"value": "CVE-2026-74349",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521948,
"published_at": "2026-08-15T05:58:36.63+00:00"
}