ocfs2: reject FITRIM ranges shorter than a cluster (Linux Linux)

CVE-2026-74349
HIGH 7.1

En bref

Source
NVD
EPSS
EPSS 0.13 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

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.

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected aa89762c54800208d5afdcd8e6bf124818f17fe0 < d903d59c0315f59bdf0214b4f13d71c9feb2c45c ; affected aa89762c54800208d5afdcd8e6bf124818f17fe0 < 441abb77222f155e8d931dbabb465466db01cfd7 ; affected aa89762c54800208d5afdcd8e6bf124818f17fe0 < e652d0f5108e447b22da4249bcd23dd1b63c73dd ; affected aa89762c54800208d5afdcd8e6bf124818f17fe0 < 346314bb0cc2fc52b50b73d6ecc62e0217455c2e ; affected aa89762c54800208d5afdcd8e6bf124818f17fe0 < 06c0a0431b9856506fcd9b2c1b0c6136567d756d ; affected aa89762c54800208d5afdcd8e6bf124818f17fe0 < 3fa7139b5f42731a61f78c42433adae13f9adc21
Linux · Linuxaffected 3.14 ; unaffected 0 < 3.14 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD