CVE-2026-100037: alpha: only use a targeted tbi() when the target mm is really current
In the Linux kernel, the following vulnerability has been resolved:
alpha: only use a targeted tbi() when the target mm is really current
ipiflushtlbpage() gates a targeted tbi() on current->activemm. tbi() acts on the address space context currently loaded on the CPU, so it is only guaranteed to reach an mm's translations when a thread of that mm is running there. current->activemm is not sufficient: under lazy TLB an idle or kernel task keeps an mm as its activemm while a different ASN is loaded, so the invalidate is issued against the wrong context and the stale entry can survive. Nothing retires the old ASN afterwards either, mm->context[cpu] still being valid, so the resuming thread can reuse it.
Test current->mm instead and otherwise fall back to flushtlbother(), which clears mm->context[cpu] and forces a fresh ASN at the next switch whatever is loaded now.
For an mm borrowed through kthreadusemm(), patch 1 of this series installs the context before the task can take a shootdown IPI. The current->mm test therefore covers that case as well.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ipi_flush_tlb_page(), gate targeted tbi() on current->mm rather than current->active_mm; otherwise fall back to flush_tlb_other().
Event History
Frequently Asked Questions
Which systems are affected by the incorrect invalidation behavior?
The issue applies to the Linux kernel on Alpha systems. It can occur when lazy TLB handling leaves an idle or kernel task with an mm recorded as active while a different address-space number is actually loaded on that CPU.
What makes the stale translation survive after a targeted invalidation?
A targeted tbi() can be issued for the wrong loaded context, leaving the intended mm's translation intact. Because the old ASN remains valid in mm->context[cpu], a thread resuming that mm can reuse the stale entry.
Are kernel threads using kthread_use_mm() covered by the fix?
Yes, provided the borrowed mm context is installed before the task can receive a shootdown IPI. Under that condition, testing current->mm covers the kthread_use_mm() case as well.