CVE-2026-99735 (GCVE-0-2026-99735)

Vulnerability from cvelistv5 – Published: 2026-11-20 05:51 – Updated: 2026-11-23 08:06
VLAI
Title
mm/mglru: don't use stack pointers when walking PUD and PMD tables
Summary
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: ]
Impacted products
Vendor Product Version
Linux Linux Affected: bd74fdaea146029e4fa12c6de89adbe0779348a9 , < 4240f886a8ba35b5fa18cf067358cd31a122dcc8 (git)
Affected: bd74fdaea146029e4fa12c6de89adbe0779348a9 , < 60454f64ab304a89707291af6f455893e5506187 (git)
Affected: bd74fdaea146029e4fa12c6de89adbe0779348a9 , < a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e (git)
Affected: bd74fdaea146029e4fa12c6de89adbe0779348a9 , < 4b428d9d24e303f92819119c66858f5de38bbc78 (git)
Affected: bd74fdaea146029e4fa12c6de89adbe0779348a9 , < 4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3 (git)
Affected: bd74fdaea146029e4fa12c6de89adbe0779348a9 , < 65a9bf08a3e4d6e58df211ed900c16bafb79b267 (git)
Create a notification for this product.
Linux Linux Affected: 6.1
Unaffected: 0 , < 6.1 (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.118 , ≤ 6.12.* (semver)
Unaffected: 6.18.64 , ≤ 6.18.* (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/vmscan.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "4240f886a8ba35b5fa18cf067358cd31a122dcc8",
              "status": "affected",
              "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
              "versionType": "git"
            },
            {
              "lessThan": "60454f64ab304a89707291af6f455893e5506187",
              "status": "affected",
              "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
              "versionType": "git"
            },
            {
              "lessThan": "a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e",
              "status": "affected",
              "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
              "versionType": "git"
            },
            {
              "lessThan": "4b428d9d24e303f92819119c66858f5de38bbc78",
              "status": "affected",
              "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
              "versionType": "git"
            },
            {
              "lessThan": "4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3",
              "status": "affected",
              "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
              "versionType": "git"
            },
            {
              "lessThan": "65a9bf08a3e4d6e58df211ed900c16bafb79b267",
              "status": "affected",
              "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "mm/vmscan.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.1"
            },
            {
              "lessThan": "6.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.118",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.118",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.64",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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: ]"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Reclaim snapshots the PMD in walk_pmd_range() via shrink_node() \u2192 lru_gen_shrink_node()/lru_gen_shrink_lruvec() \u2192 try_to_inc_max_seq() \u2192 walk_mm(). The PTE page is removed locally by do_madvise(MADV_DONTNEED) in zap_empty_pte_table()\u0027s pmd_clear(), or by retract_page_tables()\u0027s pmdp_collapse_flush(); no network message carries the entry.\nAC:L - The attacker runs the mm (lru_gen_use_mm() sets lru_gen.bitmap so get_next_mm() selects it) and, from another thread, MADV_DONTNEED under the vma read lock, which does not block walk_mm()\u0027s mmap_read_trylock(). That thread pmd_clears the table and call_rcu-frees it before walk_pte_range() uses the stack copy in val. Both sides are the attacker\u0027s.\nPR:L - do_madvise(MADV_DONTNEED) and direct reclaim through try_to_free_pages() \u2192 shrink_node() check no capability. An unprivileged task that can mmap, fault, madvise, and allocate reaches walk_pmd_range() on its own mm.\nUI:N - The attacker faults its own mapping, calls madvise(MADV_DONTNEED), and allocates until direct reclaim runs walk_mm(). No other user has to mount, open, or approve the operation.\nS:U - The use-after-free hits the PTE page and its struct page in the kernel that is executing walk_mm(), the same security authority as the local user.\nC:H - walk_pte_range() passes \u0026val to pte_offset_map_rw_nolock(), so __pte_offset_map() reads the stack copy under rcu_read_lock and pmd_same() compares that copy with itself. ptep_get() then reads the page after pagetable_dtor_free(); PTEs planted in the reused page make get_pfn_folio() follow attacker-chosen PFNs.\nI:H - Because that pmd_same() check matches the stack copy against itself, spin_trylock(pte_lockptr()) writes ptdesc-\u003eptl, which overlays struct page\u0027s private/slab_cache field after reuse, and test_and_clear_young_ptes() atomically clears the young bit there. A PFN taken from that memory also reaches folio_update_gen()\u0027s cmpxchg of folio-\u003eflags.\nA:H - zap_empty_pte_table() or retract_page_tables() frees the PTE page through tlb_remove_table_rcu() or pte_free_defer() while walk_pte_range() still locks and writes it. That use-after-free oopses the kernel or corrupts allocator metadata and takes the system down."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-23T08:06:43.539Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/4240f886a8ba35b5fa18cf067358cd31a122dcc8"
        },
        {
          "url": "https://git.kernel.org/stable/c/60454f64ab304a89707291af6f455893e5506187"
        },
        {
          "url": "https://git.kernel.org/stable/c/a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e"
        },
        {
          "url": "https://git.kernel.org/stable/c/4b428d9d24e303f92819119c66858f5de38bbc78"
        },
        {
          "url": "https://git.kernel.org/stable/c/4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3"
        },
        {
          "url": "https://git.kernel.org/stable/c/65a9bf08a3e4d6e58df211ed900c16bafb79b267"
        }
      ],
      "title": "mm/mglru: don\u0027t use stack pointers when walking PUD and PMD tables",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99735",
    "datePublished": "2026-11-20T05:51:09.038Z",
    "dateReserved": "2026-09-25T10:25:14.431Z",
    "dateUpdated": "2026-11-23T08:06:43.539Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99735",
      "date": "2026-11-24",
      "epss": "0.00164",
      "percentile": "0.05511"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-25T01:11:11.000Z",
      "cve": "CVE-2026-99735",
      "id": "msrc_CVE-2026-99735",
      "initial_release_date": "2026-11-20T18:16:38.000Z",
      "product_status:fixed": "2",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "mm/mglru: don\u0027t use stack pointers when walking PUD and PMD tables",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99735.json",
      "version": "5"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "mm/vmscan.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "4240f886a8ba35b5fa18cf067358cd31a122dcc8",
                    "status": "affected",
                    "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "60454f64ab304a89707291af6f455893e5506187",
                    "status": "affected",
                    "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e",
                    "status": "affected",
                    "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4b428d9d24e303f92819119c66858f5de38bbc78",
                    "status": "affected",
                    "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3",
                    "status": "affected",
                    "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "65a9bf08a3e4d6e58df211ed900c16bafb79b267",
                    "status": "affected",
                    "version": "bd74fdaea146029e4fa12c6de89adbe0779348a9",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "mm/vmscan.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.1"
                  },
                  {
                    "lessThan": "6.1",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.118",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.64",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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": "CVE-2026-99735",
        "lastModified": "2026-11-23T08:18:13.887",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-20T06:18:10.993",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4240f886a8ba35b5fa18cf067358cd31a122dcc8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4b428d9d24e303f92819119c66858f5de38bbc78"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4e5eb180d37cb222ed3c9b6772c6044e16c2a1c3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/60454f64ab304a89707291af6f455893e5506187"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/65a9bf08a3e4d6e58df211ed900c16bafb79b267"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a352391f8f9c035d3b2a8a9fe6e3fd2e1c4ec44e"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-24T23:22:40+00:00",
      "cve": "CVE-2026-99735",
      "id": "CVE-2026-99735",
      "initial_release_date": "2026-11-20T05:51:09.038000+00:00",
      "product_status:known_affected": "201",
      "product_status:known_not_affected": "79",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via race condition in MGLRU page table walks",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99735.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-11-25T00:59:27Z",
      "cve": "CVE-2026-99735",
      "id": "CVE-2026-99735",
      "initial_release_date": "2026-11-20T17:41:03Z",
      "product_status:known_affected": "115",
      "product_status:known_not_affected": "236",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99735",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99735.json",
      "version": "5"
    }
  }
}



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…