1. Accueil
  2. Vulnérabilités
  3. CVE-2026-138867

CVE-2026-138867

mm/memory: constrain generic_access_phys() to page boundary

Publiée le 30 nov. 2026 · modifiée le 30 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 13/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: mm/memory: constrain generic_access_phys() to page boundary This patch addresses an issue in generic_access_phys() where accessing memory across page boundaries in PFNMAP VMAs assumes physical pages are contiguous, which can lead to accessing unintended physical memory or exceeding VMA boundaries. generic_access_phys() improperly validates the memory access range: it only validates the start address using follow_pfnmap_start() and passes PAGE_ALIGN(len + offset) to ioremap_prot(). This poses two problems: 1. In PFNMAP VMAs, consecutive virtual pages are not guaranteed to be physically contiguous, and individual PTEs may have different access permissions or writability. 2. The mapping may cross VMA boundaries if len extends beyond vma->vm_end. Constrain the access in generic_access_phys() to at most the current page boundary (PAGE_SIZE - offset) and map only a single PAGE_SIZE via ioremap_prot(). Since the caller __access_remote_vm() already loops over the requested length and handles partial transfers, it will naturally iterate over the remaining pages. Also add a missing (resource_size_t) cast during PFN re-validation to avoid truncation on 32-bit PAE systems.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (8 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux de 3.2.69 (inclus) à 3.3 (exclu) — CNA (éditeur ou attributeur)
Linux de 3.4.108 (inclus) à 3.5 (exclu) — CNA (éditeur ou attributeur)
Linux de 3.10.72 (inclus) à 3.11 (exclu) — CNA (éditeur ou attributeur)
Linux de 3.12.39 (inclus) à 3.13 (exclu) — CNA (éditeur ou attributeur)
Linux de 3.14.36 (inclus) à 3.15 (exclu) — CNA (éditeur ou attributeur)
Linux de 3.18.10 (inclus) à 3.19 (exclu) — CNA (éditeur ou attributeur)
Linux de 3.19.2 (inclus) à 3.20 (exclu) — CNA (éditeur ou attributeur)
Linux 4.0 — CNA (éditeur ou attributeur)

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1679)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)

Comment sont obtenues et calculées ces données