Use-after-free in Linux kernel PAGEMAP_SCAN ioctl
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 5 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
The Linux kernel from 6.7 takes a lock on an address space in the PAGEMAP_SCAN ioctl without holding a reference that keeps it alive, which is a use-after-free. A target process can exit during a scan of a shared hugetlb mapping and free a lock that the scan then uses, so any unprivileged local user can trigger it.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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. [[email protected]: remove unneeded & undesirable test for !mm]
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade the Linux kernel to fixed versions 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1. Red Hat fixes Red Hat Enterprise Linux AppStream, BaseOS, CodeReady Linux Builder, Real Time and Real Time for NFV (v. 10) in RHSA-2026:102253. Red Hat lists no fix available for Red Hat Enterprise Linux 6 and Red Hat OpenShift Container Platform 5.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA Linux (Linux) Fixed in 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
Red Hat 1 advisory
- RHSA-2026:102253 Released 2026-11-23 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 10) kernel-64k-debug-devel-6.12.0-264.20.1.el10_3, kernel-64k-debug-devel-matched-6.12.0-264.20.1.el10_3, kernel-64k-devel-6.12.0-264.20.1.el10_3 +12
- Red Hat Enterprise Linux BaseOS (v. 10) kernel-6.12.0-264.20.1.el10_3, kernel-64k-6.12.0-264.20.1.el10_3, kernel-64k-core-6.12.0-264.20.1.el10_3 +29
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) kernel-tools-libs-devel-6.12.0-264.20.1.el10_3, libperf-6.12.0-264.20.1.el10_3
- Red Hat Enterprise Linux Real Time (v. 10) kernel-rt-6.12.0-264.20.1.el10_3, kernel-rt-64k-6.12.0-264.20.1.el10_3, kernel-rt-64k-core-6.12.0-264.20.1.el10_3 +21
- Red Hat Enterprise Linux Real Time for NFV (v. 10) kernel-rt-6.12.0-264.20.1.el10_3, kernel-rt-core-6.12.0-264.20.1.el10_3, kernel-rt-debug-6.12.0-264.20.1.el10_3 +9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:102253 |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2026:102253 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | Fixed | RHSA-2026:102253 |
| Red Hat Enterprise Linux Real Time (v. 10) | Fixed | RHSA-2026:102253 |
| Red Hat Enterprise Linux Real Time for NFV (v. 10) | Fixed | RHSA-2026:102253 |
Not affected: 5 products
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-19 Threatist record created from CVE-2026-99477
- 2026-11-19 Alias added: GHSA-fjgg-vgg4-3jpf
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-22 CVSS score added · CNA
- 2026-11-23 Fix available: RHSA-2026:102253 · Red Hat
- 2026-11-23 Fix available: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) +2 · Red Hat
References
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-99477 · CVE Program
- CVE-2026-99477 · NVD
- FIRST EPSS
- GHSA-fjgg-vgg4-3jpf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-99477 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences