Skip to content
RCE Advisory Advanced CVE-2020-1041

Hyper-V RemoteFX vGPU Remote Code Execution Vulnerability (CVE-2020-1041)

Hyper-V RemoteFX vGPU failed to properly validate input from an authenticated guest user, allowing a crafted application to make the host execute arbitrary code. The flaw is architectural, so Microsoft disabled RemoteFX rather than patching it.

Discovered by Piotr Bania Follow

Originally disclosed on Microsoft

Critical 8.0 View original

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

The original report as published on the Microsoft Security Response Center, by Discovered by Piotr Bania of Cisco Talos. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 did not properly validate input coming from a guest operating system before passing it to third-party video drivers on the host.

Impact

An attacker with a guest account could execute arbitrary code on the host operating system; Microsoft's response was to disable RemoteFX entirely rather than patch it.

What the attacker needed

Authenticated access to a guest OS; host runs RemoteFX vGPU

The fix

There is no patch; the update forcibly disables RemoteFX, and customers should move to Discrete Device Assignment or stop using RemoteFX vGPU.

How it was found

  1. Get authenticated access to a guest operating system on a Hyper-V host using RemoteFX vGPU.
  2. Run a specially crafted application inside that guest.
  3. The application attacks third-party video drivers on the host.
  4. The host operating system executes arbitrary code.

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 lets one physical server run several virtual machines. RemoteFX vGPU shared the host's graphics card with those machines. A flaw meant someone inside a guest machine could run a program that escaped onto the host, taking control of it.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Discovered by Piotr Bania

View all

5 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.