CVE-2026-64284

KVM: x86: Ensure vendor's exit handler runs before fastpath userspace exits

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

KVM: x86: Ensure vendor's exit handler runs before fastpath userspace exits

Move the handling of fastpath userspace exits into vendor code to ensure
KVM runs vendor specific operations that need to run before userspace gains
control of the vCPU. E.g. for VMX (and soon to be for SVM as well), KVM
needs to flush the PML buffer prior to exiting to userspace, otherwise any
memory written by the final KVM_RUN might never be flagged as dirty.

Note, waiting to snapshot CR0 and CR3 until svm_handle_exit() is flawed in
general, as that risks consuming stale state in a fastpath handler. That
will be addressed in a future change.

Analysis

AI-generated

Technical impact

The Linux kernel’s KVM module for x86 processors has a defect in which the vendor‑specific exit handler runs after the fastpath userspace exit. Because the exit ordering is wrong, a required flush of the Processor‑Modification Log (PML) buffer can be skipped, causing any memory written during the final KVM_RUN to remain unmarked as dirty. A guest process that regains control may then observe stale or incomplete state. The flaw is a race condition (CWE‑362) and a concurrency issue (CWE‑367), and while it does not allow remote code execution, it can let a local attacker within the host exploit the stale‑state condition to modify VM state or cause a denial of service inside a virtual machine.

Affected Systems

All Linux installations running the KVM virtualization stack on x86 that have a kernel version prior to the commit that makes the vendor exit handler run before the fastpath user‑space exit are affected. The kernel family is listed as the affected platform, but no explicit version range is provided, so any older kernel lacking the patch is in scope until the patch is applied.

Risk and Exploitability

The CVSS score of 7.1 indicates a medium severity vulnerability. The EPSS score is below 1%, and the vulnerability is not listed in CISA’s KEV catalog, indicating a low probability of exploitation in the wild. Nevertheless, a malicious guest resident in the host can trigger the fastpath exit path and exploit the stale‑state condition. The flaw is local to the host‑guest boundary; an external attacker would need to gain a foothold in the host to use it. The overall risk is moderate due to the functional impact on VM state and the low likelihood of exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest stable Linux kernel that incorporates the vendor exit‑handler patch
  • Disable or reconfigure any KVM fastpath features that rely on the old exit path
  • Run memory consistency checks on guests after kernel upgrades and monitor logs for signs of stale state

Generated by OpenCVE AI on October 20, 2026 at 13:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
Ubuntu USN Ubuntu USN USN-8726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8727-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8800-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-292
Type Values Removed Values Added
Weaknesses CWE-292
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Ensure vendor's exit handler runs before fastpath userspace exits Move the handling of fastpath userspace exits into vendor code to ensure KVM runs vendor specific operations that need to run before userspace gains control of the vCPU. E.g. for VMX (and soon to be for SVM as well), KVM needs to flush the PML buffer prior to exiting to userspace, otherwise any memory written by the final KVM_RUN might never be flagged as dirty. Note, waiting to snapshot CR0 and CR3 until svm_handle_exit() is flawed in general, as that risks consuming stale state in a fastpath handler. That will be addressed in a future change.
Title KVM: x86: Ensure vendor's exit handler runs before fastpath userspace exits
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 8:38 PM
Reserved
Jul 19, 2026, 3:36 PM
Status
Modified
Published
Jul 25, 2026, 10:17 AM
Modified
Oct 19, 2026, 9:17 PM
Severity
Moderate
Public date
Jul 25, 2026, 12:00 AM