x86/mm: Fix SMP ordering in switch_mm_irqs_off()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
x86/mm: Fix SMP ordering in switch_mm_irqs_off()
Stephen noted that it is possible to not have an smp_mb() between the loaded_mm store and the tlb_gen load in switch_mm(), meaning the ordering against flush_tlb_mm_range() goes out the window, and it becomes possible for switch_mm() to not observe a recent tlb_gen update and fail to flush the TLBs.
[ dhansen: merge conflict fixed by Ingo ]
From the CVE record · Linux
A missing memory-ordering barrier in the Linux kernel's x86 memory-management code can cause switch_mm() to miss a recent TLB generation update and fail to flush TLBs. The input does not describe an attacker action or specify whether exploitation requires local or network access, authentication, or user interaction.
Engineers running the Linux kernel should check their x86 systems; affected versions are not specified.