Description
In the Linux kernel, the following vulnerability has been resolved: alpha: invalidate the local context in flush_tlb_mm() flush_tlb_mm() has the same caller-CPU omission that was fixed in flush_tlb_page(): when the target mm is not the calling CPU's active_mm nothing happens locally, and smp_call_function() handles only the other CPUs, so this CPU may later reuse the old ASN together with the translations it still holds. The active_mm test itself is left alone here. That path calls flush_tlb_current(), which loads a fresh context through __load_new_mm_context() rather than issuing a targeted tbi() against whatever ASN happens to be loaded, so it does not depend on which context is current. The uniprocessor implementation in asm/tlbflush.h already has the missing branch. Counted over a fork-heavy run, flush_tlb_mm() was entered with the mm not this CPU's active_mm 2934 times, and 632 times while otherwise idle. The proposed Alpha hugetlb support routes hugetlb invalidations through flush_tlb_range(), which calls this function. Unmapping or migrating a hugetlb folio from another context will also need this local invalidate.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
References
- git.kernel.org/stable/c/def2772f486665f1144ec5aa347b26ac1fbdfc90
- git.kernel.org/stable/c/9941bdb511b7771f51190a10ae141088f8a9af92
- git.kernel.org/stable/c/c5ca925c464371b099837aa8ad057f64611ee409
- git.kernel.org/stable/c/dc61db41a015cbfa38b6446fd37e4d15e1dbdbb2
- git.kernel.org/stable/c/c25050f8e22e1f65e244970c0f641d4413287991
- git.kernel.org/stable/c/4f2aa02c8865810c9dbeec767e78da9e2bd8ef43
- git.kernel.org/stable/c/f763165bb711567c18ede8f3cc20943b37b2b82e
- git.kernel.org/stable/c/721bb7a129771f0ff9cef1dd5abfc106ef65feba
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.