Dežurni tim za incidente, 0–24: +385 98 1900 984NovoIR Retainer: tim ugovoren prije napada
HR · EN
U procjeniCVE-2026-138867

mm/memory: constrain generic_access_phys() to page boundary

Objavljeno 30. 11. 2026. · Ažurirano 30. 11. 2026. · Linux

Opis (engleski)

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.

Zahvaćeni proizvodi i verzije

Linux Linux9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 – < eb4334c7cebb4812126bc5dbb8e91c4d63b3d784 · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 – < 14375f7daba0afb67c10d56e5f4af694ad18d928 · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 – < defac975e1fbd1cae022bf26657299f87105fd9e · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 – < f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 – < 61b405ef3e35b5890365090ab6a377855e9a9b71 · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 – < 94a138ce5baed8233c0d541fd14ac6d58bf1da8c · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 – < ae0298a5fbeff32951c0d31398ccec97ec6aa0ea · c8d452410c798d28ac96c3716b011d3d6b5d3ade · 601391cbb6334533d6fde4e81f40b53b5f85d73b · 9113c468b621ddb74f2395564720862faa3a083d · 970970dcb4fca4fdcbb1b9bf4d7cd686796dc9d6 · 9db79db105f2316229803a85eec7db665f7d276cIspravljeno u: eb4334c7cebb4812126bc5dbb8e91c4d63b3d784 · 14375f7daba0afb67c10d56e5f4af694ad18d928 · defac975e1fbd1cae022bf26657299f87105fd9e · f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba · 61b405ef3e35b5890365090ab6a377855e9a9b71 · 94a138ce5baed8233c0d541fd14ac6d58bf1da8c · ae0298a5fbeff32951c0d31398ccec97ec6aa0ea · 3.3 · 3.5 · 3.11 · 3.13 · 3.15
Linux Linux4.0Ispravljeno u: 5.15.226 · 6.1.193 · 6.6.163 · 6.12.118 · 6.18.63 · 7.3.4 · 7.4-rc1

Reference

Izvori: CVE.org (CNA i CISA ADP), CISA KEV, FIRST EPSS. Uvijek provjerite službenu objavu proizvođača.