
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-142099 is a use-after-free (UAF) vulnerability in FreeRDP's Windows RDPDR drive hotplug worker, located in channels/rdpdr/client/rdpdr_main.c. It affects all FreeRDP versions before 3.34.0 and was disclosed on December 2, 2026. The flaw occurs during channel teardown when a session disconnects while the hotplug thread is still initializing, causing drive_hotplug_thread_func() to write a window handle into an already-freed rdpdrPlugin structure, resulting in heap corruption or client crashes. It carries a CVSS v3.1 base score of 4.0 (Medium) and a CVSS v4.0 base score of 2.1 (Low) (Github Advisory, FreeRDP Advisory).
The root cause is a race condition (CWE-416: Use After Free) in the Windows-specific RDPDR hotplug worker thread. When an RDP session disconnects, the CHANNEL_EVENT_DISCONNECTED handler joins rdpdr->thread and calls devman_free(), after which CHANNEL_EVENT_TERMINATED frees the rdpdrPlugin structure — but neither handler joins rdpdr->hotplugThread. If the hotplug worker thread is still in its startup phase (between CreateThread() and the write to rdpdr->hotplug_wnd), it will subsequently execute SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)rdpdr) and rdpdr->hotplug_wnd = hwnd against the already-freed plugin allocation, corrupting the heap. The vulnerability was confirmed via an instrumented Windows debug build of wfreerdp.exe with async RDPDR and dynamic drive hotplug enabled; Windows Full PageHeap caught the faulting write at the freed address (FreeRDP Advisory, Vulnerable Source).
Successful exploitation results in a client-side heap write-after-free, which can cause the FreeRDP client process to crash (denial of service) or corrupt heap memory with a controlled window handle value. There is no observed confidentiality impact, and integrity impact is limited to the low-level heap write. The researcher confirmed a client crash under instrumented conditions but has not demonstrated remote code execution, information disclosure, or lateral movement potential from this vulnerability alone (FreeRDP Advisory, Github Advisory).
No public exploit code or in-the-wild exploitation has been observed for CVE-2026-142099. The vulnerability requires a high-complexity timing race condition — the session must disconnect at the precise moment the hotplug worker thread is initializing — and was only reproducible by the reporter using a local synchronization barrier in an instrumented build. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. NVD SSVC assessment classifies exploitation as 'poc' (proof-of-concept level) with technical impact rated 'partial' and automatable as 'no' (Github Advisory, FreeRDP Advisory).
/drive:hotplug,DynamicDrives), as the vulnerability only manifests in this configuration.wfreerdp.exe) to an RDP server (e.g., sfreerdp-server on Linux) to trigger initialization of the RDPDR channel and the hotplug worker thread via CreateThread(nullptr, 0, drive_hotplug_thread_func, rdpdr, 0, nullptr).CreateThread() and the write to rdpdr->hotplug_wnd = hwnd at line 453 of rdpdr_main.c.rdpdrPlugin via rdpdr_virtual_channel_event_terminated() while the hotplug worker thread continues executing, writing the window handle (hwnd) into the freed memory at offset +0x1F0 (the hotplug_wnd field), corrupting the heap.c0000005) is raised in drive_hotplug_thread_func (FreeRDP Advisory).wfreerdp.exe) crashing unexpectedly during or immediately after RDP session disconnect, particularly when drive hotplug is enabled.0xc0000005) in freerdp_client3!drive_hotplug_thread_func or freerdp_client3!rdpdr_virtual_channel_event_terminated.rdpdr_virtual_channel_event_terminated() in the free stack; CDB/WinDbg first-chance exceptions in drive_hotplug_thread_func+0x37f..dmp) generated by Windows Error Reporting for wfreerdp.exe around the time of RDP session teardown (FreeRDP Advisory).Upgrade FreeRDP to version 3.34.0 or later, which resolves the vulnerability by introducing a new drive_hotplug_thread_initialize() function that moves window class registration and window creation (including the write to rdpdr->hotplug_wnd) into the connect phase before the hotplug thread is spawned, eliminating the race condition. No configuration-based workarounds are documented; however, disabling dynamic drive hotplug (/drive:hotplug,DynamicDrives) on Windows clients would prevent the vulnerable code path from being reached. The fix is available in commit c941dbf (FreeRDP Release, Fix Commit).
The vulnerability was reported by researcher SpyroK05 and published by FreeRDP maintainer akallabeth via a GitHub Security Advisory on December 1–2, 2026. The advisory notes the difficulty of reproducing the issue without a local synchronization barrier, and the FreeRDP 3.34.0 release notes acknowledge an ongoing effort to address AI-generated duplicate vulnerability reports. No significant broader media coverage or notable community commentary beyond the official advisory has been identified (FreeRDP Advisory, FreeRDP Release).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."