GHSA-6737-4M3C-X4X3

Vulnerability from github – Published: 2026-11-20 06:32 – Updated: 2026-11-23 09:31
VLAI
Details

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: ]

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99735"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-20T06:18:10Z",
    "severity": "HIGH"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/mglru: don\u0027t use stack pointers when walking PUD and PMD tables\n\nMGLRU passes stack copies of page-table entries in walk_pud_range() and\nwalk_pmd_range() when walking to the next level. These copies can become\nstale when khugepaged or MADV_DONTNEED (CONFIG_PT_RECLAIM) removes a PTE\ntable concurrently.\n\nThis pattern dates back to commit bd74fdaea146 (\"mm: multi-gen LRU:\nsupport page table walks\"). Likely, earlier locking masked the latent\nbug. Later changes exposed it: commit 1d65b771bc08 (\"mm/khugepaged:\nretract_page_tables() without mmap or vma lock\") allowed concurrent\nretraction, and commit cf4a65539c13 (\"memcg-v1: no need for memcg locking\nfor MGLRU\") dropped the walker\u0027s outer RCU protection.\n\nThe fix is simple, so just fix the original commit so we don\u0027t have to\nspeculate. To fix it, pass the actual PMD/PUD pointers. This restores the\nRCU-protected lookup and validation against the live PMD. Note that the PUD\nhandling is required as well to handle folded page tables correctly in all\ncases.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: handle walk_pud_range() as well, clarify+simplify description,\n         adjust Fixes: ]",
  "id": "GHSA-6737-4m3c-x4x3",
  "modified": "2026-11-23T09:31:02Z",
  "published": "2026-11-20T06:32:09Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99735"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4240f886a8ba35b5fa18cf067358cd31a122dcc8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4b428d9d24e303f92819119c66858f5de38bbc78"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/60454f64ab304a89707291af6f455893e5506187"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/65a9bf08a3e4d6e58df211ed900c16bafb79b267"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…