mm/vmalloc: acquire init_mm lock on huge vmap to avoid ptdump UAF
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Partial Red Hat: 4 without a fix
No CVSS vector from any source. Fix status from CNA and Red Hat.
Summary
In the Linux kernel, the following vulnerability has been resolved: mm/vmalloc: acquire init_mm lock on huge vmap to avoid ptdump UAF Patch series "mm: fix UAF caused by race between ptdump and vmap pgtable freeing", v6. Kernel page table walkers fall into two broad categories - those ranges where no exclusion is required via walk_kernel_page_table_range_lockless() and those where exclusion is required via walk_kernel_page_table_range() or walk_page_range_debug(). The former category is used only by arm64 arch code operating on ranges it both wholly owns and does not concurrently write. The latter category consists of kernel page table walkers operating on ranges that are wholly owned (but which need exclusion against concurrent writers). The lock used for exclusion is the mmap lock, and for kernel ranges this is the mmap lock on init_mm. ptdump is a special case being both the only user of walk_page_range_debug(), and the only case in which it walks ranges it does not own. This presents a problem, as page tables may be freed under ptdump. And indeed there is a use-after-free bug in the kernel as a result, which this series addresses. vmap promotes page tables to huge leaf entries where possible, freeing the lower page table when it does. It does this with no meaningful locks held against concurrent ptdump walks. As a result, use-after-free can currently occur. This series addresses the issue by having the vmap huge promotion logic acquire the mmap read lock while both setting the huge page table entry and freeing the prior leaf page table. The ptdump code already acquires the mmap write lock, so by doing so we ensure that the ptdump walker only ever observes either the huge page table entry or the existing page table entry, and nothing is freed underneath it. A mitigation for this issue was already applied for arm64 in commit fa93b45fd397 ("arm64: Enable vmalloc-huge with ptdump"), which this series has to deal with carefully. This mitigation resolves the issue by acquiring the mmap read lock on init_mm on vmap page table free if a ptdump is in progress. However the fix in this series would cause a deadlock if we were to simply apply it for arm64 without also reverting the change. This is because vmap may acquire the read lock before ptdump attempts to acquire the write lock, which then gets queued, and rwsem starvation rules mean that the (unacknowledged) nested mmap read lock in the arm64 code would also block, meaning the original read lock is never released and thus deadlock. This series works around this by #ifndef CONFIG_ARM64'ing the mmap read lock in vmap logic, then partially reverting commit fa93b45fd397 ("arm64: Enable vmalloc-huge with ptdump"), keeping the enablement of huge vmap support, and removing the ifdeffery with the partial revert patch. There are related issues that are also addressed in this series: * x86 page attribute logic, specifically Change Page Attributes (CPA), implements a feature whereby huge ranges can be collapsed into huge leaf entries. This can similarly cause a UAF when done in parallel with a ptdump walk, so similarly acquire the init_mm mmap lock to avoid this. * The CPA logic allows concurrent page table manipulation and CPA collapse, meaning the former risks accessing a page table the latter frees. Fix this by acquiring mmap write lock on init_mm across the whole CPA collapse operation and read lock on the page table manipulation. * x86 and arm64 permit walks of non-kernel mm's (both allowing efi mm walks, and in x86's case arbitrary mm's), so we ensure kernel mappings remain stable by locking the init_mm as well as the mm being walked. The ordering of patches is established for both strict dependencies (the arm64 partial revert in particular has to be done after the vmap changes) and logical ones (the non-kernel mm fix only makes sense once the vmap/CPA fixes are in place). This patch (of 3): Currently there is a nasty ra ---truncated---
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.4.125 to before 4.5; 4.9.91 to before 4.10; 4.14.31 to before 4.15; 4.15.14 to before 4.16 | 4.5, 4.10, 4.15, 4.16 | Patch available | CNA |
| Linux | Linux | 4.16 and later | 5.10.273, 5.15.224, 6.1.184, 6.6.153, 6.12.105, 6.18.45, 7.1.9, 7.2 | Patch available | CNA |
- Linux VendorLinux Affected 4.4.125 to before 4.5; 4.9.91 to before 4.10; 4.14.31 to before 4.15; 4.15.14 to before 4.16 Fixed in 4.5, 4.10, 4.15, 4.16 Patch available CNA
- Linux VendorLinux Affected 4.16 and later Fixed in 5.10.273, 5.15.224, 6.1.184, 6.6.153, 6.12.105, 6.18.45, 7.1.9, 7.2 Patch available CNA
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.5, 4.10, 4.15, 4.16
- Fix · CNA Linux (Linux) Fixed in 5.10.273, 5.15.224, 6.1.184, 6.6.153, 6.12.105, 6.18.45, 7.1.9, 7.2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-02 Threatist record created from CVE-2026-74672
- 2026-10-03 Alias added: GHSA-h3pq-52v7-99m6
- 2026-10-26 Affected versions changed · Red Hat
- 2026-10-26 CVSS score changed · Red Hat
- 2026-10-30 Fix available: Linux/[email protected], Linux/[email protected], Linux/Linux@51eaba47b3dc258d1182fc3a88da544ed6b6bb2d +1 · CNA
- 2026-10-30 2 new references · CNA
- 2026-11-06 CISA SSVC decision points changed
References
Other 8
- https://git.kernel.org/stable/c/51eaba47b3dc258d1182fc3a88da544ed6b6bb2d
- https://git.kernel.org/stable/c/e85ed734611616d4a9d8a240bde563dd6ac7452f
- https://git.kernel.org/stable/c/39c6772b56a6bbdd62794833f74232971d94d7c9
- https://git.kernel.org/stable/c/8d7f560f4b0482d469de962fbe4b59c37561052e
- https://git.kernel.org/stable/c/7ac8a333dd41ba5e1b4e8c6edbc48b15446c5468
- https://git.kernel.org/stable/c/c5bf8cd148cfea948cfa3db71da427294b20db0f
- https://git.kernel.org/stable/c/3cc26c8907db0f5d1ff8043b5851ee572e9b3c98
- https://git.kernel.org/stable/c/26444eb71465c9934d9d418ef69c43f61185329b
More Linux vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Incorrect authorization in Ubuntu linux kernel KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-74672 · CVE Program
- CVE-2026-74672 · NVD
- FIRST EPSS
- GHSA-h3pq-52v7-99m6 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-74672 · 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