CVE-2026-105417: Memory domain partition removal does not revoke user-thread access on ARMv8-R AArch64 MPU
On ARMv8-R AArch64 (Cortex-R) targets using the MPU, archmemdomainpartitionremove() in arch/arm64/core/cortexr/armmpu.c ignored its partitionid argument and rebuilt every member thread's MPU context by rescanning the whole domain. The generic kernel code in kmemdomainremovepartition() only marks the partition free (partitions[pidx].size = 0) after this arch hook returns, so the rescan found the partition still present and programmed it straight back into each thread's cached region set (thread->arch.regions).
Because context switches on this architecture replay the cached regions rather than recomputing them, a user-mode thread kept its read/write (or other granted) access to a partition after the kernel had revoked it, until some later reconfiguration of that same thread. An untrusted or compromised user thread can therefore keep accessing memory that supervisor code believes it has withdrawn, for example a buffer that is handed to another memory domain or reused after the revocation.
The impact is limited to the address range of the removed partition and requires an application that uses CONFIGUSERSPACE and removes memory domain partitions at runtime while member threads remain active. The same commit also fixes a counting error in configuredynamicmpuregions() that caused partitions after a free slot to be left unmapped; that defect fails closed (spurious faults) and does not grant access.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
The issue is limited to ARMv8-R AArch64 Cortex-R targets that use the MPU, enable CONFIG_USERSPACE, and remove memory-domain partitions at runtime while affected user threads are members of the domain. Deployments that do not remove partitions dynamically are not described as affected.
What does an attacker need to exploit this?
An untrusted or compromised user-mode thread must already have been granted access to a partition that is subsequently removed from its memory domain. It can then continue accessing the removed partition's address range until a later reconfiguration of that thread updates its cached MPU regions.
What should be done if the fix cannot be applied immediately?
Do not treat runtime removal of a memory-domain partition as an effective access revocation for affected user threads. Avoid handing the removed memory to another domain or reusing it while the former thread may retain cached access, and avoid dynamic partition removal where possible.
How can I determine whether revocation has failed?
After removing a partition from a domain, test whether an existing member user thread can still read from or write to the removed partition's address range. On affected systems, its cached thread MPU region set can preserve that access until the thread is later reconfigured.