mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast (Linux Linux)

CVE-2026-99662
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.16 % · centile 6 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Produits affectés
Linux · Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast With nr_pages == 0, GUP-fast still enters its page table walk and can write past the caller's page array. The old end <= start check caught empty ranges, but was replaced with an overflow check. Users such as OrangeFS can pass a zero page count derived from a userspace-supplied length. So let's return zero for nr_pages == 0 before starting the walk, just like GUP-slow. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description ]

Références

Scores

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

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions affectées
Linux · Linux
affectée : ≥ bcb0f647c1fae9496e6ce499618a8da003c56088 < 0452d6d24ee4d65226824bcbefaf187707b72ced
affectée : ≥ c28b1fc70390df32e29991eedd52bd86e7aba080 < 6ac370032a68a343be599d8476ded2c36b43b53a
affectée : ≥ c28b1fc70390df32e29991eedd52bd86e7aba080 < 21854ef8dc4e9398d84e4129db52dad69622fd9b
affectée : ≥ c28b1fc70390df32e29991eedd52bd86e7aba080 < 32717a0763b2170eae5693fe4afbeecaa168ffdc
affectée : ≥ c28b1fc70390df32e29991eedd52bd86e7aba080 < 11536b9b6bed3cc4d684a70d468493775e7d1d48
affectée : ≥ c28b1fc70390df32e29991eedd52bd86e7aba080 < 0794c5809fa6322e8b43b70601700fd6c48e69ea
affectée : ≥ c28b1fc70390df32e29991eedd52bd86e7aba080 < 5697a3b58722b15fcb06fb30368ce9f46458a95a
affectée : ≥ c28b1fc70390df32e29991eedd52bd86e7aba080 < 1dfe4b276c23189394afb42d114ee8a54cc3aff2
affectée : ≥ 5.10.4 < 5.10.275
Autres versions : non affectée
Linux · Linux
affectée : 5.11
non affectée : ≥ 0 < 5.11
non affectée : ≥ 5.10.275 ≤ 5.10.*
non affectée : ≥ 5.15.226 ≤ 5.15.*
non affectée : ≥ 6.1.193 ≤ 6.1.*
non affectée : ≥ 6.6.163 ≤ 6.6.*
non affectée : ≥ 6.12.118 ≤ 6.12.*
non affectée : ≥ 6.18.64 ≤ 6.18.*
non affectée : ≥ 7.3.5 ≤ 7.3.*
non affectée : ≥ 7.4-rc2 ≤ *
Autres versions : affectée

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