Skip to content
Memory corruption Advisory Advanced CVE-2025-62220

Windows Subsystem for Linux GUI Remote Code Execution Vulnerability (CVE-2025-62220)

A heap-based buffer overflow exists in the Windows Subsystem for Linux GUI, specifically in the Remote Desktop client component, which can lead to remote code execution in the Windows host process. An attacker who can interact with the protocol could potentially deliver a crafted attack remotely, though user interaction is required.

YingQi Shi Follow

Originally disclosed on Microsoft

High 8.8 View original

Description

Heap-based buffer overflow in Windows Subsystem for Linux GUI allows an unauthorized attacker to execute code over a network.

FAQ

Where do I find installation steps for WSL and WSLg? If you have an existing WSL installation without WSLg and want to update to the latest version of WSL which includes WSLg, run the command wsl --update from an elevated command prompt. To learn more visit the GitHub Repo .

FAQ

According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). How could an attacker exploit this vulnerability? A vulnerability in the Remote Desktop client can lead to remote code execution in the Windows host process (msrdc.exe). While the typical scenario involves local communication between a Windows host and a Linux VM, the attack vector is Network (AV:N) because it relies on a network protocol. Although user interaction is required, the risk extends beyond local use: the client supports loading plugins via the /plugin option, and the protocol is open source. This means a crafted attack could potentially be delivered remotely if an attacker can interact with the protocol.

Windows Subsystem for Linux GUI

Windows Subsystem for Linux GUI

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by YingQi Shi (@Mas0n) with DBAPPSecurity WeBin Lab. 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 a heap-based buffer overflow in the Remote Desktop client used by WSLg, where crafted protocol input is not properly bounds-checked before being written to memory.

Impact

An attacker could potentially execute code in the Windows host process over the network, but user interaction is required and the text only says a crafted attack could potentially be delivered remotely.

What the attacker needed

User interaction required; attacker can interact with the protocol

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.

A buffer overflow is when a program writes more data into a fixed-size memory area than it can hold, corrupting nearby memory. Here that happens in the software that draws Linux graphical apps on Windows, and a crafted message over the network could let an attacker run their own code on the machine. The victim still has to do something, such as open or interact with the crafted content.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by YingQi Shi

View all

2 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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.