CVE-2026-64247
High · 8.4CVSS
8.4
EPSS
0.2%
Published
Jul 24, 2026
CISA due date
—
Cloudanix analysis
A flaw in the Linux kernel's handling of virtual CPU tracking for certain Windows virtualization features can let a virtual machine read outside its allowed memory area, risking crashes or instability on the host server.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Missing bounds check on VP ID copied from enlightened VMCS allows out-of-bounds read when testing sparse bank membership during Hyper-V paravirtual TLB flush, potentially causing use-after-free or unnecessary flush operations.
Why it matters to the business
In virtualized Linux hosts running KVM with Hyper-V enlightenments, a compromised guest VM can trigger kernel memory corruption or crashes, leading to host instability, service outages, and increased operational risk in cloud or enterprise virtualization deployments.
How an attack unfolds
An attacker controlling an L2 guest VM crafts a paravirtual TLB flush hypercall by placing an out-of-range VP ID (beyond the 4096 limit) directly into the enlightened VMCS; KVM copies the value verbatim without validation, resulting in an out-of-bounds read inside hv_is_vp_in_sparse_set during sparse bank processing.
How to fix it
Apply the upstream kernel patch that adds the bank index bounds check and compile-time assertion for maximum sparse banks; rebuild and deploy the fixed kernel image on all affected hosts; monitor for backported fixes in distribution kernels once available.
How to confirm the fix worked
Verify the presence of the bounds check in hv_is_vp_in_sparse_set and the compile-time assertion matching 64 banks; confirm no KASAN reports occur during hypercall processing with out-of-range VP IDs; test TLB flush paths with both valid and invalid VP IDs.
Typical attack path
- Compromise or control an L2 guest VM running under KVM with Hyper-V paravirtualization enabled
- Modify the enlightened VMCS to supply an invalid VP ID exceeding the maximum sparse bank index
- Trigger a paravirtual TLB flush hypercall from the guest
- KVM performs the unchecked copy and sparse bank test, causing OOB memory access
How to detect it
Monitor kernel logs for KASAN use-after-free reports referencing hv_is_vp_in_sparse_set, kvm_hv_flush_tlb, or kvm_hv_hypercall; search for call traces involving vmx_handle_exit and hyperv_evmcs task names; inspect for unexpected TLB flush activity correlated with guest hypercalls.
- hv_is_vp_in_sparse_set+0x85/0x100 [kvm]
- BUG: KASAN: use-after-free in hv_is_vp_in_sparse_set
- kvm_hv_flush_tlb+0xe9e/0x16c0 [kvm]
- hyperv_evmcs
What your security team should do
- Prioritize kernel updates on all KVM hosts using Hyper-V enlightenments due to potential host impact
- Isolate or restrict untrusted guest workloads until patches are deployed
- Enable KASAN or similar memory debugging in test environments to catch similar issues early
- Review hypercall handling code paths for other missing bounds checks on guest-controlled values
The record
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: hyper-v: Bound the bank index when querying sparse banks When checking if a VP ID is included in a sparse bank set, explicitly check that the ID can actually be contained in a sparse bank (the TLFS allows for a maximum of 64 banks of 64 vCPUs each). When handling a paravirtual TLB flush for L2, the VP ID is copied verbatim from the enlightened VMCS, without any bounds check, i.e. isn't guaranteed to be under the limit of 4096. Failure to check the bounds of the VP ID leads to an out-of-bounds read when testing the sparse bank, and super strictly speaking could lead to KVM performing an unnecessary TLB flush for an L2 vCPU. ================================================================== BUG: KASAN: use-after-free in hv_is_vp_in_sparse_set+0x85/0x100 [kvm] Read of size 8 at addr ffff88811ba5f598 by task hyperv_evmcs/2802 CPU: 12 UID: 1000 PID: 2802 Comm: hyperv_evmcs Not tainted 7.1.0-rc2 #7 PREEMPT Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 Call Trace: <TASK> dump_stack_lvl+0x51/0x60 print_report+0xcb/0x5d0 kasan_report+0xb4/0xe0 kasan_check_range+0x35/0x1b0 hv_is_vp_in_sparse_set+0x85/0x100 [kvm] kvm_hv_flush_tlb+0xe9e/0x16c0 [kvm] kvm_hv_hypercall+0xe6b/0x1e60 [kvm] vmx_handle_exit+0x485/0x1b60 [kvm_intel] kvm_arch_vcpu_ioctl_run+0x22e3/0x5070 [kvm] kvm_vcpu_ioctl+0x5d0/0x10c0 [kvm] __x64_sys_ioctl+0x129/0x1a0 do_syscall_64+0xb9/0xcf0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 RIP: 0033:0x7f0e62d1a9bf </TASK> The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x11ba5f flags: 0x4000000000000000(zone=1) raw: 4000000000000000 0000000000000000 00000000ffffffff 0000000000000000 raw: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88811ba5f480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811ba5f500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88811ba5f580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811ba5f600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811ba5f680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== Disabling lock debugging due to kernel taint Opportunistically add a compile time assertion to ensure the maximum number of sparse banks exactly matches the number of possible bits in the passed in mask. [sean: add KASAN splat, drop comment, add assert, massage changelog]
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-118237 An out-of-bounds read vulnerability was identified in GitHub Enterprise Server in the Git… CWE-125
- CVE-2026-121208 Out of bounds read in Media in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121197 Out of bounds read in ANGLE in Google Chrome on on Mac prior to 157.0.8103.38 allowed a… CWE-125
- CVE-2026-121184 Out of bounds read in Media in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121160 Out of bounds read in Skia in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121140 Out of bounds read in Internals in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121112 Out of bounds read in Permissions in Google Chrome prior to 157.0.8103.38 allowed a… CWE-125
- CVE-2026-121093 Out of bounds read in Animation in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125