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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-19 · Modified: 2026-11-22
- Aliases: DEBIAN-CVE-2026-99477, UBUNTU-CVE-2026-99477, CGA-296g-9rhj-64cc, CGA-7362-h39g-f94p, CGA-7mrp-x7ph-6v89, CGA-cjg7-mcp7-8px6, CGA-cxvc-x2c4-2jr9, CGA-h57r-ww8c-jcv4, CGA-hvgr-wqp8-5q37, CGA-m6wg-w8pm-xm27, CGA-m9f3-cfv4-88w2, CGA-qmq5-84vv-qf43, CGA-wp77-59fp-42vj, CGA-6m68-3p7m-6rrx, CGA-8qg5-3682-rp6v, CGA-9f8w-pprj-6ffh, CGA-fp3x-xcq3-x82h, CGA-mmr3-x3qx-x7wv, CGA-wq2f-4jfx-xmq6, CGA-xxfr-q5j6-g88f, CGA-7x7q-653x-4fv4
- Record: https://cvemate.com/vulnerability/CVE-2026-99477 · JSON: https://cvemate.com/vulnerability/CVE-2026-99477/json

## Description

```text
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]
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.225%, percentile 14.03%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 155)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): \< 6.12.117-1 \| \< 7.3.3-1
- debian linux-6.12 (Debian): \< 6.12.117-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/6e2299a9356de3364e193d6eaf123b90d7698c1d>
- <https://git.kernel.org/stable/c/abc9c0f4f850d23e55f4230cd0f54938a64267bf>
- <https://git.kernel.org/stable/c/14a853bf3e6f0dd62ff479a36613411237dec24c>
- <https://git.kernel.org/stable/c/4fb975471717c953f912776bb60301add1ffae11>
- <https://security-tracker.debian.org/tracker/CVE-2026-99477>
- <https://ubuntu.com/security/CVE-2026-99477>
- <https://www.cve.org/CVERecord?id=CVE-2026-99477>
- <https://git.kernel.org/linus/4fb975471717c953f912776bb60301add1ffae11>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99477.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-99477>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>

---

Data as of 2026-12-05T03:57:21.537Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
