# CVE-2026-99477: fs/proc/task\_mmu: pin mm\_users in do\_pagemap\_scan()

- **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-19T14:43:11.195Z
- **Modified:** 2026-11-22T11:16:53.720Z

## Who should check

- Anyone running Linux \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 6e2299a9356de3364e193d6eaf123b90d7698c1d; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< abc9c0f4f850d23e55f4230cd0f54938a64267bf; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 14a853bf3e6f0dd62ff479a36613411237dec24c; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 4fb975471717c953f912776bb60301add1ffae11
- Anyone running Linux 6.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

fs/proc/task\_mmu: pin mm\_users in do\_pagemap\_scan()

The PAGEMAP\_SCAN ioctl takes mmap\_read\_lock() on an mm obtained from
/proc/\<pid\>/pagemap without holding a reference to mm\_users.

proc\_mem\_open() deliberately grabs only mm\_count, so a consumer that
touches the address space has to call mmget\_not\_zero() first.  Every other
consumer in this file does -- m\_start(), do\_procmap\_query(),
show\_smaps\_rollup() and pagemap\_read() -- but do\_pagemap\_scan() does not.

Without that reference the target can reach exit\_mmap() concurrently, and
exit\_mmap() calls unmap\_vmas() while holding mmap\_lock only for reading,
which does not exclude the scanner.  For ordinary VMAs this is harmless,
as free\_pgtables() and remove\_vma() run afterwards under mmap\_write\_lock. 
A shared hugetlb VMA is different: \_\_hugetlb\_zap\_end() frees the VMA's
hugetlb\_vma\_lock inside the read-locked phase.

walk\_hugetlb\_range() can therefore load vma-\>vm\_private\_data, have the
lock freed underneath it, and then down\_read() a freed rw\_semaphore.  The
load happens before the freeing side clears the pointer, so this is a
use-after-free and not a NULL dereference.  Any unprivileged user can
reach it with no huge pages configured, as hugetlb\_reserve\_pages()
allocates the lock before the VM\_NORESERVE early return.

Pin mm\_users across the scan, the way the other consumers do.  mmput()
from the exiting task can then no longer reach exit\_mmap() while a walk is
in progress.

\[akpm@linux-foundation.org: remove unneeded & undesirable test for !mm\]

## Affected and fixed versions

- Linux: \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 6e2299a9356de3364e193d6eaf123b90d7698c1d; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< abc9c0f4f850d23e55f4230cd0f54938a64267bf; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 14a853bf3e6f0dd62ff479a36613411237dec24c; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 4fb975471717c953f912776bb60301add1ffae11 (cvelist)
- Linux: 6.7 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 4fb975471717c953f912776bb60301add1ffae11 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-99477. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99477.md
Affected: Linux >= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < 6e2299a9356de3364e193d6eaf123b90d7698c1d; >= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < abc9c0f4f850d23e55f4230cd0f54938a64267bf; >= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < 14a853bf3e6f0dd62ff479a36613411237dec24c; >= 52526ca7fdb905a768a93f8…
Fixed in: Linux 6e2299a9356de3364e193d6eaf123b90d7698c1d, Linux 14a853bf3e6f0dd62ff479a36613411237dec24c, Linux 4fb975471717c953f912776bb60301add1ffae11

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-99477 being exploited?

There is no confirmed exploitation: CVE-2026-99477 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-99477?

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

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

Linux \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 6e2299a9356de3364e193d6eaf123b90d7698c1d; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< abc9c0f4f850d23e55f4230cd0f54938a64267bf; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 14a853bf3e6f0dd62ff479a36613411237dec24c; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 4fb975471717c953f912776bb60301add1ffae11; Linux 6.7.

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

Yes. Fixed in Linux 6e2299a9356de3364e193d6eaf123b90d7698c1d, Linux 14a853bf3e6f0dd62ff479a36613411237dec24c, Linux 4fb975471717c953f912776bb60301add1ffae11. Upgrade Linux to 4fb975471717c953f912776bb60301add1ffae11 or later.

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

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/6e2299a9356de3364e193d6eaf123b90d7698c1d>
- other: <https://git.kernel.org/stable/c/abc9c0f4f850d23e55f4230cd0f54938a64267bf>
- other: <https://git.kernel.org/stable/c/14a853bf3e6f0dd62ff479a36613411237dec24c>
- other: <https://git.kernel.org/stable/c/4fb975471717c953f912776bb60301add1ffae11>

## 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-99477>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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