CVE-2026-100032: alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms

flushtlbmm(), flushtlbpage() and flushicacheuserpage() skip the shootdown IPI when mmusers <= 1, on the assumption that no other CPU can be running the mm. A task that borrows an mm through kthreadusemm() takes mmgrab() rather than mmget(), so it never appears in mmusers, and kthreadusemm() may be handed an mm that is already the caller's activemm and loaded on that CPU. Such a CPU was not only left without an IPI, its mm->context[cpu] was cleared from under it.

mm->context[cpu] is already the record of which CPUs hold an ASN for the mm. Test it rather than clearing it: take the shortcut only when no other CPU has one, and otherwise fall through to the IPI, which invalidates those CPUs properly. A CPU that merely ran the mm in the past also holds a context and now costs an IPI, which errs in the safe direction.

Change ipiflushtlbmm(), ipiflushicachepage() and the migration callback ipiflushmmandpage() to test current->mm, like ipiflushtlbpage(). A CPU that only retains the mm lazily then clears its own slot through flushtlbother(), rather than publishing a new ASN on every IPI or migration rendezvous. The migration callback still does its per-VA tbi() afterwards. Returning to the mm allocates a fresh ASN through ev5switchmm(), or through the direct-load path when kthreadusemm() switches current's mm.

Once these historical slots are gone, the shortcut is available again if mmusers remains at most one and no other CPU has taken or kept a context. An explicit kthreadusemm() borrower has current->mm set and still receives the invalidate it needs.

The caller-side tests in flushtlbmm() and flushicacheuserpage() remain current->activemm. A kernel thread that flushes its lazily held mm can therefore publish its own context slot. Those branches also perform the shortcut check, which excludes the calling CPU's slot, so leave them unchanged. This is distinct from a remote lazy CPU keeping its slot populated through repeated callbacks.

Together with the preceding patch, dropping these clearing loops leaves every runtime write to mm->context[] targeting the writing CPU's own slot, so the array becomes a lockless publication of which CPUs may be using the mm, with a single writer per slot. Mark the two stores that are now observed from other CPUs; flushtlbother() already uses WRITEONCE(). The uniprocessor flushicacheuserpage() is left alone, as nothing reads another CPU's slot there, and initnewcontext() runs before the mm is shared.

Order the slot reads after the page-table changes with smpmb(). On the publishing CPU, the store in ev5switchmm() precedes the mb() in Alpha's archspinunlock(), when finishlockswitch() drops the rq lock. This relies on Alpha's unlock implementation, not a generic scheduler promise of a full barrier on unlock; document that reliance at the store. Also issue smpmb() after publishing in loadnewmmcontext(), before loading and using the mm.

This covers every caller, including checkmmucontext(), which can publish a replacement after finishlockswitch() has already run.

This requires the preceding removal of remote slot clearing from migrateflushtlbpage(). It also requires the stale-TLB series to set neednewasn on both the reused and newly allocated ASN paths. Otherwise an IPI between finishlockswitch() and checkmmucontext() can zero a new slot while asnlock is set, and the task can return to user space with a live ASN that the shortcut cannot see.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203