{"id":"CVE-2026-99652","aliases":["CVE-2026-99652"],"related":[],"kind":"vulnerability","state":"published","title":"mm: fix deadlock of mremap() against UFFDIO_MOVE","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix deadlock of mremap() against UFFDIO_MOVE\n\nWith per-VMA locks, UFFDIO_MOVE can run concurrently with mremap()\non different VMAs in the same mm. Those VMAs can share page tables, so\nboth operations can acquire the same pair of page-table locks.\n\nUFFDIO_MOVE orders the locks by address, while mremap() takes the source\nlock first. These conflicting orders can deadlock; mremap() holding\nmmap_lock for writing no longer helps.\n\nMove double_pt_lock() and double_pt_unlock() to mm/internal.h and use\nthem for all page-table moves in mremap(). Preserve the source entry\nchecks after acquiring both locks. Remove the comments claiming that\nexclusive mmap_lock makes lock ordering irrelevant.\n\nIn move_ptes(), make sure to just recheck source and destination PMD\nafter taking the locks and drop the overly-long comment.\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: use new helpers consistently; simplify description and comments;\n         move_ptes() fixup ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix deadlock of mremap() against UFFDIO_MOVE\n\nWith per-VMA locks, UFFDIO_MOVE can run concurrently with mremap()\non different VMAs in the same mm. Those VMAs can share page tables, so\nboth operations can acquire the same pair of page-table locks.\n\nUFFDIO_MOVE orders the locks by address, while mremap() takes the source\nlock first. These conflicting orders can deadlock; mremap() holding\nmmap_lock for writing no longer helps.\n\nMove double_pt_lock() and double_pt_unlock() to mm/internal.h and use\nthem for all page-table moves in mremap(). Preserve the source entry\nchecks after acquiring both locks. Remove the comments claiming that\nexclusive mmap_lock makes lock ordering irrelevant.\n\nIn move_ptes(), make sure to just recheck source and destination PMD\nafter taking the locks and drop the overly-long comment.\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: use new helpers consistently; simplify description and comments;\n         move_ptes() fixup ]","source":"cvelist"}],"published":"2026-11-20T05:50:05.321Z","modified":"2026-11-23T08:18:06.213Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"867a43a34ff8a38772212045262b2c9b77807ea3","fixed":"1acdf007989ffe56af434998f0d330e8473d1b07","status":"affected"},{"type":"git","introduced":"867a43a34ff8a38772212045262b2c9b77807ea3","fixed":"3627d4eaa7f4426b979d497544ce23cb8884134b","status":"affected"},{"type":"git","introduced":"867a43a34ff8a38772212045262b2c9b77807ea3","fixed":"d03df42ddae196f20e9cfb775704e60269eb6b44","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.18.65","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/1acdf007989ffe56af434998f0d330e8473d1b07","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3627d4eaa7f4426b979d497544ce23cb8884134b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d03df42ddae196f20e9cfb775704e60269eb6b44","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99652","url":"https://www.cve.org/CVERecord?id=CVE-2026-99652","licence":"CVE Terms of Use","modified":"2026-11-23T08:05:33.570Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99652","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99652","licence":"Public domain","modified":"2026-11-23T08:18:06.213Z"}],"updatedAt":"2026-11-25T22:59:52.295Z","epss":{"score":0.00198,"percentile":0.10133,"date":"2026-12-01T12:00:22.000Z"}}