CVE-2026-99667
published high CVSS 3.1 · 7.0mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux6375e95f381e3dc85065b6f74263a61522736203 to < 3f6b29ecde19cab035f59b65012bc9de9a45eccc · 6375e95f381e3dc85065b6f74263a61522736203 to < 9c766a46421509d5a2f46753be3964ae128bf938 · 6375e95f381e3dc85065b6f74263a61522736203 to < aa72cf34d90da7019591ab67533a8ece8b41da2d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp() try_collapse_pte_mapped_thp() drops the PTE lock after it has cleared the page table, and takes the PMD lock and the PTE lock to remove it. In between, MADV_DONTNEED with CONFIG_PT_RECLAIM can reclaim the page table. The pmd_same() check is supposed to handle this, but it is only done with CONFIG_SPLIT_PTE_PTLOCKS. Fix it by performing the check unconditionally. Fix generated by an LLM and sent by Josef Bacik in private. [ david: adjust description ]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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. PR: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). UI: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. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 6375e95f381e3dc85065b6f74263a61522736203 to < 3f6b29ecde19cab035f59b65012bc9de9a45eccc (affected · git)6375e95f381e3dc85065b6f74263a61522736203 to < 9c766a46421509d5a2f46753be3964ae128bf938 (affected · git)6375e95f381e3dc85065b6f74263a61522736203 to < aa72cf34d90da7019591ab67533a8ece8b41da2d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- db6bd930b37f0b02ceadd86429ce00e6cddc76c3dd3dbae0d3baef01032209fc
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record