CVE-2026-64513

Source
https://cve.org/CVERecord?id=CVE-2026-64513
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64513.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64513
Downstream
Published
2026-07-25T08:52:05.119Z
Modified
2026-07-27T04:00:56.338706745Z
Summary
KVM: x86: Unconditionally recompute CR8 intercept on PPR update
Details

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

KVM: x86: Unconditionally recompute CR8 intercept on PPR update

The TPR_THRESHOLD field in the VMCS is used by VMX to induce VM exits when the guest's virtual TPR falls under the specified threshold, allowing KVM to inject previously masked interrupts.

KVM handles these VM exits in handletprbelowthreshold(). Commit eb90f3417a0c ("KVM: vmx: speed up TPR below threshold vmexits") optimized this function by calling apicupdateppr() instead of raising KVMREQEVENT. apicupdateppr() then raises KVMREQ_EVENT if there is a pending, deliverable interrupt.

However, if there are no new interrupts pending, apicupdateppr() does not issue the request. Thus, kvmlapicupdatecr8intercept() and vmxupdatecr8intercept() are not called before VM entry, which results in a high, stale TPRTHRESHOLD. This is problematic due to the following sentence in 28.2.1.1 "VM-Execution Control Fields" in the SDM:

The following check is performed if the “use TPR shadow” VM-execution control is 1 and the “virtualize APIC accesses” and “virtual-interrupt delivery” VM-execution controls are both 0: the value of bits 3:0 of the TPR threshold VM-execution control field should not be greater than the value of bits 7:4 of VTPR.

This error condition is typically not observed when KVM runs on a bare metal system because modern processors support APICv, which enables virtual-interrupt delivery, and which KVM uses when possible. This causes the processor to no longer generate TPR-below-threshold exits and to no longer check TPR_THRESHOLD on entry. However, when running on older platforms, or under nested virtualization on a hypervisor that does not support virtual-interrupt delivery and enforces this check (like Hyper-V) this can cause a VM entry failure with hardware error 0x7, as seen in [1].

Call kvmlapicupdatecr8intercept() if apicupdateppr() does not find a deliverable interrupt (and thus does not raise KVMREQEVENT). Remove calls to kvmlapicupdatecr8intercept() on paths that end up in apicupdateppr(), as they now become redundant. This ensures that any path that updates the guest's PPR also figures out if KVM needs to wait for a TPR change (using TPR_THRESHOLD on VMX or CR8 intercepts on SVM).

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64513.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
eb90f3417a0cc4880e979ccc84e41890d410ea5b
Fixed
ff9c4c6428883182960cfe5c78928f0896d80ebc
Fixed
8c8e8ac22ee17d52f9eb2bc814bca7fab90fb8df
Fixed
bb365a506b1e6fb050c0fceaad354fe395385ef0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64513.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.11.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64513.json"