{"api_version":"1","generated_at":"2026-11-20T07:30:04+00:00","cve":"CVE-2026-99703","urls":{"html":"https://cve.report/CVE-2026-99703","api":"https://cve.report/api/cve/CVE-2026-99703.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99703","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99703"},"summary":{"title":"mm/hugetlb: fix mremap deadlock when PMD sharing is possible","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: fix mremap deadlock when PMD sharing is possible\n\nmove_hugetlb_page_tables() holds the mapping's i_mmap_rwsem for\nwrite while moving hugetlb PTEs. This prevents races with truncation\nand protects huge_pmd_unshare(), but the move loop must not call\nhelpers that can acquire the same rwsem for read.\n\nhuge_pte_alloc() can do that when the destination can use PMD\nsharing: it may call huge_pmd_share(), which takes i_mmap_rwsem for\nread while searching for a shareable PMD table. Calling it while the\nmove path already holds i_mmap_rwsem for write can deadlock.\n\nAvoid that path for PMD-sized hugetlb mappings that can use PMD\nsharing. Instead of allocating or sharing the destination page table\nwhile moving, zap the source range and let the destination fault path\npopulate or share the PMD lazily.\n\nReuse the hugetlb unmap logic for the source-side zap by splitting\nthe core loop out of __unmap_hugepage_range(). The wrapper keeps the\nexisting tlb_start_vma(), tlb_end_vma() and huge_pmd_unshare_flush()\nbehavior, while move_hugetlb_page_tables() can reuse the unmap loop\nwith its existing mmu_gather.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:06","updated_at":"2026-11-20 06:18:06"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/92daa8652f88c8cfc05f4899a8408a04b02f211e","name":"https://git.kernel.org/stable/c/92daa8652f88c8cfc05f4899a8408a04b02f211e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/71568db3f9d90c373881c6d438db9afc47a1755b","name":"https://git.kernel.org/stable/c/71568db3f9d90c373881c6d438db9afc47a1755b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dd2381dabe0761b6a200a9b4f2eca280e5986faa","name":"https://git.kernel.org/stable/c/dd2381dabe0761b6a200a9b4f2eca280e5986faa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99703","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99703","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 550a7d60bd5e35a56942dba6d8a26752beb26c9f dd2381dabe0761b6a200a9b4f2eca280e5986faa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 550a7d60bd5e35a56942dba6d8a26752beb26c9f 71568db3f9d90c373881c6d438db9afc47a1755b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 550a7d60bd5e35a56942dba6d8a26752beb26c9f 92daa8652f88c8cfc05f4899a8408a04b02f211e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/hugetlb.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"dd2381dabe0761b6a200a9b4f2eca280e5986faa","status":"affected","version":"550a7d60bd5e35a56942dba6d8a26752beb26c9f","versionType":"git"},{"lessThan":"71568db3f9d90c373881c6d438db9afc47a1755b","status":"affected","version":"550a7d60bd5e35a56942dba6d8a26752beb26c9f","versionType":"git"},{"lessThan":"92daa8652f88c8cfc05f4899a8408a04b02f211e","status":"affected","version":"550a7d60bd5e35a56942dba6d8a26752beb26c9f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/hugetlb.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.16"},{"lessThan":"5.16","status":"unaffected","version":"0","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.18.64","versionStartIncluding":"5.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: fix mremap deadlock when PMD sharing is possible\n\nmove_hugetlb_page_tables() holds the mapping's i_mmap_rwsem for\nwrite while moving hugetlb PTEs. This prevents races with truncation\nand protects huge_pmd_unshare(), but the move loop must not call\nhelpers that can acquire the same rwsem for read.\n\nhuge_pte_alloc() can do that when the destination can use PMD\nsharing: it may call huge_pmd_share(), which takes i_mmap_rwsem for\nread while searching for a shareable PMD table. Calling it while the\nmove path already holds i_mmap_rwsem for write can deadlock.\n\nAvoid that path for PMD-sized hugetlb mappings that can use PMD\nsharing. Instead of allocating or sharing the destination page table\nwhile moving, zap the source range and let the destination fault path\npopulate or share the PMD lazily.\n\nReuse the hugetlb unmap logic for the source-side zap by splitting\nthe core loop out of __unmap_hugepage_range(). The wrapper keeps the\nexisting tlb_start_vma(), tlb_end_vma() and huge_pmd_unshare_flush()\nbehavior, while move_hugetlb_page_tables() can reuse the unmap loop\nwith its existing mmu_gather."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:50:44.751Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/dd2381dabe0761b6a200a9b4f2eca280e5986faa"},{"url":"https://git.kernel.org/stable/c/71568db3f9d90c373881c6d438db9afc47a1755b"},{"url":"https://git.kernel.org/stable/c/92daa8652f88c8cfc05f4899a8408a04b02f211e"}],"title":"mm/hugetlb: fix mremap deadlock when PMD sharing is possible","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99703","datePublished":"2026-11-20T05:50:44.751Z","dateReserved":"2026-09-25T10:25:14.429Z","dateUpdated":"2026-11-20T05:50:44.751Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:06","lastModifiedDate":"2026-11-20 06:18:06","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99703","Ordinal":"1","Title":"mm/hugetlb: fix mremap deadlock when PMD sharing is possible","CVE":"CVE-2026-99703","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99703","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: fix mremap deadlock when PMD sharing is possible\n\nmove_hugetlb_page_tables() holds the mapping's i_mmap_rwsem for\nwrite while moving hugetlb PTEs. This prevents races with truncation\nand protects huge_pmd_unshare(), but the move loop must not call\nhelpers that can acquire the same rwsem for read.\n\nhuge_pte_alloc() can do that when the destination can use PMD\nsharing: it may call huge_pmd_share(), which takes i_mmap_rwsem for\nread while searching for a shareable PMD table. Calling it while the\nmove path already holds i_mmap_rwsem for write can deadlock.\n\nAvoid that path for PMD-sized hugetlb mappings that can use PMD\nsharing. Instead of allocating or sharing the destination page table\nwhile moving, zap the source range and let the destination fault path\npopulate or share the PMD lazily.\n\nReuse the hugetlb unmap logic for the source-side zap by splitting\nthe core loop out of __unmap_hugepage_range(). The wrapper keeps the\nexisting tlb_start_vma(), tlb_end_vma() and huge_pmd_unshare_flush()\nbehavior, while move_hugetlb_page_tables() can reuse the unmap loop\nwith its existing mmu_gather.","Type":"Description","Title":"mm/hugetlb: fix mremap deadlock when PMD sharing is possible"}]}}}