Skip to main content
Vulnerability Database/CVE-2026-109942

CVE-2026-109942: FreeRDP NULL Pointer DOS Vulnerability

CVE-2026-109942 is a denial of service vulnerability in FreeRDP caused by NULL pointer dereference in RD Gateway packet processing. This article covers technical details, affected versions, and mitigation strategies.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109942 Overview

CVE-2026-109942 is a NULL pointer dereference vulnerability [CWE-476] in FreeRDP, an open-source implementation of the Remote Desktop Protocol (RDP). The flaw resides in the rdg_process_close_packet function within libfreerdp/core/gateway/rdg.c. FreeRDP versions 2.3.0 through versions before 3.32.0 are affected. The function rdg_process_control_packet accepts a header-only PKT_TYPE_CLOSE_CHANNEL packet and forwards a null payload without validation. A malicious or compromised Remote Desktop (RD) Gateway can send an eight-byte CLOSE_CHANNEL header to crash any connecting FreeRDP client.

Critical Impact

A malicious RD Gateway can crash connecting FreeRDP clients by sending a crafted eight-byte header, enabling denial-of-service attacks against remote desktop users.

Affected Products

  • FreeRDP versions 2.3.0 and later
  • FreeRDP versions before 3.32.0
  • Applications and distributions bundling vulnerable FreeRDP libraries

Discovery Timeline

  • 2026-10-13 - CVE-2026-109942 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-109942

Vulnerability Analysis

FreeRDP implements the RDP Gateway (RDG) protocol in libfreerdp/core/gateway/rdg.c. The gateway protocol defines several control packet types, including PKT_TYPE_CLOSE_CHANNEL, used to signal the orderly termination of a channel. The dispatcher function rdg_process_control_packet reads the packet header and routes payloads to type-specific handlers.

For the close-channel case, the dispatcher calls rdg_process_close_packet and passes the stream containing the payload. When an attacker sends only the eight-byte header without any trailing payload, the stream pointer passed to the handler is NULL. The handler dereferences this stream without a prior validity check, triggering a NULL pointer dereference and crashing the process.

Root Cause

The root cause is missing input validation in two linked functions. rdg_process_control_packet does not verify that a payload accompanies the PKT_TYPE_CLOSE_CHANNEL header before invoking the handler. rdg_process_close_packet does not validate the stream argument before dereferencing it. This classic NULL pointer dereference [CWE-476] occurs on the client side during active RDP sessions routed through an RD Gateway.

Attack Vector

Exploitation requires an attacker to control or compromise an RD Gateway that a FreeRDP client connects to. User interaction is required because the victim must initiate a connection through the attacker-controlled gateway. Once the TLS handshake and RDG session are established, the gateway sends an eight-byte PKT_TYPE_CLOSE_CHANNEL header with no payload. The FreeRDP client process crashes immediately, terminating the user's remote session.

The vulnerability mechanism is described in the GitHub Security Advisory GHSA-f46f-pxh9-w2rh and the VulnCheck Advisory on FreeRDP.

Detection Methods for CVE-2026-109942

Indicators of Compromise

  • Unexpected FreeRDP client process crashes shortly after establishing connections through an RD Gateway.
  • Core dumps or crash reports referencing rdg_process_close_packet or rdg_process_control_packet in libfreerdp/core/gateway/rdg.c.
  • Repeated short-lived RDG sessions terminating within milliseconds of the initial handshake.

Detection Strategies

  • Inspect network traffic for PKT_TYPE_CLOSE_CHANNEL packets with a total length equal to eight bytes and no payload.
  • Correlate FreeRDP client crashes with the remote RD Gateway endpoint to identify malicious or compromised gateways.
  • Monitor endpoint telemetry for abnormal termination of processes linking against libfreerdp shared libraries.

Monitoring Recommendations

  • Enable crash reporting and core-dump collection on hosts running FreeRDP clients to capture evidence of attempted exploitation.
  • Log all outbound connections to RD Gateways and alert when connection attempts result in sub-second disconnections.
  • Track installed FreeRDP versions across the fleet and flag any host still running a release older than 3.32.0.

How to Mitigate CVE-2026-109942

Immediate Actions Required

  • Upgrade FreeRDP to version 3.32.0 or later on all client systems.
  • Audit the inventory of applications bundling FreeRDP, including Remmina, xfreerdp, and third-party RDP clients, and apply vendor-supplied updates.
  • Restrict outbound RDG connections to a known allow-list of trusted RD Gateway hosts.

Patch Information

The FreeRDP project fixed the issue in version 3.32.0. The patch adds payload validation in rdg_process_control_packet and a NULL check in rdg_process_close_packet before any dereference. Patch details are available in the GitHub Security Advisory GHSA-f46f-pxh9-w2rh.

Workarounds

  • Avoid connecting FreeRDP clients through untrusted or publicly reachable RD Gateways until patched versions are deployed.
  • Use direct RDP connections where network architecture permits, bypassing the vulnerable RDG code path.
  • Terminate TLS at a trusted reverse proxy that validates RDG framing before forwarding traffic to the FreeRDP client.
bash
# Verify installed FreeRDP version on Linux hosts
xfreerdp --version

# Example upgrade on Debian-based systems once patched packages are published
sudo apt update && sudo apt install --only-upgrade freerdp2-x11 libfreerdp2-2

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.