CVE-2026-90303: ARM: 9485/1: mm: acquire mmap write lock around show_pte() for user faults
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ARM: 9485/1: mm: acquire mmap write lock around show_pte() for user faults
When CONFIG_DEBUG_USER=y, and cmdline "user_debug=31" is set, a user fault may trigger show_pte() without any lock.
If another thread in the same process concurrently calls munmap(), the page table pages may be freed while show_pte() is still traversing them, causing a use-after-free in show_pte().
If CONFIG_ARM_LPAE=y, this may cause a kernel panic if the pages table of PMD are freed when show_pte() is running.
Acquire mmap_write_lock() around show_pte() for user faults to fix the contention.
For user faults, additionally restrict that show_pte() is called only when the addr is a user-space address (addr < TASK_SIZE). This is because the lock of tsk->mm only protects the virtual memory of user address space, furthermore, dumping the page tables of a kernel-space address for user faults is unnecessary and may have security implications.
Keep everything unchanged for kernel faults, because the kernel is already in the "oops" state, acquiring a lock may risk a deadlock.
The Linux kernel CVE team has assigned CVE-2026-90303 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 5.10.270 with commit ab14f07952adfe735d86a53518f8cd576dfd5892 Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 5.15.221 with commit 07e4d5380f2a844ab7a1b440dde350caf561cbb0 Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 6.1.188 with commit 2a14d7797a49a47bccd1a9327fd69da838dcb0dd Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 6.6.157 with commit 63e3c958a602d0896a101a897c2361878c266ca7 Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 6.12.110 with commit 59bbf86d0ff9373bfa033ca123c1e924f09f1eba Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 6.18.52 with commit c71f9a56520b419e55d173052629f2324deb5549 Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 7.2.6 with commit 720408d98d9fb3c91a12090436734c8c61f04545 Issue introduced in 4.0 with commit 6d021b724481fbb908eb29384898deb9f00dfe70 and fixed in 7.3-rc1 with commit 1039bffd6ae9c75b42b7d148d6c1106134107b66
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90303
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/arm/mm/fault.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/ab14f07952adfe735d86a53518f8cd576dfd5892 https://git.kernel.org/stable/c/07e4d5380f2a844ab7a1b440dde350caf561cbb0 https://git.kernel.org/stable/c/2a14d7797a49a47bccd1a9327fd69da838dcb0dd https://git.kernel.org/stable/c/63e3c958a602d0896a101a897c2361878c266ca7 https://git.kernel.org/stable/c/59bbf86d0ff9373bfa033ca123c1e924f09f1eba https://git.kernel.org/stable/c/c71f9a56520b419e55d173052629f2324deb5549 https://git.kernel.org/stable/c/720408d98d9fb3c91a12090436734c8c61f04545 https://git.kernel.org/stable/c/1039bffd6ae9c75b42b7d148d6c1106134107b66