Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99735

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

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99735: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from the source: 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: ]

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 4240f886a8ba35b5fa18cf067358cd31a122dcc8; Linux Linux >= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 60454f64ab304a89707291af6f455893e5506187; Linux Linux >= bd74fdaea146029e4fa12c6de89adbe0779348a9, < a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e; Linux Linux >= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 4b428d9d24e303f92819119c66858f5de38bbc78; Linux Linux >= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3; Linux Linux >= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 65a9bf08a3e4d6e58df211ed900c16bafb79b267; Linux Linux 6.1; Linux Linux < 6.1; Linux Linux 6.1.193 (fixed in 6.1.193); Linux Linux 6.6.163 (fixed in 6.6.163); Linux Linux 6.12.118 (fixed in 6.12.118); Linux Linux 6.18.64 (fixed in 6.18.64)

ProductVersionsFixed in
Linux Linux>= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 4240f886a8ba35b5fa18cf067358cd31a122dcc8—
Linux Linux>= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 60454f64ab304a89707291af6f455893e5506187—
Linux Linux>= bd74fdaea146029e4fa12c6de89adbe0779348a9, < a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e—
Linux Linux>= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 4b428d9d24e303f92819119c66858f5de38bbc78—
Linux Linux>= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3—
Linux Linux>= bd74fdaea146029e4fa12c6de89adbe0779348a9, < 65a9bf08a3e4d6e58df211ed900c16bafb79b267—
Linux Linux6.1—
Linux Linux< 6.1—
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1186.12.118
Linux Linux6.18.646.18.64
Linux Linux7.3.57.3.5
Linux Linux7.4-rc27.4-rc2

Action recommended by the source

Upgrade to a fixed version: 6.1.193, 6.12.118, 6.18.64, 6.6.163, 7.3.5, 7.4-rc2.

Fixed in: 6.1.193, 6.12.118, 6.18.64, 6.6.163, 7.3.5, 7.4-rc2

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.