CVE-2026-100032
published high CVSS 3.1 · 7.0alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9bd62e1fd11c6fdc2145b449f067ae73f3b8960c · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 5cb3129c30e0b6ea9700ad4911c8a4c842dc285c · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 398aee3dd326d709801c8b530c30cbe6ee7dafb9 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1ded6b545bade7167471e2b3f2d4fe0c6489cd6e · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 643c1e5912592d14de28643f0d30fdef5a85bd23 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < fe221b7b2d3ecd042dd391f74ff6a6fdeb7c2038 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms flush_tlb_mm(), flush_tlb_page() and flush_icache_user_page() skip the shootdown IPI when mm_users <= 1, on the assumption that no other CPU can be running the mm. A task that borrows an mm through kthread_use_mm() takes mmgrab() rather than mmget(), so it never appears in mm_users, and kthread_use_mm() may be handed an mm that is already the caller's active_mm 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 ipi_flush_tlb_mm(), ipi_flush_icache_page() and the migration callback ipi_flush_mm_and_page() to test current->mm, like ipi_flush_tlb_page(). A CPU that only retains the mm lazily then clears its own slot through flush_tlb_other(), 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 ev5_switch_mm(), or through the direct-load path when kthread_use_mm() switches current's mm. Once these historical slots are gone, the shortcut is available again if mm_users remains at most one and no other CPU has taken or kept a context. An explicit kthread_use_mm() borrower has current->mm set and still receives the invalidate it needs. The caller-side tests in flush_tlb_mm() and flush_icache_user_page() remain current->active_mm. 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; flush_tlb_other() already uses WRITE_ONCE(). The uniprocessor flush_icache_user_page() is left alone, as nothing reads another CPU's slot there, and init_new_context() runs before the mm is shared. Order the slot reads after the page-table changes with smp_mb(). On the publishing CPU, the store in ev5_switch_mm() precedes the mb() in Alpha's arch_spin_unlock(), when finish_lock_switch() 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 smp_mb() after publishing in __load_new_mm_context(), before loading and using the mm. This covers every caller, including check_mmu_context(), which can publish a replacement after finish_lock_switch() has already run. This requires the preceding removal of remote slot clearing from migrate_flush_tlb_page(). It also requires the stale-TLB series to set need_new_asn on both the reused and newly allocated ASN paths. Otherwise an IPI between finish_lock_switch() and check_mmu_context() can zero a new slot while asn_lock is set, and the task can return to user space with a live ASN that the shortcut cannot see.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The fix patches the mm_users <= 1 shortcut in Alpha flush_tlb_mm()/flush_tlb_page()/flush_icache_user_page(), reached when kswapd reclaims a local process's pages via try_to_unmap_one() -> flush_tlb_range() -> flush_tlb_mm(). The attacker drives this with local mmap and memory allocation, and SMP Alpha must be in use. No remote peer supplies any data. AC:H - The bug only matters when a reclaiming kthread such as kswapd runs with the attacker's mm as its lazy active_mm while the attacker's single-threaded task keeps running on another CPU, and reclaim then frees a page still in that task's TLB. sched_setaffinity() and memory pressure make this likely, but the attacker cannot choose kswapd's CPU or reclaim timing. The kthread_use_mm() case is a narrow race against mmget_not_zero(). PR:L - Any unprivileged user can mmap memory, pin a single-threaded process with sched_setaffinity() and allocate memory to wake kswapd. mm_users stays at 1, so the shortcut is taken. No capability or user namespace is needed. UI:N - The attacker's own process creates the memory pressure and then uses the stale translation. No other user mounts, opens or runs anything. S:U - The stale ASN translations and the freed pages they reach are both managed by the same kernel. This is local privilege escalation within one authority; no hypervisor or IOMMU boundary is crossed. C:H - The shortcut sets other CPUs' mm->context[cpu] to 0 and returns without calling smp_call_function(), so the CPU running the task keeps its old ASN and TLB entries. Userspace can then read whatever reuses the reclaimed physical page: page cache, slab or page tables. I:H - The stale TLB entries stay writable, so the task can write into a freed page after the allocator gives it to the kernel or another process. Overwriting a reused page-table or slab page gives arbitrary kernel write. The earlier Alpha compaction stale-TLB bug caused real heap corruption. A:H - Writes through stale translations corrupt reused kernel and user pages. This leads to oopses, panics, and SIGSEGV or heap corruption in unrelated processes, the same symptoms reported for the Alpha compaction stale-TLB fix dd5712f3379cf.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9bd62e1fd11c6fdc2145b449f067ae73f3b8960c (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 5cb3129c30e0b6ea9700ad4911c8a4c842dc285c (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 398aee3dd326d709801c8b530c30cbe6ee7dafb9 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1ded6b545bade7167471e2b3f2d4fe0c6489cd6e (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 643c1e5912592d14de28643f0d30fdef5a85bd23 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < fe221b7b2d3ecd042dd391f74ff6a6fdeb7c2038 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/1ded6b545bade7167471e2b3f2d4fe0c6489cd6e
- https://git.kernel.org/stable/c/398aee3dd326d709801c8b530c30cbe6ee7dafb9
- https://git.kernel.org/stable/c/5cb3129c30e0b6ea9700ad4911c8a4c842dc285c
- https://git.kernel.org/stable/c/643c1e5912592d14de28643f0d30fdef5a85bd23
- https://git.kernel.org/stable/c/9bd62e1fd11c6fdc2145b449f067ae73f3b8960c
- https://git.kernel.org/stable/c/fe221b7b2d3ecd042dd391f74ff6a6fdeb7c2038
Provider assertions
1Linux · cna
alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7101f613745748615bc16eba69f7b190260e7450d8956c213dd603f6507aab66
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record