CVE-2026-99580
published high CVSS 3.1 · 7.8mm/userfaultfd: only allocate anon_vma in CoW mappings
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux867a43a34ff8a38772212045262b2c9b77807ea3 to < a90e7044b34f801fbafcb682e8ee827a6db26002 · 867a43a34ff8a38772212045262b2c9b77807ea3 to < 3bf446c8ce64938f86439906d730a2cd5c0b31e2 · 867a43a34ff8a38772212045262b2c9b77807ea3 to < 20704188d669ed74a624fd67dfa4711bcb1087b6 · 867a43a34ff8a38772212045262b2c9b77807ea3 to < 514c9247db305922591d806ec65d3c3fe420538d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc1 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; Pending Fix | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| AlmaLinux | 10 | kernel-64k | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 10 | kernel-64k-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-debug | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-debug-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-debug-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-debug-devel-matched | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-debug-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-debug-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-debug-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-devel-matched | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-64k-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-cross-headers | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug-devel-matched | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-debug-uki-virt | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-devel-matched | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-headers | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-modules-extra-matched | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-debug | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-debug-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-debug-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-64k-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-debug | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-debug-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-debug-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-debug-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-debug-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-debug-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-rt-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-tools | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-tools-libs | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-tools-libs-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-uki-virt | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-uki-virt-addons | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-zfcpdump | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-zfcpdump-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-zfcpdump-devel | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-zfcpdump-devel-matched | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-zfcpdump-modules | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-core | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-extra | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | libperf | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | perf | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | python3-perf | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | rtla | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| AlmaLinux | 10 | rv | Advisory build | 6.12.0-264.20.1.el10_3 | ALSA-2026:102253 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-toolsaarch64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
| Oracle Linux | 10 | kernel-toolsx86_64 | Advisory build | 0:6.12.0-264.20.1.el10_3 | ELSA-2026-102253 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: mm/userfaultfd: only allocate anon_vma in CoW mappings find_vma_and_prepare_anon() can end up allocating an anon_vma in VMAs that are not CoW mappings, which is wrong. If we have a MAP_SHARED R/O file mapped, we lack VM_SHARED (but do have VM_MAYSHARE) and lack VM_MAYWRITE. While uffd later rejects such mappings (uffd registration requires VM_MAYWRITE, see comment in validate_dst_vma) find_vma_and_prepare_anon() still wrongly allocates an anon vma before it validates the vma. This in turn later confuses copy_page_range()->vma_needs_copy() such that we end up calling copy_hugetlb_page_range() with ranges that actually do not contain *any* per-pagetable information that would require copying, which is the basis for PMD-table sharing in the first place. copy_hugetlb_page_range() should not have to worry about shared PMD tables at all: it doesn't make any sense to copy page tables that are shared, as they can be fully recreated later. Ending up in the function with shareable page tables is the real issue. If a destination PMD table is shared in copy_hugetlb_page_range(), it might get concurrently unshared as we are not holding relevant locks, resulting in us using a page table that is no longer mapped and possibly freed after calling: dst_pte = huge_pte_alloc(dst, dst_vma, addr, sz); To fix it, do not allocate an anon_vma in non-CoW mappings and add a safety guard to copy_hugetlb_page_range(), making sure that we never end up messing with shared PMD tables in there. Before commit 867a43a34ff8a ("userfaultfd: use per-vma locks in userfaultfd operations") we would always validate the VMA before allocating an anon_vma, and consequently never wrongly allocate an anon_vma. As uffd_lock_vma() is part of the same lookup machinery and also contains a misleading VM_SHARED check, change that one as well directly for consistency. A follow-up cleanup will stop taking the hugetlb_vma_lock_read(src_vma) lock in copy_hugetlb_page_range() entirely. Further, the usage of VM_SHARED in userfaultfd code should be cleaned up later to focus on CoW vs. non-CoW mappings.
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.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - UFFDIO_ZEROPAGE reaches find_vma_and_prepare_anon() through userfaultfd_ioctl(), userfaultfd_zeropage(), mfill_atomic(), and uffd_mfill_lock() on the caller's mm. mmap() of an O_RDONLY hugetlb file clears VM_SHARED and VM_MAYWRITE in mm/mmap.c while leaving VM_MAYSHARE; no received packet supplies that VMA. AC:L - The attacker reopens the hugetlb fd O_RDONLY, faults a PUD-spanning MAP_SHARED|MAP_NORESERVE VMA so huge_pmd_share() can attach a PMD, then races fork() with another of their processes' munmap(). dup_mmap() holds the forking mm's mmap_lock and hugetlb_vma_lock_read(src_vma); the other process's huge_pmd_unshare() takes the inode i_mmap write lock, which huge_pmd_share() has already dropped. PR:L - find_vma_and_prepare_anon() calls anon_vma_prepare() before validate_dst_vma() sees that the VMA has no uffd context. userfaultfd_syscall_allowed() accepts UFFD_USER_MODE_ONLY with no CAP_SYS_PTRACE, and hugetlb_file_setup(HUGETLB_ANONHUGE_INODE) does not call can_do_hugetlb_shm(). UI:N - The attacker mmaps its own O_RDONLY hugetlb VMA, calls UFFDIO_ZEROPAGE so anon_vma_prepare() runs before validate_dst_vma() rejects it, then forks while its other process unmaps the sharer. No other user mounts or opens the file. S:U - set_huge_pte_at() in copy_hugetlb_page_range() corrupts a page-table page in the forking host's kernel. The result stays in that kernel security authority. C:H - vma_needs_copy() follows the stray anon_vma into copy_hugetlb_page_range(). After huge_pmd_unshare() pud_clears the shared PMD, the last mapper's free_pmd_range() frees it via pmd_free_tlb() and ___pmd_free_tlb(), and the copy still reads ptdesc->pt_share_count and huge_ptep_get(dst_pte) on the reused page. I:H - huge_pte_lock() takes the split PMD ptl inside that freed page, and set_huge_pte_at() stores the source huge PTE through the same dst_pte. Reclaiming the page as a page table or a slab object turns those stores into a kernel write. A:H - huge_pte_lock() and set_huge_pte_at() run after ___pmd_free_tlb() has returned the PMD page to the allocator. Locking a reused spinlock or writing a recycled page table oopses or hangs the kernel, and the attacker can repeat the fork against a new sharer.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 867a43a34ff8a38772212045262b2c9b77807ea3 to < a90e7044b34f801fbafcb682e8ee827a6db26002 (affected · git)867a43a34ff8a38772212045262b2c9b77807ea3 to < 3bf446c8ce64938f86439906d730a2cd5c0b31e2 (affected · git)867a43a34ff8a38772212045262b2c9b77807ea3 to < 20704188d669ed74a624fd67dfa4711bcb1087b6 (affected · git)867a43a34ff8a38772212045262b2c9b77807ea3 to < 514c9247db305922591d806ec65d3c3fe420538d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
mm/userfaultfd: only allocate anon_vma in CoW mappings
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5f82e555b357ac37935a430506e90f88e0c4687ff650ac48966e9f90c096aad
- Ingested
- 23 Nov 2026, 14:37:12 UTC
- Source record
- Official CVE record