alpha: fix the local TLB invalidate in flush_tlb_page()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
alpha: fix the local TLB invalidate in flush_tlb_page()
flush_tlb_page() invalidates the calling CPU itself before asking the others, and gates that on current->active_mm. For a non-executable vma that means a targeted tbi(2, addr), which acts on the context currently loaded and is only guaranteed to invalidate the intended translations when the target mm's context is the loaded one. A lazy active_mm does not establish that, so as in ipi_flush_tlb_page() the target mm's stale translations can survive, and nothing forces the old ASN to be retired afterwards.
Test current->mm instead. A lazy caller then takes the flush_tlb_other() branch added by the previous patch, retiring its local context. Adding that branch first preserves the local invalidate at every step, including on EV7 where a targeted tbi() against a foreign ASN appeared to work.
Which callers reach here with a foreign mm depends on the configuration. folio_mkclean(), from the writeback flusher kworker that has no mm of its own, accounted for about half the calls during writeback of a shared mapping and none at all on anonymous memory. Those counts were measured with CONFIG_COMPACTION=n: with COMPACTION=y, asm/pgtable.h overrides ptep_clear_flush() to call migrate_flush_tlb_page(), which rendezvouses with every CPU and handles the context itself, so folio_mkclean() does not reach this function.
| Product | Versions |
|---|---|
| Linux Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5e5d66a01e9306419a8ee6a50eae96faef7362bf Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before f41baa3acba2a7c776b01bc71292e74ef4f159a3 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 6c7a76f34009ed54c23ded11a5c6384d550808e5 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before b456f8b7c70800e8333c5891065dcb48a48e2732 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 3d6546c65188befd9ee3cf65ce7dcf08b5e08610 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before be818ec671dba143030e5924cb44a768114042ca Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8f7524673fcd6a8d854f99b9a317481c475100f1 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 32f4dd420d626f96128fcfeea2ab24760b4f21a6 Affected |
| Linux Linux | 2.6.12 Affectedbefore 2.6.12 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/5e5d66a01e9306419a8ee6a50eae96faef7362bf
- https://git.kernel.org/stable/c/f41baa3acba2a7c776b01bc71292e74ef4f159a3
- https://git.kernel.org/stable/c/6c7a76f34009ed54c23ded11a5c6384d550808e5
- https://git.kernel.org/stable/c/b456f8b7c70800e8333c5891065dcb48a48e2732
- https://git.kernel.org/stable/c/3d6546c65188befd9ee3cf65ce7dcf08b5e08610
- https://git.kernel.org/stable/c/be818ec671dba143030e5924cb44a768114042ca
- https://git.kernel.org/stable/c/8f7524673fcd6a8d854f99b9a317481c475100f1
- https://git.kernel.org/stable/c/32f4dd420d626f96128fcfeea2ab24760b4f21a6
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.