{
  "id": "CVE-2025-40174",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40174",
  "published_at": "2025-11-12T10:53:49.859Z",
  "title": "x86/mm: Fix SMP ordering in switch_mm_irqs_off()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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 ]",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 209954cbc7d0ce1a190fc725d20ce303d74d2680, \u003c 0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb",
          "\u003e= 209954cbc7d0ce1a190fc725d20ce303d74d2680, \u003c 83b0177a6c4889b3a6e865da5e21b2c9d97d0551"
        ],
        "fixed_in": [
          "0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb",
          "83b0177a6c4889b3a6e865da5e21b2c9d97d0551"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.17.5",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 0fe5e3f5fb75c5d88dad24dece3ee75e9d87adeb or 83b0177a6c4889b3a6e865da5e21b2c9d97d0551 or later.",
      "Upgrade Linux to 0 or 6.17.5 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
