{"id":"CVE-2025-40174","aliases":["CVE-2025-40174"],"related":[],"kind":"vulnerability","state":"published","title":"x86/mm: Fix SMP ordering in switch_mm_irqs_off()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/mm: Fix SMP ordering in switch_mm_irqs_off()\n\nStephen noted that it is possible to not have an smp_mb() between\nthe loaded_mm store and the tlb_gen load in switch_mm(), meaning the\nordering against flush_tlb_mm_range() goes out the window, and it\nbecomes possible for switch_mm() to not observe a recent tlb_gen\nupdate and fail to flush the TLBs.\n\n[ dhansen: merge conflict fixed by Ingo ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/mm: Fix SMP ordering in switch_mm_irqs_off()\n\nStephen noted that it is possible to not have an smp_mb() between\nthe loaded_mm store and the tlb_gen load in switch_mm(), meaning the\nordering against flush_tlb_mm_range() goes out the window, and it\nbecomes possible for switch_mm() to not observe a recent tlb_gen\nupdate and fail to flush the TLBs.\n\n[ dhansen: merge conflict fixed by Ingo ]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nx86/mm: Corrección del ordenamiento SMP en switch_mm_irqs_off()\n\nStephen señaló que es posible no tener un smp_mb() entre el almacenamiento de loaded_mm y la carga de tlb_gen en switch_mm(), lo que significa que el ordenamiento frente a flush_tlb_mm_range() se invalida, y se vuelve posible que switch_mm() no observe una actualización reciente de tlb_gen y falle al vaciar las TLBs.\n\n[ dhansen: conflicto de fusión solucionado por Ingo ]","source":"nvd"}],"published":"2025-11-12T10:53:49.859Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"209954cbc7d0ce1a190fc725d20ce303d74d2680","fixed":"0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb","status":"affected"},{"type":"git","introduced":"209954cbc7d0ce1a190fc725d20ce303d74d2680","fixed":"83b0177a6c4889b3a6e865da5e21b2c9d97d0551","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.17.5","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/83b0177a6c4889b3a6e865da5e21b2c9d97d0551","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40174","url":"https://www.cve.org/CVERecord?id=CVE-2025-40174","licence":"CVE Terms of Use","modified":"2026-08-05T12:08:19.978Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40174","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40174","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.566Z","epss":{"score":0.00144,"percentile":0.03896,"date":"2026-12-01T12:00:22.000Z"}}