# CVE-2026-64247: KVM: x86: hyper-v: Bound the bank index when querying sparse banks

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

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; 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.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-07-24T15:31:15.304Z
- **Modified:** 2026-11-08T16:10:00.183Z

## Who should check

- Anyone running Linux \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< d18756b12aab30d07794446445c93112e5c69a2e; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< 83c2f52c6a78b1590034e955cff3fe0b052fe4ae; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< e36095d8d922bb26ce860231aacf0cd14edea07c; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< f636cf6a1e7b7f40d48d8d08bd5f152aa61dd130; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< 4721f8160f17554b003e8928bb61e6c9b2fe92a3
- Anyone running Linux 6.2

## Description

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 and fixed versions

- Linux: \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< d18756b12aab30d07794446445c93112e5c69a2e; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< 83c2f52c6a78b1590034e955cff3fe0b052fe4ae; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< e36095d8d922bb26ce860231aacf0cd14edea07c; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< f636cf6a1e7b7f40d48d8d08bd5f152aa61dd130; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< 4721f8160f17554b003e8928bb61e6c9b2fe92a3 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 4721f8160f17554b003e8928bb61e6c9b2fe92a3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64247.md
Affected: Linux >= c58a318f6090efe06e6702b8882e2026f44f620e, < d18756b12aab30d07794446445c93112e5c69a2e; >= c58a318f6090efe06e6702b8882e2026f44f620e, < 83c2f52c6a78b1590034e955cff3fe0b052fe4ae; >= c58a318f6090efe06e6702b8882e2026f44f620e, < e36095d8d922bb26ce860231aacf0cd14edea07c; >= c58a318f6090efe06e6702b…
Fixed in: Linux 83c2f52c6a78b1590034e955cff3fe0b052fe4ae, Linux 4721f8160f17554b003e8928bb61e6c9b2fe92a3

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-2026-64247 being exploited?

There is no confirmed exploitation: CVE-2026-64247 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64247?

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

### Which versions are affected by CVE-2026-64247?

Linux \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< d18756b12aab30d07794446445c93112e5c69a2e; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< 83c2f52c6a78b1590034e955cff3fe0b052fe4ae; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< e36095d8d922bb26ce860231aacf0cd14edea07c; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< f636cf6a1e7b7f40d48d8d08bd5f152aa61dd130; \>= c58a318f6090efe06e6702b8882e2026f44f620e, \< 4721f8160f17554b003e8928bb61e6c9b2fe92a3; Linux 6.2.

### Is there a fix for CVE-2026-64247?

Yes. Fixed in Linux 83c2f52c6a78b1590034e955cff3fe0b052fe4ae, Linux 4721f8160f17554b003e8928bb61e6c9b2fe92a3. Upgrade Linux to 4721f8160f17554b003e8928bb61e6c9b2fe92a3 or later.

### How do I check if I'm affected by CVE-2026-64247?

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/d18756b12aab30d07794446445c93112e5c69a2e>
- patch: <https://git.kernel.org/stable/c/83c2f52c6a78b1590034e955cff3fe0b052fe4ae>
- patch: <https://git.kernel.org/stable/c/e36095d8d922bb26ce860231aacf0cd14edea07c>
- patch: <https://git.kernel.org/stable/c/f636cf6a1e7b7f40d48d8d08bd5f152aa61dd130>
- patch: <https://git.kernel.org/stable/c/4721f8160f17554b003e8928bb61e6c9b2fe92a3>

## 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-2026-64247>

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