{"id":"CVE-2026-99652","aliases":[],"title":"mm: fix deadlock of mremap() against UFFDIO_MOVE","originalDescription":"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 ]","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00198,"percentile":0.10122},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=867a43a34ff8a38772212045262b2c9b77807ea3, <1acdf007989ffe56af434998f0d330e8473d1b07","fixed":"1acdf007989ffe56af434998f0d330e8473d1b07"},{"ecosystem":"vendor","name":"Linux","range":">=867a43a34ff8a38772212045262b2c9b77807ea3, <3627d4eaa7f4426b979d497544ce23cb8884134b","fixed":"3627d4eaa7f4426b979d497544ce23cb8884134b"},{"ecosystem":"vendor","name":"Linux","range":">=867a43a34ff8a38772212045262b2c9b77807ea3, <d03df42ddae196f20e9cfb775704e60269eb6b44","fixed":"d03df42ddae196f20e9cfb775704e60269eb6b44"}],"references":[{"url":"https://git.kernel.org/stable/c/3627d4eaa7f4426b979d497544ce23cb8884134b","type":"other"},{"url":"https://git.kernel.org/stable/c/d03df42ddae196f20e9cfb775704e60269eb6b44","type":"other"},{"url":"https://git.kernel.org/stable/c/1acdf007989ffe56af434998f0d330e8473d1b07","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.505Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99652","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.030Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:57.717Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99652","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:13.819Z"}],"firstSeenAt":"2026-11-20T06:28:13.819Z","publishedAt":"2026-11-20T05:50:05.321Z","modifiedAt":"2026-11-23T08:18:06.213Z"}