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

CVE-2026-112279: rdesktop Heap Out-of-Bounds Read DoS

CVE-2026-112279 is a heap out-of-bounds read denial of service flaw in rdesktop that allows malicious RDP servers to crash clients. This post explains its impact, affected versions, and mitigation steps.

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-112279 Overview

CVE-2026-112279 is a heap out-of-bounds read vulnerability in rdesktop through version 1.9.0. The flaw resides in the process_bmpcache2() function within orders.c and is triggered when the client parses revision-2 bitmap cache orders sent by a Remote Desktop Protocol (RDP) server. A malicious or compromised RDP server can craft an uncompressed order containing oversized width and height fields, or an underflowing mode nibble paired with a short payload, causing memcpy() to read past the end of the receive buffer. The result is a client-side denial of service and potential leakage of adjacent heap memory [CWE-125].

Critical Impact

A malicious RDP server can crash any rdesktop client that connects to it, disrupting remote administration sessions and potentially exposing heap memory contents.

Affected Products

  • rdesktop versions up to and including 1.9.0
  • Linux and Unix distributions packaging rdesktop as the default RDP client
  • Any application or wrapper that embeds the rdesktop codebase for RDP connectivity

Discovery Timeline

  • 2026-10-19 - CVE-2026-112279 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112279

Vulnerability Analysis

The defect lives in process_bmpcache2(), the handler for revision-2 bitmap cache secondary drawing orders in orders.c. When the RDP server sends a bitmap cache update, the client reads the bitmap width, height, and a mode nibble that indicates whether the payload is compressed. The handler then invokes memcpy() to copy the bitmap data from the receive buffer into a local allocation. The function does not validate that the declared width and height values are consistent with the number of bytes actually present in the receive buffer. It also fails to range-check the mode nibble, allowing an integer underflow when the server supplies a small or malformed value together with a truncated payload.

Root Cause

The root cause is missing bounds validation between attacker-controlled metadata and the length of the inbound RDP packet. The process_bmpcache2() routine trusts the server-supplied dimensions and mode value and derives the copy length from them without comparing against the remaining receive buffer size. Because the receive buffer is heap-allocated, the resulting over-read occurs on the heap and yields out-of-bounds reads [CWE-125].

Attack Vector

Exploitation requires a victim to initiate an RDP session to an attacker-controlled or compromised server. User interaction is required because the user must launch rdesktop and connect. Once the TCP session is established, the server returns a crafted revision-2 bitmap cache order containing either very large width and height fields in an uncompressed order or an underflowing mode nibble with a short payload. When process_bmpcache2() processes the order, memcpy() reads past the end of the heap buffer, causing the client to crash or process stale memory.

The vulnerability is described in detail in the HackMD OOB Read Analysis and the VulnCheck Advisory on rdesktop. The affected source is viewable in the GitHub source code file.

// No verified exploit code is available.
// See the HackMD analysis and VulnCheck advisory linked above
// for technical reproduction details.

Detection Methods for CVE-2026-112279

Indicators of Compromise

  • Unexpected crashes or segmentation faults in the rdesktop process shortly after connecting to a remote host
  • Core dumps referencing process_bmpcache2 or memcpy frames in the rdesktop binary
  • Outbound RDP (TCP/3389) connections from workstations to untrusted or newly observed external hosts

Detection Strategies

  • Hunt for rdesktop process terminations correlated with recent outbound RDP sessions in endpoint telemetry
  • Alert on RDP connections originating from administrator workstations to hosts outside approved jump-server ranges
  • Inspect RDP server certificates and banners for anomalies that could indicate attacker-controlled infrastructure

Monitoring Recommendations

  • Collect and retain rdesktop process crash events, including parent process, command line, and destination IP address
  • Monitor DNS and NetFlow records for RDP sessions to low-reputation or geographically unusual destinations
  • Track the installed rdesktop package version across Linux fleets to identify unpatched hosts

How to Mitigate CVE-2026-112279

Immediate Actions Required

  • Inventory all Linux and Unix endpoints that have rdesktop installed and record the installed version
  • Restrict outbound TCP/3389 egress to a short list of trusted internal RDP targets at the firewall or host level
  • Instruct administrators to avoid connecting rdesktop to untrusted or unknown RDP endpoints until a patched build is deployed

Patch Information

At publication, no fixed upstream release is listed in NVD. Track the upstream fix via GitHub Issue #436 and the proposed fix in GitHub Pull Request #437. Apply distribution security updates as they become available, or rebuild rdesktop from source with the referenced patch applied.

Workarounds

  • Replace rdesktop with an actively maintained RDP client such as FreeRDP where feasible
  • Route RDP sessions only through controlled jump servers so clients never terminate on untrusted hosts
  • Enforce egress filtering so that rdesktop can only reach an allow-list of known-good RDP servers
bash
# Example: block outbound RDP except to an approved jump host
sudo iptables -A OUTPUT -p tcp --dport 3389 -d 10.0.10.25 -j ACCEPT
sudo iptables -A OUTPUT -p tcp --dport 3389 -j DROP

# Example: verify installed rdesktop version on Debian/Ubuntu
dpkg -l | grep rdesktop

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.