Vulnerability DatabaseCVE-2026-142099

CVE-2026-142099: 
Rocky Linux vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Exploitability

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

Exploitation steps

  1. Identify target configuration: Confirm the target is running FreeRDP before 3.34.0 on Windows with async RDPDR and dynamic drive hotplug enabled (/drive:hotplug,DynamicDrives), as the vulnerability only manifests in this configuration.
  2. Establish an RDP session: Connect the vulnerable FreeRDP Windows client (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).
  3. Race the disconnect: Trigger an RDP session disconnect (e.g., by closing the server connection or sending a disconnect PDU) at the precise moment the hotplug worker thread is between CreateThread() and the write to rdpdr->hotplug_wnd = hwnd at line 453 of rdpdr_main.c.
  4. Trigger use-after-free: If the race is won, the channel teardown path frees 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.
  5. Observe impact: The client crashes or exhibits undefined behavior due to heap corruption; under Windows Full PageHeap, a first-chance access violation (c0000005) is raised in drive_hotplug_thread_func (FreeRDP Advisory).

Indicators of compromise

  • Process: FreeRDP client process (wfreerdp.exe) crashing unexpectedly during or immediately after RDP session disconnect, particularly when drive hotplug is enabled.
  • Logs: Windows application event log entries showing access violation (0xc0000005) in freerdp_client3!drive_hotplug_thread_func or freerdp_client3!rdpdr_virtual_channel_event_terminated.
  • Memory/Debugging: Windows Full PageHeap or Application Verifier reports of a write to a freed heap allocation traceable to rdpdr_virtual_channel_event_terminated() in the free stack; CDB/WinDbg first-chance exceptions in drive_hotplug_thread_func+0x37f.
  • File System: Crash dump files (.dmp) generated by Windows Error Reporting for wfreerdp.exe around the time of RDP session teardown (FreeRDP Advisory).

Mitigation and workarounds

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

Community reactions

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

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

freerdp2

Fixed

sid

freerdp3

Fixed

trixie

freerdp3

Fixed

Source: This report was generated using AI

Related Rocky Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-142107MEDIUM6.5
  • Rocky Linux logoRocky Linux
  • gvnc-devel
NoYesDec 02, 2026
CVE-2026-142090MEDIUM6
  • Rocky Linux logoRocky Linux
  • netatalk
NoYesDec 02, 2026
CVE-2026-142088MEDIUM6
  • Rocky Linux logoRocky Linux
  • netatalk
NoYesDec 02, 2026
CVE-2026-142105MEDIUM5.3
  • Python logoPython
  • python3-jwcrypto
NoYesDec 02, 2026
CVE-2026-142089LOW2.3
  • Rocky Linux logoRocky Linux
  • netatalk
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management