cvelo
P4 · InfoEPSS 0.2%

mm/memory: constrain generic_access_phys() to page boundary

  • CVE-2026-138867
  • GHSA-q75j-8gqj-rf9w
  • EUVD-2026-138570

Description

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.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version from 3.19.2 to before 3.20update to 3.20 or laterMinor version change: check the release notes
    • If you run a version from 3.18.10 to before 3.19update to 3.19 or laterMinor version change: check the release notes
    • If you run a version from 3.14.36 to before 3.15update to 3.15 or laterMinor version change: check the release notes
    • If you run a version from 3.12.39 to before 3.13update to 3.13 or laterMinor version change: check the release notes
    • If you run a version from 3.10.72 to before 3.11update to 3.11 or laterMinor version change: check the release notes
    • If you run a version from 3.4.108 to before 3.5update to 3.5 or laterMinor version change: check the release notes
    • If you run a version from 3.2.69 to before 3.3update to 3.3 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 3.19.2 to before 3.203.20
    from 3.18.10 to before 3.193.19
    from 3.14.36 to before 3.153.15
    from 3.12.39 to before 3.133.13
    from 3.10.72 to before 3.113.11
    from 3.4.108 to before 3.53.5
    from 3.2.69 to before 3.33.3
    4.0none stated

    and 8 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.