CVE-2026-100039

alpha: load the MMU context when switch_mm() switches the current task

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

alpha: load the MMU context when switch_mm() switches the current task

ev5_switch_mm() only prepares the incoming PCB. The context is installed
by PAL_swpctx, which alpha_switch_to() issues against that PCB on the way
out of the scheduler.

Direct callers reach switch_mm() without going through alpha_switch_to():
kthread_use_mm(), which borrows an mm for the current kernel thread,
sched_force_init_mm() on the CPU-hotplug teardown path, and
do_shoot_lazy_tlb(), which switches to init_mm from an IPI. None explicitly
loads the context, so the task can carry on running under whatever was
loaded before. For kthread_use_mm(), current->mm then names the borrowed
mm even though its context has not been loaded. The other two callers
change active_mm while leaving current->mm NULL.

The stale page-table root need not be swapper_pg_dir; it may belong to a
user process that ran on the CPU earlier, and the kthread's user accesses
can then read and write that process's memory wherever the stale mappings
allow. Translations taken that way can also end up tagged with the
borrowed mm's ASN: ev5_switch_mm() writes that ASN into the PCB, which the
next PAL_swpctx installs against the stale ptbr. An address the stale
tables do not map faults instead, and since do_page_fault() resolves
faults against current->mm without reloading the context, the same access
can fault again on return.

sched_force_init_mm() needs CONFIG_HOTPLUG_CPU and do_shoot_lazy_tlb()
needs CONFIG_MMU_LAZY_TLB_SHOOTDOWN. Alpha selects neither, so only
kthread_use_mm() is reachable in practice. Test the caller's identity
rather than special-casing individual callers.

The scheduler passes the incoming task, which is not current until
alpha_switch_to() runs; all three direct callers pass current. Test for
that and load the context the way activate_mm() does. All three run with
interrupts disabled across the switch, so this completes before any
shootdown can be taken and needs no asn_lock handshake.

Analysis

AI-generated

Technical impact

The vulnerability arises when the Linux kernel fails to load the proper MMU context during a switch of the current task. Instead of installing the correct page‑table root, the kernel continues to run a kernel thread under a stale page‑table that may belong to a different user process. This allows the faulting thread to read and write the other process’s memory, potentially leaking sensitive data, corrupting memory, or enabling further escalation. The weakness is an improper access control that permits kernel code to access memory not belonging to the current context, which can be mapped to the adjacent user address space.

Affected Systems

The issue affects the Linux kernel on Alpha architecture for all versions that reach the switch_mm() path without loading a proper MMU context. The exact version range is unspecified in the data, but the problem exists prior to the commit that introduces the context load in alpha_switch_to(), and applies to any kernel where kthread_use_mm() is used without explicit context activation.

Risk and Exploitability

No CVSS or EPSS score is provided and the vulnerability is not listed in CISA’s KEV catalog, so the supply‑chain risk is not formally quantified. Nevertheless, the flaw permits an attacker with the ability to spawn or influence kernel threads to read or modify the memory of arbitrary user processes, which is a high‑severity kernel privilege escalation. The likely attack vector involves manipulating kthread_use_mm() or other scheduler interfaces that bypass the context load; while exploitation is non‑trivial, the potential impact is severe.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the fix for CVE-2026-100039.
  • If an immediate kernel upgrade is unavailable, avoid creating kernel threads that use kthread_use_mm() or that borrow memory contexts without loading the MMU context.
  • If a temporary in‑kernel workaround can be applied, modify the scheduler logic to load the MMU context in switch_mm() before returning to the caller, or add a runtime check that ensures the current context is valid before each memory access on Alpha.

Generated by OpenCVE AI on November 30, 2026 at 15:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-284
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: alpha: load the MMU context when switch_mm() switches the current task ev5_switch_mm() only prepares the incoming PCB. The context is installed by PAL_swpctx, which alpha_switch_to() issues against that PCB on the way out of the scheduler. Direct callers reach switch_mm() without going through alpha_switch_to(): kthread_use_mm(), which borrows an mm for the current kernel thread, sched_force_init_mm() on the CPU-hotplug teardown path, and do_shoot_lazy_tlb(), which switches to init_mm from an IPI. None explicitly loads the context, so the task can carry on running under whatever was loaded before. For kthread_use_mm(), current->mm then names the borrowed mm even though its context has not been loaded. The other two callers change active_mm while leaving current->mm NULL. The stale page-table root need not be swapper_pg_dir; it may belong to a user process that ran on the CPU earlier, and the kthread's user accesses can then read and write that process's memory wherever the stale mappings allow. Translations taken that way can also end up tagged with the borrowed mm's ASN: ev5_switch_mm() writes that ASN into the PCB, which the next PAL_swpctx installs against the stale ptbr. An address the stale tables do not map faults instead, and since do_page_fault() resolves faults against current->mm without reloading the context, the same access can fault again on return. sched_force_init_mm() needs CONFIG_HOTPLUG_CPU and do_shoot_lazy_tlb() needs CONFIG_MMU_LAZY_TLB_SHOOTDOWN. Alpha selects neither, so only kthread_use_mm() is reachable in practice. Test the caller's identity rather than special-casing individual callers. The scheduler passes the incoming task, which is not current until alpha_switch_to() runs; all three direct callers pass current. Test for that and load the context the way activate_mm() does. All three run with interrupts disabled across the switch, so this completes before any shootdown can be taken and needs no asn_lock handshake.
Title alpha: load the MMU context when switch_mm() switches the current task
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM