Bug 2414498 (CVE-2025-40174) - CVE-2025-40174 kernel: x86/mm: Fix SMP ordering in switch_mm_irqs_off()
Summary: CVE-2025-40174 kernel: x86/mm: Fix SMP ordering in switch_mm_irqs_off()
Keywords:
Status: NEW
Alias: CVE-2025-40174
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-12 11:03 UTC by OSIDB Bzimport
Modified: 2025-11-14 14:20 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-12 11:03:43 UTC
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 ]


Note You need to log in before you can comment on or make changes to this bug.