# CVE-2026-99580: mm/userfaultfd: only allocate anon\_vma in CoW mappings

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-28)
- **Published:** 2026-11-20T05:49:12.114Z
- **Modified:** 2026-11-22T11:16:57.283Z

## Who should check

- Anyone running Linux \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< a90e7044b34f801fbafcb682e8ee827a6db26002; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 3bf446c8ce64938f86439906d730a2cd5c0b31e2; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 20704188d669ed74a624fd67dfa4711bcb1087b6; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 514c9247db305922591d806ec65d3c3fe420538d
- Anyone running Linux 6.9

## 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.

## Affected and fixed versions

- Linux: \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< a90e7044b34f801fbafcb682e8ee827a6db26002; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 3bf446c8ce64938f86439906d730a2cd5c0b31e2; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 20704188d669ed74a624fd67dfa4711bcb1087b6; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 514c9247db305922591d806ec65d3c3fe420538d (cvelist)
- Linux: 6.9 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 514c9247db305922591d806ec65d3c3fe420538d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99580. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99580.md
Affected: Linux >= 867a43a34ff8a38772212045262b2c9b77807ea3, < a90e7044b34f801fbafcb682e8ee827a6db26002; >= 867a43a34ff8a38772212045262b2c9b77807ea3, < 3bf446c8ce64938f86439906d730a2cd5c0b31e2; >= 867a43a34ff8a38772212045262b2c9b77807ea3, < 20704188d669ed74a624fd67dfa4711bcb1087b6; >= 867a43a34ff8a3877221204…
Fixed in: Linux 3bf446c8ce64938f86439906d730a2cd5c0b31e2, Linux 20704188d669ed74a624fd67dfa4711bcb1087b6, Linux 514c9247db305922591d806ec65d3c3fe420538d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99580 being exploited?

There is no confirmed exploitation: CVE-2026-99580 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99580?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99580?

Linux \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< a90e7044b34f801fbafcb682e8ee827a6db26002; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 3bf446c8ce64938f86439906d730a2cd5c0b31e2; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 20704188d669ed74a624fd67dfa4711bcb1087b6; \>= 867a43a34ff8a38772212045262b2c9b77807ea3, \< 514c9247db305922591d806ec65d3c3fe420538d; Linux 6.9.

### Is there a fix for CVE-2026-99580?

Yes. Fixed in Linux 3bf446c8ce64938f86439906d730a2cd5c0b31e2, Linux 20704188d669ed74a624fd67dfa4711bcb1087b6, Linux 514c9247db305922591d806ec65d3c3fe420538d. Upgrade Linux to 514c9247db305922591d806ec65d3c3fe420538d or later.

### How do I check if I'm affected by CVE-2026-99580?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/a90e7044b34f801fbafcb682e8ee827a6db26002>
- other: <https://git.kernel.org/stable/c/3bf446c8ce64938f86439906d730a2cd5c0b31e2>
- other: <https://git.kernel.org/stable/c/20704188d669ed74a624fd67dfa4711bcb1087b6>
- other: <https://git.kernel.org/stable/c/514c9247db305922591d806ec65d3c3fe420538d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99580>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99580> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99580>
