Skip to main content
Vulnerability Database/CVE-2025-24084

CVE-2025-24084: Windows 11 22h2 WSL RCE Vulnerability

CVE-2025-24084 is a remote code execution flaw in Windows Subsystem for Linux on Windows 11 22h2 caused by untrusted pointer dereference. Attackers can execute unauthorized code locally. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated:

CVE-2025-24084 Overview

CVE-2025-24084 is an untrusted pointer dereference vulnerability in Windows Subsystem for Linux (WSL) that allows an unauthorized attacker to execute arbitrary code locally. This vulnerability exists due to improper handling of pointer references within the WSL kernel component, enabling attackers to potentially gain control over system execution flow without requiring any user privileges.

Critical Impact

This vulnerability allows local attackers to execute arbitrary code with elevated privileges on affected Windows systems running WSL, potentially leading to full system compromise.

Affected Products

  • Microsoft Windows 11 22H2
  • Microsoft Windows 11 23H2
  • Microsoft Windows 11 24H2 (ARM64 and x64)
  • Microsoft Windows Server 2022
  • Microsoft Windows Server 2022 23H2
  • Microsoft Windows Server 2025

Discovery Timeline

  • 2025-03-11 - CVE-2025-24084 published to NVD
  • 2025-07-07 - Last updated in NVD database

Technical Details for CVE-2025-24084

Vulnerability Analysis

This vulnerability is classified as CWE-822 (Untrusted Pointer Dereference), which occurs when an application dereferences a pointer that contains a location for memory that was never intended to be accessible. In the context of Windows Subsystem for Linux, this flaw enables an attacker to manipulate pointer values that the WSL kernel component subsequently uses without proper validation.

The attack requires local access to the target system but notably does not require any prior privileges or user interaction. This makes the vulnerability particularly dangerous in multi-user environments or scenarios where attackers have limited initial access to a system. Successful exploitation results in complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of CVE-2025-24084 lies in insufficient validation of pointer values within the Windows Subsystem for Linux kernel interface. When processing certain operations, the WSL component fails to verify that pointer addresses originate from trusted sources before dereferencing them. This allows an attacker to supply crafted pointer values that reference arbitrary memory locations, leading to controlled memory access and ultimately code execution.

The vulnerability demonstrates a fundamental weakness in pointer handling where the software assumes pointer values can be trusted without verification, violating the principle of never trusting user-supplied data in security-critical contexts.

Attack Vector

The attack vector for CVE-2025-24084 is local, meaning an attacker must have access to the target system to exploit this vulnerability. The attack complexity is low, and no privileges are required to execute the exploit. The attacker can craft malicious input to the WSL interface that contains attacker-controlled pointer values.

When the vulnerable WSL component processes this input, it dereferences the untrusted pointer without proper validation. This allows the attacker to redirect program execution to arbitrary memory locations, enabling code execution in the context of the WSL kernel component. The exploitation does not require any user interaction, making it suitable for automated attack scenarios.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2025-24084

Indicators of Compromise

  • Unusual WSL process behavior or unexpected child processes spawned from WSL components
  • Abnormal memory access patterns in Windows kernel logs related to WSL operations
  • Unexpected system calls or API invocations from WSL-related processes
  • Evidence of privilege escalation attempts originating from WSL context

Detection Strategies

  • Monitor for suspicious process creation events associated with wsl.exe and related WSL binaries
  • Implement endpoint detection rules for anomalous pointer operations in WSL kernel components
  • Deploy behavioral analysis to detect code execution patterns inconsistent with normal WSL usage
  • Utilize Windows Event Logs to track WSL service anomalies and crash events

Monitoring Recommendations

  • Enable Windows Defender Exploit Guard with Address Space Layout Randomization (ASLR) enforcement
  • Configure audit policies to log WSL-related kernel operations and process events
  • Implement SentinelOne's behavioral AI engine to detect exploitation attempts in real-time
  • Monitor for unexpected memory mapping operations within WSL processes

How to Mitigate CVE-2025-24084

Immediate Actions Required

  • Apply the Microsoft security update for CVE-2025-24084 immediately on all affected systems
  • Audit systems for evidence of exploitation prior to patching
  • Consider temporarily disabling WSL on systems where it is not business-critical until patches can be applied
  • Ensure endpoint protection solutions are updated with the latest detection signatures

Patch Information

Microsoft has released security updates to address CVE-2025-24084. Organizations should apply the patches available through Windows Update or the Microsoft Update Catalog. The official security guidance is available at the Microsoft Security Response Center. System administrators should prioritize patching due to the local code execution impact and the lack of privilege requirements for exploitation.

Workarounds

  • Disable Windows Subsystem for Linux feature on systems where it is not required using Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Restrict local access to affected systems to reduce the attack surface
  • Implement application whitelisting to prevent unauthorized code execution
  • Use Windows Defender Application Control (WDAC) policies to restrict WSL execution to authorized users only
bash
# Disable WSL feature via PowerShell (requires administrator privileges)
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# Alternatively, disable via DISM
dism.exe /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.