CVE-2026-137452 in FreeRDP
Summary
by MITRE • 11/26/2026
FreeRDP before 3.33.0 contains a race condition in asynchronous RDPDR IRP processing that allows malicious RDP servers to leak client memory through non-atomic wStream reference count updates. Attackers can send repeated IRPs, such as smartcard redirection requests, so concurrent Stream_Release() calls lose decrements and accumulate unreleased streams, exhausting memory and causing denial of service.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in FreeRDP versions prior to 3.33.0 represents a critical race condition within the asynchronous processing logic for Remote Desktop Protocol Device (RDPDR) Information Requests or IRPs. This flaw specifically targets the handling of stream reference counts, which are essential mechanisms for managing memory allocation and deallocation during data transmission between client and server components. In this context, an RDP session involves complex state management where multiple streams may be active simultaneously to handle various redirection services such as printer, drive, or smartcard sharing. The core technical deficiency lies in the non-atomic nature of the wStream reference count updates. When a stream is released, the system must decrement its reference counter and potentially free associated memory if the count reaches zero. However, because this operation is not performed atomically, it creates a narrow but exploitable window where concurrent threads can read stale values before writing back updated ones, leading to lost decrements.
From an operational perspective, this race condition allows malicious RDP servers to trigger a denial of service against the FreeRDP client by inducing memory exhaustion. An attacker controlling or manipulating the remote server side of the connection can send repeated IRPs, particularly those associated with smartcard redirection requests, which are known to generate significant stream activity. By flooding the client with these concurrent requests, the attacker forces multiple Stream_Release() calls to execute simultaneously on the same underlying data structures. Due to the race condition, several threads may read the current reference count before any of them have written back their respective decrements. This results in a scenario where the actual number of active references is higher than what the system believes it holds. Consequently, memory that should be freed remains allocated because the reference count never reaches zero, leading to an accumulation of unreleased streams and progressive heap exhaustion until the client application crashes or becomes unresponsive.
This vulnerability aligns with CWE-362, which classifies race conditions involving concurrent access and updates to a shared resource without adequate locking mechanisms. The specific mechanism here involves a check-then-act pattern where the read of the reference count and the subsequent write are not isolated from other threads' operations. Furthermore, in terms of offensive security frameworks such as MITRE ATT&CK, this behavior can be categorized under T1496 Resource Hijacking or more broadly within denial-of-service tactics that aim to disrupt service availability by consuming system resources. The exploitation does not require code execution on the target machine but rather relies on protocol-level manipulation to degrade performance and stability, making it a significant risk for organizations relying on FreeRDP for remote access infrastructure where untrusted or compromised servers might be encountered.
Mitigation strategies primarily involve upgrading to version 3.33.0 or later of FreeRDP, which includes patches ensuring that reference count updates are performed atomically using appropriate synchronization primitives such as atomic operations or mutex locks around the critical section handling stream release logic. For environments where immediate patching is not feasible, network-level controls should be implemented to restrict connections from untrusted RDP servers and to monitor for anomalous patterns of IRP traffic that could indicate an active exploitation attempt. Additionally, developers integrating FreeRDP into custom applications should ensure they are using the latest stable release and consider implementing resource limits or timeouts on stream allocation to mitigate the impact even if a race condition were partially triggered in legacy versions.