CVE-2026-99477: fs/proc/task_mmu: pin mm_users in do_pagemap_scan()

Published Nov 19, 2026
·
Updated

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

fs/proc/taskmmu: pin mmusers in dopagemapscan()

The PAGEMAPSCAN ioctl takes mmapreadlock() on an mm obtained from /proc/<pid>/pagemap without holding a reference to mmusers.

procmemopen() deliberately grabs only mmcount, so a consumer that touches the address space has to call mmgetnotzero() first. Every other consumer in this file does -- mstart(), doprocmapquery(), showsmapsrollup() and pagemapread() -- but dopagemapscan() does not.

Without that reference the target can reach exitmmap() concurrently, and exitmmap() calls unmapvmas() while holding mmaplock only for reading, which does not exclude the scanner. For ordinary VMAs this is harmless, as freepgtables() and removevma() run afterwards under mmapwritelock. A shared hugetlb VMA is different: hugetlbzapend() frees the VMA's hugetlbvmalock inside the read-locked phase.

walkhugetlbrange() can therefore load vma->vmprivatedata, have the lock freed underneath it, and then downread() a freed rwsemaphore. 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 hugetlbreservepages() allocates the lock before the VMNORESERVE early return.

Pin mmusers across the scan, the way the other consumers do. mmput() from the exiting task can then no longer reach exitmmap() while a walk is in progress.

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

Affected Software

3 affected componentsFixes available
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.61
6.18.61
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.61
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  4. Compensating control

    Pin mm_users across the PAGEMAP_SCAN scan so the target cannot reach exit_mmap() while the scan is in progress.

Event History

Nov 19, 2026
CVE Published
via MITRE·02:43 PM
Data Sourced
via MITRE·02:43 PM
Description
Data Sourced
via OSV·02:43 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203