{"id":"CVE-2026-99664","aliases":["CVE-2026-99664"],"related":[],"kind":"vulnerability","state":"published","title":"mm/gup: recheck the PUD under PTL in follow_pud_mask()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: recheck the PUD under PTL in follow_pud_mask()\n\nfollow_pud_mask() reads the PUD without a lock. If it is a leaf, it takes\nthe lock and calls follow_huge_pud(), which reads the entry again, but\nonly tests whether it is present.\n\nA leaf can be zapped concurrently and a page fault can fill the empty\nentry with a page table.\n\nThis currently only applies when device-dax makes use of PUD entries,\nand the fault after e.g., MADV_DONTNEED would find THPs to be disabled.\n\nThat requires a sequence like\n\n1) Fault in the PUD\n2) Disable THP\n3) Have GUP race against concurrent MADV_DONTNEED + refault\n\nWhich is rather unlikely to happen in practice, which is why we never\nreceived a report about such a problem.\n\nBefore commit 1b1676180246 (\"mm/gup: handle huge pud for\nfollow_pud_mask()\"), we performed that check in follow_devmap_pud() by\ntesting for pud_devmap().\n\nLet's fix it by just structuring follow_pud_mask() similar to\nfollow_pmd_mask(), minus protnone stuff that does not apply and minus\nFOLL_SPLIT_PMD handling. That makes it much easier to spot any such\ninconsistencies.\n\nPerform the pud_bad() check early in follow_pmd_mask() and just forward\nthe PUD value. We can drop the pud_present() check in follow_huge_pud(),\njust like we have in follow_huge_pmd().\n\nEven though we are performing more changes than strictly necessary, the\nfix should be easy to backport.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: recheck the PUD under PTL in follow_pud_mask()\n\nfollow_pud_mask() reads the PUD without a lock. If it is a leaf, it takes\nthe lock and calls follow_huge_pud(), which reads the entry again, but\nonly tests whether it is present.\n\nA leaf can be zapped concurrently and a page fault can fill the empty\nentry with a page table.\n\nThis currently only applies when device-dax makes use of PUD entries,\nand the fault after e.g., MADV_DONTNEED would find THPs to be disabled.\n\nThat requires a sequence like\n\n1) Fault in the PUD\n2) Disable THP\n3) Have GUP race against concurrent MADV_DONTNEED + refault\n\nWhich is rather unlikely to happen in practice, which is why we never\nreceived a report about such a problem.\n\nBefore commit 1b1676180246 (\"mm/gup: handle huge pud for\nfollow_pud_mask()\"), we performed that check in follow_devmap_pud() by\ntesting for pud_devmap().\n\nLet's fix it by just structuring follow_pud_mask() similar to\nfollow_pmd_mask(), minus protnone stuff that does not apply and minus\nFOLL_SPLIT_PMD handling. That makes it much easier to spot any such\ninconsistencies.\n\nPerform the pud_bad() check early in follow_pmd_mask() and just forward\nthe PUD value. We can drop the pud_present() check in follow_huge_pud(),\njust like we have in follow_huge_pmd().\n\nEven though we are performing more changes than strictly necessary, the\nfix should be easy to backport.","source":"cvelist"}],"published":"2026-11-20T05:50:14.863Z","modified":"2026-11-20T06:18:00.630Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1b1676180246232308885c4f37fee01cf898fdb2","fixed":"da57b6bce646946c083a48df644d43bb9d011f5f","status":"affected"},{"type":"git","introduced":"1b1676180246232308885c4f37fee01cf898fdb2","fixed":"9eaedd598cd25eb0e18958e2456153a4c1f3db03","status":"affected"},{"type":"git","introduced":"1b1676180246232308885c4f37fee01cf898fdb2","fixed":"79cb51d538abc459f74e046d27797d36b133ce0e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/da57b6bce646946c083a48df644d43bb9d011f5f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9eaedd598cd25eb0e18958e2456153a4c1f3db03","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79cb51d538abc459f74e046d27797d36b133ce0e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99664","url":"https://www.cve.org/CVERecord?id=CVE-2026-99664","licence":"CVE Terms of Use","modified":"2026-11-20T05:50:14.863Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99664","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99664","licence":"Public domain","modified":"2026-11-20T06:18:00.630Z"}],"updatedAt":"2026-11-25T22:59:52.299Z","epss":{"score":0.00166,"percentile":0.06195,"date":"2026-12-01T12:00:22.000Z"}}