7.8

CVE-2026-99735

mm/mglru: don't use stack pointers when walking PUD and PMD tables

In the Linux kernel, the following vulnerability has been resolved:

mm/mglru: don't use stack pointers when walking PUD and PMD tables

MGLRU passes stack copies of page-table entries in walk_pud_range() and
walk_pmd_range() when walking to the next level. These copies can become
stale when khugepaged or MADV_DONTNEED (CONFIG_PT_RECLAIM) removes a PTE
table concurrently.

This pattern dates back to commit bd74fdaea146 ("mm: multi-gen LRU:
support page table walks"). Likely, earlier locking masked the latent
bug. Later changes exposed it: commit 1d65b771bc08 ("mm/khugepaged:
retract_page_tables() without mmap or vma lock") allowed concurrent
retraction, and commit cf4a65539c13 ("memcg-v1: no need for memcg locking
for MGLRU") dropped the walker's outer RCU protection.

The fix is simple, so just fix the original commit so we don't have to
speculate. To fix it, pass the actual PMD/PUD pointers. This restores the
RCU-protected lookup and validation against the live PMD. Note that the PUD
handling is required as well to handle folded page tables correctly in all
cases.

Fix generated by an LLM and sent by Josef Bacik in private.

[ david: handle walk_pud_range() as well, clarify+simplify description,
         adjust Fixes: ]
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version bd74fdaea146029e4fa12c6de89adbe0779348a9
Version < 4240f886a8ba35b5fa18cf067358cd31a122dcc8
Status affected
Version bd74fdaea146029e4fa12c6de89adbe0779348a9
Version < 60454f64ab304a89707291af6f455893e5506187
Status affected
Version bd74fdaea146029e4fa12c6de89adbe0779348a9
Version < a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e
Status affected
Version bd74fdaea146029e4fa12c6de89adbe0779348a9
Version < 4b428d9d24e303f92819119c66858f5de38bbc78
Status affected
Version bd74fdaea146029e4fa12c6de89adbe0779348a9
Version < 4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3
Status affected
Version bd74fdaea146029e4fa12c6de89adbe0779348a9
Version < 65a9bf08a3e4d6e58df211ed900c16bafb79b267
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 6.1
Status affected
Version 0
Version < 6.1
Status unaffected
Version <= 6.1.*
Version 6.1.193
Status unaffected
Version <= 6.6.*
Version 6.6.163
Status unaffected
Version <= 6.12.*
Version 6.12.118
Status unaffected
Version <= 6.18.*
Version 6.18.64
Status unaffected
Version <= 7.3.*
Version 7.3.5
Status unaffected
Version <= *
Version 7.4-rc2
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.17% 0.063
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
416baaa9-dc9f-4396-8d5f-8c081fb06d67 7.8 1.8 5.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e
https://git.kernel.org/stable/c/4b428d9d24e303f92819119c66858f5de38bbc78
https://git.kernel.org/stable/c/4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3
https://git.kernel.org/stable/c/65a9bf08a3e4d6e58df211ed900c16bafb79b267
https://git.kernel.org/stable/c/4240f886a8ba35b5fa18cf067358cd31a122dcc8
https://git.kernel.org/stable/c/60454f64ab304a89707291af6f455893e5506187