# CVE-2025-38455: KVM: SVM: Reject SEV{-ES} intra host migration if vCPU creation is in-flight

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; 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-476
- **Published:** 2025-07-25T15:27:34.873Z
- **Modified:** 2026-10-15T22:18:41.657Z

## Who should check

- Anyone running Linux \>= b56639318bb2be66aceba92836279714488709b4, \< e0d9a7cf37ca09c513420dc88e0d0e805a4f0820; \>= b56639318bb2be66aceba92836279714488709b4, \< 8c8e8d4d7544bb783e15078eda8ba2580e192246; \>= b56639318bb2be66aceba92836279714488709b4, \< fd044c99d831e9f837518816c7c366b04014d405; \>= b56639318bb2be66aceba92836279714488709b4, \< b5725213149597cd9c2b075b87bc4e0f87e906c1; \>= b56639318bb2be66aceba92836279714488709b4, \< ecf371f8b02d5e31b9aa1da7f159f1b2107bdb01
- Anyone running Linux 5.16

## Description

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

KVM: SVM: Reject SEV{-ES} intra host migration if vCPU creation is in-flight

Reject migration of SEV{-ES} state if either the source or destination VM
is actively creating a vCPU, i.e. if kvm\_vm\_ioctl\_create\_vcpu() is in the
section between incrementing created\_vcpus and online\_vcpus.  The bulk of
vCPU creation runs \_outside\_ of kvm-\>lock to allow creating multiple vCPUs
in parallel, and so sev\_info.es\_active can get toggled from false=\>true in
the destination VM after (or during) svm\_vcpu\_create(), resulting in an
SEV{-ES} VM effectively having a non-SEV{-ES} vCPU.

The issue manifests most visibly as a crash when trying to free a vCPU's
NULL VMSA page in an SEV-ES VM, but any number of things can go wrong.

  BUG: unable to handle page fault for address: ffffebde00000000
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 0 P4D 0
  Oops: Oops: 0000 \[\#1\] SMP KASAN NOPTI
  CPU: 227 UID: 0 PID: 64063 Comm: syz.5.60023 Tainted: G     U     O        6.15.0-smp-DEV \#2 NONE
  Tainted: \[U\]=USER, \[O\]=OOT\_MODULE
  Hardware name: Google, Inc. Arcadia\_IT\_80/Arcadia\_IT\_80, BIOS 12.52.0-0 10/28/2024
  RIP: 0010:constant\_test\_bit arch/x86/include/asm/bitops.h:206 \[inline\]
  RIP: 0010:arch\_test\_bit arch/x86/include/asm/bitops.h:238 \[inline\]
  RIP: 0010:\_test\_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 \[inline\]
  RIP: 0010:PageHead include/linux/page-flags.h:866 \[inline\]
  RIP: 0010:\_\_\_free\_pages+0x3e/0x120 mm/page\_alloc.c:5067
  Code: \<49\> f7 06 40 00 00 00 75 05 45 31 ff eb 0c 66 90 4c 89 f0 4c 39 f0
  RSP: 0018:ffff8984551978d0 EFLAGS: 00010246
  RAX: 0000777f80000001 RBX: 0000000000000000 RCX: ffffffff918aeb98
  RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffebde00000000
  RBP: 0000000000000000 R08: ffffebde00000007 R09: 1ffffd7bc0000000
  R10: dffffc0000000000 R11: fffff97bc0000001 R12: dffffc0000000000
  R13: ffff8983e19751a8 R14: ffffebde00000000 R15: 1ffffd7bc0000000
  FS:  0000000000000000(0000) GS:ffff89ee661d3000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: ffffebde00000000 CR3: 000000793ceaa000 CR4: 0000000000350ef0
  DR0: 0000000000000000 DR1: 0000000000000b5f DR2: 0000000000000000
  DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
  Call Trace:
   \<TASK\>
   sev\_free\_vcpu+0x413/0x630 arch/x86/kvm/svm/sev.c:3169
   svm\_vcpu\_free+0x13a/0x2a0 arch/x86/kvm/svm/svm.c:1515
   kvm\_arch\_vcpu\_destroy+0x6a/0x1d0 arch/x86/kvm/x86.c:12396
   kvm\_vcpu\_destroy virt/kvm/kvm\_main.c:470 \[inline\]
   kvm\_destroy\_vcpus+0xd1/0x300 virt/kvm/kvm\_main.c:490
   kvm\_arch\_destroy\_vm+0x636/0x820 arch/x86/kvm/x86.c:12895
   kvm\_put\_kvm+0xb8e/0xfb0 virt/kvm/kvm\_main.c:1310
   kvm\_vm\_release+0x48/0x60 virt/kvm/kvm\_main.c:1369
   \_\_fput+0x3e4/0x9e0 fs/file\_table.c:465
   task\_work\_run+0x1a9/0x220 kernel/task\_work.c:227
   exit\_task\_work include/linux/task\_work.h:40 \[inline\]
   do\_exit+0x7f0/0x25b0 kernel/exit.c:953
   do\_group\_exit+0x203/0x2d0 kernel/exit.c:1102
   get\_signal+0x1357/0x1480 kernel/signal.c:3034
   arch\_do\_signal\_or\_restart+0x40/0x690 arch/x86/kernel/signal.c:337
   exit\_to\_user\_mode\_loop kernel/entry/common.c:111 \[inline\]
   exit\_to\_user\_mode\_prepare include/linux/entry-common.h:329 \[inline\]
   \_\_syscall\_exit\_to\_user\_mode\_work kernel/entry/common.c:207 \[inline\]
   syscall\_exit\_to\_user\_mode+0x67/0xb0 kernel/entry/common.c:218
   do\_syscall\_64+0x7c/0x150 arch/x86/entry/syscall\_64.c:100
   entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
  RIP: 0033:0x7f87a898e969
   \</TASK\>
  Modules linked in: gq(O)
  gsmi: Log Shutdown Reason 0x03
  CR2: ffffebde00000000
  ---\[ end trace 0000000000000000 \]---

Deliberately don't check for a NULL VMSA when freeing the vCPU, as crashing
the host is likely desirable due to the VMSA being consumed by hardware.
E.g. if KVM manages to allow VMRUN on the vCPU, hardware may read/write a
bogus VMSA page.  Accessing P
---truncated---

## Affected and fixed versions

- Linux: \>= b56639318bb2be66aceba92836279714488709b4, \< e0d9a7cf37ca09c513420dc88e0d0e805a4f0820; \>= b56639318bb2be66aceba92836279714488709b4, \< 8c8e8d4d7544bb783e15078eda8ba2580e192246; \>= b56639318bb2be66aceba92836279714488709b4, \< fd044c99d831e9f837518816c7c366b04014d405; \>= b56639318bb2be66aceba92836279714488709b4, \< b5725213149597cd9c2b075b87bc4e0f87e906c1; \>= b56639318bb2be66aceba92836279714488709b4, \< ecf371f8b02d5e31b9aa1da7f159f1b2107bdb01 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38455.md
Affected: Linux >= b56639318bb2be66aceba92836279714488709b4, < e0d9a7cf37ca09c513420dc88e0d0e805a4f0820; >= b56639318bb2be66aceba92836279714488709b4, < 8c8e8d4d7544bb783e15078eda8ba2580e192246; >= b56639318bb2be66aceba92836279714488709b4, < fd044c99d831e9f837518816c7c366b04014d405; >= b56639318bb2be66aceba92…
Fixed in: Linux 8c8e8d4d7544bb783e15078eda8ba2580e192246

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-38455 being exploited?

There is no confirmed exploitation: CVE-2025-38455 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-38455?

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

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

Linux \>= b56639318bb2be66aceba92836279714488709b4, \< e0d9a7cf37ca09c513420dc88e0d0e805a4f0820; \>= b56639318bb2be66aceba92836279714488709b4, \< 8c8e8d4d7544bb783e15078eda8ba2580e192246; \>= b56639318bb2be66aceba92836279714488709b4, \< fd044c99d831e9f837518816c7c366b04014d405; \>= b56639318bb2be66aceba92836279714488709b4, \< b5725213149597cd9c2b075b87bc4e0f87e906c1; \>= b56639318bb2be66aceba92836279714488709b4, \< ecf371f8b02d5e31b9aa1da7f159f1b2107bdb01; Linux 5.16.

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

Yes. Fixed in Linux 8c8e8d4d7544bb783e15078eda8ba2580e192246. No fix listed yet: follow the vendor advisory.

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

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/e0d9a7cf37ca09c513420dc88e0d0e805a4f0820>
- patch: <https://git.kernel.org/stable/c/8c8e8d4d7544bb783e15078eda8ba2580e192246>
- patch: <https://git.kernel.org/stable/c/fd044c99d831e9f837518816c7c366b04014d405>
- patch: <https://git.kernel.org/stable/c/b5725213149597cd9c2b075b87bc4e0f87e906c1>
- patch: <https://git.kernel.org/stable/c/ecf371f8b02d5e31b9aa1da7f159f1b2107bdb01>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

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

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