{"api_version":"1","generated_at":"2026-11-22T20:39:58+00:00","cve":"CVE-2026-99667","urls":{"html":"https://cve.report/CVE-2026-99667","api":"https://cve.report/api/cve/CVE-2026-99667.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99667","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99667"},"summary":{"title":"mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()\n\ntry_collapse_pte_mapped_thp() drops the PTE lock after it has cleared the\npage table, and takes the PMD lock and the PTE lock to remove it.\n\nIn between, MADV_DONTNEED with CONFIG_PT_RECLAIM can reclaim the\npage table. The pmd_same() check is supposed to handle this, but it is\nonly done with CONFIG_SPLIT_PTE_PTLOCKS.\n\nFix it by performing the check unconditionally.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: adjust description ]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:01","updated_at":"2026-11-22 11:17:05"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/aa72cf34d90da7019591ab67533a8ece8b41da2d","name":"https://git.kernel.org/stable/c/aa72cf34d90da7019591ab67533a8ece8b41da2d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9c766a46421509d5a2f46753be3964ae128bf938","name":"https://git.kernel.org/stable/c/9c766a46421509d5a2f46753be3964ae128bf938","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3f6b29ecde19cab035f59b65012bc9de9a45eccc","name":"https://git.kernel.org/stable/c/3f6b29ecde19cab035f59b65012bc9de9a45eccc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99667","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99667","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6375e95f381e3dc85065b6f74263a61522736203 3f6b29ecde19cab035f59b65012bc9de9a45eccc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6375e95f381e3dc85065b6f74263a61522736203 9c766a46421509d5a2f46753be3964ae128bf938 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6375e95f381e3dc85065b6f74263a61522736203 aa72cf34d90da7019591ab67533a8ece8b41da2d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14 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":{"cve_year":"2026","cve_id":"99667","cve":"CVE-2026-99667","epss":"0.001670000","percentile":"0.059510000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/khugepaged.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3f6b29ecde19cab035f59b65012bc9de9a45eccc","status":"affected","version":"6375e95f381e3dc85065b6f74263a61522736203","versionType":"git"},{"lessThan":"9c766a46421509d5a2f46753be3964ae128bf938","status":"affected","version":"6375e95f381e3dc85065b6f74263a61522736203","versionType":"git"},{"lessThan":"aa72cf34d90da7019591ab67533a8ece8b41da2d","status":"affected","version":"6375e95f381e3dc85065b6f74263a61522736203","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/khugepaged.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.14"},{"lessThan":"6.14","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":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()\n\ntry_collapse_pte_mapped_thp() drops the PTE lock after it has cleared the\npage table, and takes the PMD lock and the PTE lock to remove it.\n\nIn between, MADV_DONTNEED with CONFIG_PT_RECLAIM can reclaim the\npage table. The pmd_same() check is supposed to handle this, but it is\nonly done with CONFIG_SPLIT_PTE_PTLOCKS.\n\nFix it by performing the check unconditionally.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: adjust description ]"}],"metrics":[{"cvssV3_1":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - try_collapse_pte_mapped_thp() is reached by the caller's madvise(MADV_COLLAPSE) through do_madvise() -> madvise_collapse() -> collapse_single_pmd(), racing that process's madvise(MADV_DONTNEED) -> madvise_dontneed_single_vma() -> zap_pte_range() -> zap_empty_pte_table(). No remote protocol message carries the PMD.\nAC:H - pmd_same() is inside if (ptl != pml) and is skipped only when both locks are &mm->page_table_lock (!CONFIG_SPLIT_PTE_PTLOCKS). That option is def_bool y for SMP && NR_CPUS>=4 (x86_64_defconfig sets SMP; arm64 SMP is def_bool y, NR_CPUS default 512). The attacker can race the two madvise calls but cannot turn split locks off; zap_empty_pte_table() also needs CONFIG_PT_RECLAIM.\nPR:L - SYSCALL_DEFINE3(madvise) -> do_madvise() handles MADV_COLLAPSE and MADV_DONTNEED with no capable() check. An unprivileged process can memfd_create() and mmap a file whose VMA passes thp_vma_allowable_order(..., TVA_FORCED_COLLAPSE, PMD_ORDER).\nUI:N - The attacker creates the mapping and issues both madvise calls from its own threads. try_collapse_pte_mapped_thp() does not wait for another user to mount, open, or fault the range.\nS:U - The bad free is in the caller's page tables and the kernel allocator of the same kernel. It does not cross a KVM/Xen guest-to-host or IOMMU boundary.\nC:H - If zap_empty_pte_table() wins the window, pmd_clear() stores a zero PMD and the skipped pmd_same() lets pmdp_collapse_flush() return it. pte_free_defer(pmd_pgtable()) then __free_pages() pfn_to_page(0), so that reserved direct-map page can be allocated and its previous contents read.\nI:H - __free_pages(pfn_to_page(0)) returns a page x86 still direct-maps (set_memory_4k(__va(0))) and reserves (memblock_reserve(0, SZ_1M), the range real-mode trampoline memory is taken from). Reallocating it writes kernel-aliased memory: a buddy use-after-free of a live kernel page.\nA:H - pte_free_now() -> pagetable_dtor_free() -> __free_pages() on reserved pfn 0 hits bad_page() when check_pages_enabled (CONFIG_DEBUG_VM) and otherwise links that still-direct-mapped page onto the buddy freelist, so later reuse crashes or corrupts the kernel."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:31.836Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3f6b29ecde19cab035f59b65012bc9de9a45eccc"},{"url":"https://git.kernel.org/stable/c/9c766a46421509d5a2f46753be3964ae128bf938"},{"url":"https://git.kernel.org/stable/c/aa72cf34d90da7019591ab67533a8ece8b41da2d"}],"title":"mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99667","datePublished":"2026-11-20T05:50:17.274Z","dateReserved":"2026-09-25T10:25:14.428Z","dateUpdated":"2026-11-22T11:09:31.836Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:01","lastModifiedDate":"2026-11-22 11:17:05","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99667","Ordinal":"1","Title":"mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped","CVE":"CVE-2026-99667","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99667","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()\n\ntry_collapse_pte_mapped_thp() drops the PTE lock after it has cleared the\npage table, and takes the PMD lock and the PTE lock to remove it.\n\nIn between, MADV_DONTNEED with CONFIG_PT_RECLAIM can reclaim the\npage table. The pmd_same() check is supposed to handle this, but it is\nonly done with CONFIG_SPLIT_PTE_PTLOCKS.\n\nFix it by performing the check unconditionally.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: adjust description ]","Type":"Description","Title":"mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped"}]}}}