CVE-2026-64247

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]
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

08 Nov 2026, 16:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: KVM: x86: hyper-v: Limitar el índice del banco al consultar bancos dispersos Al verificar si un ID de VP está incluido en un conjunto de bancos dispersos, verificar explícitamente que el ID puede estar realmente contenido en un banco disperso (el TLFS permite un máximo de 64 bancos de 64 vCPU cada uno). Al manejar un vaciado de TLB paravirtual para L2, el ID de VP se copia textualmente del VMCS ’enlightened’, sin ninguna comprobación de límites, es decir, no se garantiza que esté por debajo del límite de 4096. La falta de comprobación de los límites del ID de VP conduce a una lectura fuera de límites al probar el banco disperso y, en sentido estricto, podría llevar a KVM a realizar un vaciado de TLB innecesario para una vCPU L2. ================================================================== BUG: KASAN: uso después de liberación en hv_is_vp_in_sparse_set+0x85/0x100 [kvm] Lectura de tamaño 8 en la dirección ffff88811ba5f598 por la tarea hyperv_evmcs/2802 CPU: 12 UID: 1000 PID: 2802 Comm: hyperv_evmcs No contaminado 7.1.0-rc2 #7 PREEMPT Nombre del hardware: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 Traza de llamadas: [TAREA] 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 [/TAREA] La dirección errónea pertenece a la página física: página: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x11ba5f flags: 0x4000000000000000(zona=1) raw: 4000000000000000 0000000000000000 00000000ffffffff 0000000000000000 raw: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000000 página volcada porque: kasan: acceso incorrecto detectado Estado de la memoria alrededor de la dirección errónea: 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 ================================================================== Deshabilitando la depuración de bloqueos debido a la contaminación del kernel Se añade oportunamente una aserción en tiempo de compilación para asegurar que el número máximo de bancos dispersos coincide exactamente con el número de bits posibles en la máscara pasada. [sean: añadir KASAN splat, eliminar comentario, añadir aserción, ajustar registro de cambios]

13 Aug 2026, 18:28

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/4721f8160f17554b003e8928bb61e6c9b2fe92a3 - () https://git.kernel.org/stable/c/4721f8160f17554b003e8928bb61e6c9b2fe92a3 - Patch
References () https://git.kernel.org/stable/c/83c2f52c6a78b1590034e955cff3fe0b052fe4ae - () https://git.kernel.org/stable/c/83c2f52c6a78b1590034e955cff3fe0b052fe4ae - Patch
References () https://git.kernel.org/stable/c/d18756b12aab30d07794446445c93112e5c69a2e - () https://git.kernel.org/stable/c/d18756b12aab30d07794446445c93112e5c69a2e - Patch
References () https://git.kernel.org/stable/c/e36095d8d922bb26ce860231aacf0cd14edea07c - () https://git.kernel.org/stable/c/e36095d8d922bb26ce860231aacf0cd14edea07c - Patch
References () https://git.kernel.org/stable/c/f636cf6a1e7b7f40d48d8d08bd5f152aa61dd130 - () https://git.kernel.org/stable/c/f636cf6a1e7b7f40d48d8d08bd5f152aa61dd130 - Patch
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
CWE CWE-125

27 Jul 2026, 05:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 8.4

24 Jul 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-24 16:16

Updated : 2026-11-08 16:10


NVD link : CVE-2026-64247

Mitre link : CVE-2026-64247

CVE.ORG link : CVE-2026-64247


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-125

Out-of-bounds Read