CVE-2026-40402 Overview
CVE-2026-40402 is a use-after-free vulnerability [CWE-416] in Microsoft Windows Hyper-V. The flaw allows an unauthorized local attacker to elevate privileges on affected systems. Microsoft published the advisory on May 12, 2026, and the issue impacts Windows 11 23H2 and Windows Server 2022.
Successful exploitation results in a scope change, granting the attacker access to resources beyond the vulnerable component. Confidentiality, integrity, and availability are all fully compromised on a successful attack. No user interaction or prior privileges are required to trigger the condition.
Critical Impact
A local use-after-free in Windows Hyper-V allows an unauthorized attacker to escape virtualization boundaries and elevate privileges across the host.
Affected Products
- Microsoft Windows 11 23H2 (x64 and ARM64)
- Microsoft Windows Server 2022
- Hyper-V virtualization component on the listed Windows platforms
Discovery Timeline
- 2026-05-12 - Microsoft publishes the Microsoft CVE-2026-40402 Advisory
- 2026-05-12 - CVE-2026-40402 published to NVD
- 2026-05-15 - Last updated in NVD database
Technical Details for CVE-2026-40402
Vulnerability Analysis
The vulnerability resides in the Windows Hyper-V hypervisor stack. Hyper-V manages virtual machine execution and isolates guest workloads from the host operating system. A use-after-free condition exists in this component, meaning code references a memory object after the object has been freed.
When an attacker triggers the dangling reference, the freed memory can be reclaimed and populated with attacker-controlled data. The hypervisor then operates on that data as if it were a valid kernel object. This sequence enables privilege escalation from a low-privileged context into a higher-privileged execution scope.
The scope change indicates the attacker can affect resources beyond the originally vulnerable virtualization boundary. A guest-to-host escape or local kernel privilege escalation is the practical outcome.
Root Cause
The root cause is improper object lifetime management within Hyper-V, classified as [CWE-416] Use After Free. A code path frees a memory allocation while another path retains and dereferences a pointer to that allocation. The missing synchronization or reference tracking creates the dangling pointer.
Attack Vector
The attack vector is local. An attacker must execute code on the affected system, typically inside a guest VM or as a local user on the host. No authentication is required to trigger the flaw, and no user interaction is needed. The current EPSS probability is 0.044%, and no public proof-of-concept exploit is currently available.
The vulnerability manifests when crafted operations cause Hyper-V to free an internal object while a separate code path still references it. Refer to the Microsoft CVE-2026-40402 Advisory for vendor-supplied technical context.
Detection Methods for CVE-2026-40402
Indicators of Compromise
- Unexpected vmms.exe or vmwp.exe process crashes or restarts on Hyper-V hosts
- Hyper-V-Worker or Hyper-V-Hypervisor event log entries showing bug checks or worker process faults
- Unauthorized creation of SYSTEM-level processes spawned by Hyper-V worker processes
- New or unexpected kernel driver loads on Hyper-V hosts following guest activity
Detection Strategies
- Monitor Windows Event Log channels Microsoft-Windows-Hyper-V-Hypervisor and Microsoft-Windows-Hyper-V-Worker for repeated faults
- Alert on child processes of vmwp.exe that are not part of normal virtualization workflows
- Correlate guest VM activity with host-side kernel exceptions occurring in the same time window
Monitoring Recommendations
- Forward Hyper-V event logs and kernel crash telemetry to a centralized logging platform for retention and correlation
- Track patch state across all Hyper-V hosts and flag systems missing the May 2026 security update
- Baseline normal Hyper-V worker process behavior to identify deviations indicative of memory corruption exploitation
How to Mitigate CVE-2026-40402
Immediate Actions Required
- Apply the Microsoft security update for CVE-2026-40402 to all Windows 11 23H2 and Windows Server 2022 hosts running Hyper-V
- Inventory all Hyper-V-enabled systems and prioritize patching for hosts running untrusted or multi-tenant guest workloads
- Restrict local and guest-level access on Hyper-V hosts to trusted administrators until patching is complete
Patch Information
Microsoft has released a security update addressing CVE-2026-40402. Administrators should consult the Microsoft CVE-2026-40402 Advisory for the specific KB article and update package mapped to each affected build. Apply updates through Windows Update, WSUS, or Microsoft Update Catalog according to standard change management procedures.
Workarounds
- No vendor-supplied workaround replaces the security update; patching is the required remediation
- Where immediate patching is not feasible, limit code execution on Hyper-V hosts and reduce the number of untrusted guest VMs
- Apply least-privilege controls to local accounts on Hyper-V hosts to reduce the population of users able to trigger the flaw
# Verify installed updates on a Hyper-V host (PowerShell)
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 20
# List Hyper-V hosts and current build for patch tracking
Get-CimInstance Win32_OperatingSystem | Select-Object CSName, Caption, Version, BuildNumber
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

