Hyper-V RemoteFX vGPU Remote Code Execution Vulnerability (CVE-2020-1042)
Hyper-V RemoteFX vGPU fails to properly validate input from an authenticated guest user, allowing a crafted application to attack third-party video drivers on the host. An attacker could then cause the host operating system to execute arbitrary code.
Discovered by Piotr Bania Follow
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists when Hyper-V RemoteFX vGPU on a host server fails to properly validate input from an authenticated user on a guest operating system. To exploit the vulnerability, an attacker could run a specially crafted application on a guest operating system, attacking certain third-party video drivers running on the Hyper-V host. This could then cause the host operating system to execute arbitrary code. An attacker who successfully exploited the vulnerability could execute arbitrary code on the host operating system. There is no patch to fix this vulnerability, and the update listed will forcibly disable RemoteFX when applied. More information can be found in the FAQ below. The software listed in the Security Updates table indicates those operating systems for which RemoteFX vGPU is currently available. RemoteFX vGPU has been deprecated in Windows Server 2019 and customers are advised to use Discrete Device Assignment (DDA) instead of RemoteFX vGPU. DDA was introduced in Windows Server 2016.
FAQ
How do I know if I'm using RemoteFX? Please review the information here to determine if you are using RemoteFX. How can I protect my server from this vulnerability? If you are running Windows Server 2016 or Windows Server 2019, we recommend you use Discrete Device Assignment (DDA) as opposed to RemoteFX vGPU to enable graphics virtualization. If you are running windows Server 2012 R2 or older, we recommend not using RemoteFX vGPU. Please see Plan for GPU acceleration in Windows Server for more information. What steps should I take if RemoteFX is required in my environment? Customers who require RemoteFX in their environment can review the information here . Where can I find more information about the deprecation of RemoteFX? Features removed or planned for replacement starting Windows Server 2019 Features removed or planned for replacement starting with Windows Server, version 1803 Why is Microsoft planning to disable and remove RemoteFX instead of fixing the vulnerability? In October 2019, Microsoft announced that we were stopping development of Remote FX and building new functionality. For Windows 10 version 1809 and higher, and Windows Server 2019, RemoteFX vGPU is no longer supported or actively developed. Since these newly identified vulnerabilities are architectural in nature, and the feature is already deprecated on newer versions of Windows, Microsoft has determined that disabling and removing RemoteFX is a better course of action. Microsoft has developed a different platform that is inherently much more secure. Please see Plan for GPU acceleration in Windows Server for more information.
Windows Hyper-V
Windows Hyper-V
Microsoft
Microsoft
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the RemoteFX vGPU component does not properly validate input coming from a guest operating system before passing it to third-party video drivers on the host.
Impact
An attacker who successfully exploited the vulnerability could execute arbitrary code on the host operating system; there is no patch, and the update forcibly disables RemoteFX.
What the attacker needed
Authenticated user on a guest OS; RemoteFX vGPU enabled on the host
The fix
The update forcibly disables RemoteFX; Microsoft recommends using Discrete Device Assignment (DDA) instead, or not using RemoteFX vGPU on older servers.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Hyper-V is Microsoft's virtualisation software that lets one physical computer run several virtual machines. RemoteFX vGPU is a feature that shares the host's graphics card with those virtual machines. The bug means a user inside a virtual machine can send bad input through the shared graphics driver and make the host run their code, escaping the virtual machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.