# CVE-2025-37957: KVM: SVM: Forcibly leave SMM mode on SHUTDOWN interception

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-05-20T16:01:50.878Z
- **Modified:** 2026-10-30T13:17:59.193Z

## Who should check

- Anyone running Linux \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< dc86a9cd181788f6cc4a2dbcd92ea6473dc2923f; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< ec24e62a1dd3540ee696314422040180040c1e4a; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< d362b21fefcef7eda8f1cd78a5925735d2b3287c; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< e9b28bc65fd3a56755ba503258024608292b4ab1; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< a2620f8932fa9fdabc3d78ed6efb004ca409019f; 6425c590d0cc6914658a630a40b7f8226aa028c3; d40ef0a511676bd65ca9acb295430c07af59ab85; \>= 5.15.81, \< 5.16; \>= 6.0.11, \< 6.1
- Anyone running Linux 6.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: SVM: Forcibly leave SMM mode on SHUTDOWN interception

Previously, commit ed129ec9057f ("KVM: x86: forcibly leave nested mode
on vCPU reset") addressed an issue where a triple fault occurring in
nested mode could lead to use-after-free scenarios. However, the commit
did not handle the analogous situation for System Management Mode (SMM).

This omission results in triggering a WARN when KVM forces a vCPU INIT
after SHUTDOWN interception while the vCPU is in SMM. This situation was
reprodused using Syzkaller by:

  1) Creating a KVM VM and vCPU
  2) Sending a KVM\_SMI ioctl to explicitly enter SMM
  3) Executing invalid instructions causing consecutive exceptions and
     eventually a triple fault

The issue manifests as follows:

  WARNING: CPU: 0 PID: 25506 at arch/x86/kvm/x86.c:12112
  kvm\_vcpu\_reset+0x1d2/0x1530 arch/x86/kvm/x86.c:12112
  Modules linked in:
  CPU: 0 PID: 25506 Comm: syz-executor.0 Not tainted
  6.1.130-syzkaller-00157-g164fe5dde9b6 \#0
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
  BIOS 1.12.0-1 04/01/2014
  RIP: 0010:kvm\_vcpu\_reset+0x1d2/0x1530 arch/x86/kvm/x86.c:12112
  Call Trace:
   \<TASK\>
   shutdown\_interception+0x66/0xb0 arch/x86/kvm/svm/svm.c:2136
   svm\_invoke\_exit\_handler+0x110/0x530 arch/x86/kvm/svm/svm.c:3395
   svm\_handle\_exit+0x424/0x920 arch/x86/kvm/svm/svm.c:3457
   vcpu\_enter\_guest arch/x86/kvm/x86.c:10959 \[inline\]
   vcpu\_run+0x2c43/0x5a90 arch/x86/kvm/x86.c:11062
   kvm\_arch\_vcpu\_ioctl\_run+0x50f/0x1cf0 arch/x86/kvm/x86.c:11283
   kvm\_vcpu\_ioctl+0x570/0xf00 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:4122
   vfs\_ioctl fs/ioctl.c:51 \[inline\]
   \_\_do\_sys\_ioctl fs/ioctl.c:870 \[inline\]
   \_\_se\_sys\_ioctl fs/ioctl.c:856 \[inline\]
   \_\_x64\_sys\_ioctl+0x19a/0x210 fs/ioctl.c:856
   do\_syscall\_x64 arch/x86/entry/common.c:51 \[inline\]
   do\_syscall\_64+0x35/0x80 arch/x86/entry/common.c:81
   entry\_SYSCALL\_64\_after\_hwframe+0x6e/0xd8

Architecturally, INIT is blocked when the CPU is in SMM, hence KVM's WARN()
in kvm\_vcpu\_reset() to guard against KVM bugs, e.g. to detect improper
emulation of INIT.  SHUTDOWN on SVM is a weird edge case where KVM needs to
do \_something\_ sane with the VMCB, since it's technically undefined, and
INIT is the least awful choice given KVM's ABI.

So, double down on stuffing INIT on SHUTDOWN, and force the vCPU out of
SMM to avoid any weirdness (and the WARN).

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

\[sean: massage changelog, make it clear this isn't architectural behavior\]

## Affected and fixed versions

- Linux: \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< dc86a9cd181788f6cc4a2dbcd92ea6473dc2923f; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< ec24e62a1dd3540ee696314422040180040c1e4a; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< d362b21fefcef7eda8f1cd78a5925735d2b3287c; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< e9b28bc65fd3a56755ba503258024608292b4ab1; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< a2620f8932fa9fdabc3d78ed6efb004ca409019f; 6425c590d0cc6914658a630a40b7f8226aa028c3; d40ef0a511676bd65ca9acb295430c07af59ab85; \>= 5.15.81, \< 5.16; \>= 6.0.11, \< 6.1 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 6.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37957. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37957.md
Affected: Linux >= ed129ec9057f89d615ba0c81a4984a90345a1684, < dc86a9cd181788f6cc4a2dbcd92ea6473dc2923f; >= ed129ec9057f89d615ba0c81a4984a90345a1684, < ec24e62a1dd3540ee696314422040180040c1e4a; >= ed129ec9057f89d615ba0c81a4984a90345a1684, < d362b21fefcef7eda8f1cd78a5925735d2b3287c; >= ed129ec9057f89d615ba0c8…
Fixed in: Linux 5.16, Linux 6.1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37957 being exploited?

There is no confirmed exploitation: CVE-2025-37957 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37957?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37957?

Linux \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< dc86a9cd181788f6cc4a2dbcd92ea6473dc2923f; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< ec24e62a1dd3540ee696314422040180040c1e4a; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< d362b21fefcef7eda8f1cd78a5925735d2b3287c; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< e9b28bc65fd3a56755ba503258024608292b4ab1; \>= ed129ec9057f89d615ba0c81a4984a90345a1684, \< a2620f8932fa9fdabc3d78ed6efb004ca409019f; 6425c590d0cc6914658a630a40b7f8226aa028c3; d40ef0a511676bd65ca9acb295430c07af59ab85; \>= 5.15.81, \< 5.16; \>= 6.0.11, \< 6.1; Linux 6.1.

### Is there a fix for CVE-2025-37957?

Yes. Fixed in Linux 5.16, Linux 6.1. Upgrade Linux to 6.1 or later.

### How do I check if I'm affected by CVE-2025-37957?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ec24e62a1dd3540ee696314422040180040c1e4a>
- patch: <https://git.kernel.org/stable/c/d362b21fefcef7eda8f1cd78a5925735d2b3287c>
- patch: <https://git.kernel.org/stable/c/e9b28bc65fd3a56755ba503258024608292b4ab1>
- patch: <https://git.kernel.org/stable/c/a2620f8932fa9fdabc3d78ed6efb004ca409019f>
- other: <https://git.kernel.org/stable/c/dc86a9cd181788f6cc4a2dbcd92ea6473dc2923f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37957>

HTML: <https://flawdb.com/CVE-2025-37957> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37957>
