Linux hwe edge: 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… (CVE-2025-40174)
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 ]
AI Analysis
Technical Summary
CVE-2025-40174 addresses a vulnerability in the Linux kernel's x86 memory management code, specifically in the switch_mm_irqs_off() function. The problem arises because there is no smp_mb() memory barrier between the loaded_mm store and the tlb_gen load in switch_mm(), which breaks the ordering guarantees against flush_tlb_mm_range(). This can cause switch_mm() to miss recent tlb_gen updates, resulting in failure to flush the TLBs properly. Such a failure can lead to stale memory mappings being used, impacting system security and stability. The issue has been fixed by correcting the SMP ordering to ensure proper memory barriers are in place.
Potential Impact
The vulnerability can lead to failure in flushing the Translation Lookaside Buffers (TLBs), which may cause the system to use outdated memory mappings. This can result in high impact on confidentiality, integrity, and availability of the affected system. Attackers with local privileges might exploit this to cause memory corruption or information leakage. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel. Users should apply the official kernel updates that include the corrected SMP ordering in switch_mm_irqs_off(). Since no cloud service is involved, system administrators must update their Linux kernel versions accordingly. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory or Linux kernel mailing lists for the specific fixed versions and apply updates promptly.
Linux hwe edge: 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… (CVE-2025-40174)
Description
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 ]
CVSS v3.1
Score 7.8high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-40174 addresses a vulnerability in the Linux kernel's x86 memory management code, specifically in the switch_mm_irqs_off() function. The problem arises because there is no smp_mb() memory barrier between the loaded_mm store and the tlb_gen load in switch_mm(), which breaks the ordering guarantees against flush_tlb_mm_range(). This can cause switch_mm() to miss recent tlb_gen updates, resulting in failure to flush the TLBs properly. Such a failure can lead to stale memory mappings being used, impacting system security and stability. The issue has been fixed by correcting the SMP ordering to ensure proper memory barriers are in place.
Potential Impact
The vulnerability can lead to failure in flushing the Translation Lookaside Buffers (TLBs), which may cause the system to use outdated memory mappings. This can result in high impact on confidentiality, integrity, and availability of the affected system. Attackers with local privileges might exploit this to cause memory corruption or information leakage. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel. Users should apply the official kernel updates that include the corrected SMP ordering in switch_mm_irqs_off(). Since no cloud service is involved, system administrators must update their Linux kernel versions accordingly. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory or Linux kernel mailing lists for the specific fixed versions and apply updates promptly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-m7p7-jwxv-mmf9
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40174"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d59c2644c7f8479f9b
Added to database: 07/30/2026, 15:50:45 UTC
Last enriched: 07/30/2026, 17:22:11 UTC
Last updated: 09/10/2026, 19:36:50 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.