CVE-2026-98718

KVM: SEV: Do cache maintenance on the source VM *before* clearing SEV state

Published Oct 18, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

KVM: SEV: Do cache maintenance on the source VM *before* clearing SEV state

Explicitly flush caches after intra-host migration before clearing "SEV
active" on the source VM, as doing cache maintenance afterwards creates a
tiny window where memory reclaim could return memory to the host without
performing a cache flush, e.g. as pointed out by Sashiko:

CPU1 in sev_migrate_from():
src->active = false;

CPU2 running concurrent unmap:
Since active is false, the automatic cache flush in
sev_guest_memory_reclaimed is skipped.
The host frees and reallocates the page.

CPU1 in sev_migrate_from():
sev_writeback_caches(src_kvm);
Executes a hardware cache flush (wbnoinvd), which writes the guest's old
dirty ciphertext over the new page owner's data.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel’s KVM SEV implementation. During an intra‑host migration, the host clears the SEV 'active' flag before performing a hardware cache flush on the source virtual machine. The resulting race creates a brief period in which the host can reclaim memory from the migrated VM. If the host performs a page unmap at that time the automatic cache flush is skipped, allowing the host to reclaim the memory without flushing the stale encrypted data. The stale ciphertext can then overwrite the new page owner's data, exposing sensitive guest memory to the host. This flaw is a data confidentiality issue triggered by improper cache‑maintenance sequencing.

Affected Systems

Linux kernel running KVM with SEV (Secure Encrypted Virtualization) enabled on the host. Any virtual machine that participates in an intra‑host migration of a SEV‑enabled guest is potentially affected. The vulnerability is present on all kernel releases prior to the fix and does not depend on vendor‑specific patches.

Risk and Exploitability

With a CVSS score of 7.5, the flaw presents a moderate to high risk to confidentiality for KVM hosts that manage SEV‑enabled guests. The exploit requires local host privilege and concurrent migration and unmap operations, conditions that arise naturally during normal VM migrations. No public exploit is known and the EPSS score is <1%, but the mechanism is straightforward enough that a skilled adversary could craft a malicious migration scenario. The vulnerability is not listed in the CISA KEV catalog, suggesting no widespread exploited incidents at the time of reporting. Nevertheless, a host that can control memory reclaim operations can read or modify guest memory, which is considered a severe data exposure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the SEV cache‑maintenance fix
  • If an immediate kernel upgrade is not feasible, avoid performing intra‑host migrations of SEV‑enabled virtual machines until the patch is applied
  • Consider temporarily disabling SEV on affected guests or the KVM host until the kernel update is applied

Generated by OpenCVE AI on October 23, 2026 at 07:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9018-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9018-2 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: KVM: SEV: Do cache maintenance on the source VM *before* clearing SEV state Explicitly flush caches after intra-host migration before clearing "SEV active" on the source VM, as doing cache maintenance afterwards creates a tiny window where memory reclaim could return memory to the host without performing a cache flush, e.g. as pointed out by Sashiko: CPU1 in sev_migrate_from(): src->active = false; CPU2 running concurrent unmap: Since active is false, the automatic cache flush in sev_guest_memory_reclaimed is skipped. The host frees and reallocates the page. CPU1 in sev_migrate_from(): sev_writeback_caches(src_kvm); Executes a hardware cache flush (wbnoinvd), which writes the guest's old dirty ciphertext over the new page owner's data.
Title KVM: SEV: Do cache maintenance on the source VM *before* clearing SEV state
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-366

    Race Condition within a Thread

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:24 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Important
Public date
Oct 18, 2026, 12:00 AM