# CVE-2025-40174: x86/mm: Fix SMP ordering in switch_mm_irqs_off()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-11-12T10:53:49.859Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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 ]

(As written by CVE List.)

## Affected

- Linux Linux: from 209954cbc7d0ce1a190fc725d20ce303d74d2680 before 0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb; from 209954cbc7d0ce1a190fc725d20ce303d74d2680 before 83b0177a6c4889b3a6e865da5e21b2c9d97d0551; 6.14 (not affected: before 6.14; from 6.17.5 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb>
- <https://git.kernel.org/stable/c/83b0177a6c4889b3a6e865da5e21b2c9d97d0551>

## Sources

- CVE List: [CVE-2025-40174](https://www.cve.org/CVERecord?id=CVE-2025-40174), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-40174](https://nvd.nist.gov/vuln/detail/CVE-2025-40174), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40174 · Whole record: https://cve.day/CVE-2025-40174.json · Rebuilt by cve.day 2026-11-25T22:59:07.566Z
