CVE-2026-105417

Memory domain partition removal does not revoke user-thread access on ARMv8-R AArch64 MPU

Published Dec 1, 2026 CVSS 3.1 · 4.4 Medium EPSS n/a KEV · Not listed
Description
On ARMv8-R AArch64 (Cortex-R) targets using the MPU, arch_mem_domain_partition_remove() in arch/arm64/core/cortex_r/arm_mpu.c ignored its partition_id argument and rebuilt every member thread's MPU context by rescanning the whole domain. The generic kernel code in k_mem_domain_remove_partition() only marks the partition free (partitions[p_idx].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 CONFIG_USERSPACE and removes memory domain partitions at runtime while member threads remain active. The same commit also fixes a counting error in configure_dynamic_mpu_regions() that caused partitions after a free slot to be left unmapped; that defect fails closed (spurious faults) and does not grant access.

Analysis

AI-generated

Technical impact

The bug in Zephyr’s ARMv8-R AArch64 MPU handling causes the function that removes a memory domain partition to ignore the requested partition ID and rebuild the MPU context of every member thread. Because the generic kernel code only marks the partition free after the architectural hook returns, the rescanned MPU context still contains the partition and programs it back into each thread’s region set. Consequently, a user‑mode thread can continue to read or write memory that the kernel has revoked, enabling unauthorized access to data that should have been protected.

Affected Systems

Zephyr RTOS running on ARMv8‑R (Cortex‑R) processors that use the Memory Protection Unit. The issue exists in kernel versions that contain the buggy arch_mem_domain_partition_remove implementation and are deployed with CONFIG_USERSPACE enabled.

Risk and Exploitability

With a CVSS score of 4.4, the severity is moderate. The exploitability is limited; an attacker must inject code or manipulate a user‑mode thread in an application that removes memory domain partitions while threads remain active. No remote exploitation path is documented, and the vulnerability is not listed in CISA’s KEV catalog. The EPSS score is not available, so the likelihood of widespread exploitation is currently unclear, but the potential for privilege escalation in trusted applications remains. Early assessment and patching are recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Zephyr patch from commit 9d2c7166392b17b6df767b746c2254d6b708417c or upgrade to a release that includes this fix, correcting the MPU context rebuild after partition removal.
  • If a patch cannot be applied immediately, avoid removing memory domain partitions while user‑mode threads are active; stop or migrate those threads first or schedule the removal during a system idle period.
  • After any partition removal, verify that each affected thread’s MPU context no longer contains references to the revoked partition by inspecting the thread architecture region tables and consider enabling runtime MPU assertions or diagnostics to detect stale region entries.

Generated by OpenCVE AI on December 1, 2026 at 21:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Zephyrproject
Zephyrproject zephyr
Vendors & Products Zephyrproject
Zephyrproject zephyr
Type Values Removed Values Added
Description On ARMv8-R AArch64 (Cortex-R) targets using the MPU, arch_mem_domain_partition_remove() in arch/arm64/core/cortex_r/arm_mpu.c ignored its partition_id argument and rebuilt every member thread's MPU context by rescanning the whole domain. The generic kernel code in k_mem_domain_remove_partition() only marks the partition free (partitions[p_idx].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 CONFIG_USERSPACE and removes memory domain partitions at runtime while member threads remain active. The same commit also fixes a counting error in configure_dynamic_mpu_regions() that caused partitions after a free slot to be left unmapped; that defect fails closed (spurious faults) and does not grant access.
Title Memory domain partition removal does not revoke user-thread access on ARMv8-R AArch64 MPU
Weaknesses CWE-284
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
zephyr
Published
Updated
Dec 1, 2026, 2:23 PM
Reserved
Oct 5, 2026, 11:28 AM
Status
Awaiting Analysis
Published
Dec 1, 2026, 3:17 PM
Modified
Dec 1, 2026, 3:17 PM