CVE-2024-38160 Overview
CVE-2024-38160 is a remote code execution vulnerability in the Windows Network Virtualization component affecting Windows 10 version 1607 and Windows Server 2016. The flaw allows an authenticated attacker with high privileges on an adjacent network to execute arbitrary code on the target host. Microsoft classifies the issue under [CWE-122] heap-based buffer overflow. The scope is changed, meaning successful exploitation can affect resources beyond the vulnerable component itself.
Critical Impact
Successful exploitation grants arbitrary code execution with full impact on confidentiality, integrity, and availability across virtualized network boundaries.
Affected Products
- Microsoft Windows 10 Version 1607 (all editions)
- Microsoft Windows Server 2016
- Systems running the Windows Network Virtualization (vmswitch / WNV) component
Discovery Timeline
- 2024-08-13 - CVE-2024-38160 published to NVD and addressed in Microsoft's August 2024 security update
- 2024-08-16 - Last updated in NVD database
Technical Details for CVE-2024-38160
Vulnerability Analysis
The vulnerability resides in the Windows Network Virtualization (WNV) subsystem, which provides network isolation and overlay routing for Hyper-V virtual machines. The component processes encapsulated traffic between virtual switches and physical adapters. Improper bounds checking when parsing crafted network virtualization packets leads to a heap-based buffer overflow [CWE-122].
An attacker who has already obtained high privileges on a system within the virtualized network can send malformed packets to the host. The corruption occurs in kernel-mode memory managed by the virtualization stack. Because the scope is changed, code executed in the vulnerable component can affect the host operating system and adjacent guest workloads.
The attack vector is network-based with low complexity and requires no user interaction, but it does require existing high-privilege access to initiate the malicious traffic.
Root Cause
The root cause is insufficient validation of length or offset fields within network virtualization packet structures before copying data into heap-allocated kernel buffers. The bounded copy operation writes past the allocated region and corrupts adjacent heap metadata or function pointers.
Attack Vector
An authenticated attacker on a logically adjacent virtual network sends a crafted sequence of network virtualization packets to the Hyper-V host. The vulnerable parser in the WNV driver processes the malformed payload and triggers the heap overflow. Reliable exploitation yields kernel-level arbitrary code execution and escape from the virtualization boundary. No verified public proof-of-concept code is available for this issue. Refer to the Microsoft CVE-2024-38160 Update Guide for vendor technical detail.
Detection Methods for CVE-2024-38160
Indicators of Compromise
- Unexpected crashes or bug checks referencing vmswitch.sys or related network virtualization drivers on Hyper-V hosts
- Anomalous kernel-mode process creation originating from the System process following malformed virtual network traffic
- Sudden privilege changes or new service installations on Hyper-V hosts shortly after high-volume VM-to-host network activity
Detection Strategies
- Monitor Windows Event Logs for driver faults, bug check codes, and Hyper-V-VmSwitch operational warnings on affected hosts
- Correlate kernel exceptions with preceding network virtualization packet activity between tenant VMs and the host
- Apply behavioral detection focused on post-exploitation activity such as token manipulation, credential access, and lateral movement from Hyper-V hosts
Monitoring Recommendations
- Enable verbose ETW logging for the Microsoft-Windows-Hyper-V-VmSwitch provider on Windows Server 2016 hosts
- Forward Hyper-V host telemetry to a centralized data lake for retroactive hunting against the build numbers patched by the August 2024 update
- Audit which tenants and accounts possess high-privileged access to virtual networks, since exploitation requires that prerequisite
How to Mitigate CVE-2024-38160
Immediate Actions Required
- Apply the August 2024 Microsoft security update to all Windows 10 version 1607 and Windows Server 2016 systems running Hyper-V or network virtualization roles
- Inventory Hyper-V hosts using the affected builds and prioritize those exposed to multi-tenant or untrusted virtual networks
- Rotate credentials for any high-privileged accounts that may have been usable for staging this attack on unpatched hosts
Patch Information
Microsoft released fixes for CVE-2024-38160 in the August 13, 2024 security update cycle. Consult the Microsoft CVE-2024-38160 Update Guide for the specific KB articles applicable to Windows 10 version 1607 and Windows Server 2016. Apply the cumulative update and reboot affected hosts to load the fixed vmswitch and associated drivers.
Workarounds
- Restrict high-privileged accounts on tenant VMs and within the management plane of the virtualization environment, since exploitation requires high privileges
- Segment Hyper-V management and tenant networks so that untrusted workloads cannot reach the network virtualization data path of production hosts
- Where patching is delayed, consider migrating workloads from Windows Server 2016 hosts to fully updated, supported Windows Server releases
# Verify the installed build and confirm the August 2024 update is present on Windows Server 2016
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 10
[System.Environment]::OSVersion.Version
# List Hyper-V virtual switches and confirm the vmswitch driver version after patching
Get-VMSwitch | Format-List Name, SwitchType, NetAdapterInterfaceDescription
Get-Item C:\Windows\System32\drivers\vmswitch.sys | Select-Object Name, VersionInfo
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.


