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-112277 Overview
CVE-2026-112277 is a heap out-of-bounds read vulnerability in rdesktop through version 1.9.0. The flaw resides in the process_plane() function within bitmap.c and affects clients connecting to malicious or compromised Remote Desktop Protocol (RDP) servers. A hostile server can send malformed 32 bits-per-pixel (bpp) compressed bitmaps that declare a large bitmap geometry while providing a short compressed body. The decoder reads past the end of the receive buffer, causing a crash and denial of service on the client. The issue is tracked under CWE-125 (Out-of-bounds Read).
Critical Impact
Malicious RDP servers can crash any rdesktop client up to and including version 1.9.0 by sending crafted bitmap update PDUs or bitmap cache orders, resulting in client-side denial of service.
Affected Products
- rdesktop versions up to and including 1.9.0
- Linux and Unix systems using rdesktop as their RDP client
- Any downstream distribution or appliance embedding rdesktop 1.9.0 or earlier
Discovery Timeline
- 2026-10-19 - CVE-2026-112277 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in the NVD database
Technical Details for CVE-2026-112277
Vulnerability Analysis
The vulnerability is triggered during the decompression of 32 bpp bitmaps delivered through bitmap update Protocol Data Units (PDUs) or bitmap cache orders. The process_plane() routine in bitmap.c processes the Run-Length Encoding (RLE) planes of a compressed bitmap and reconstructs pixel data for display. When a malicious RDP server declares a bitmap width and height that produces more pixel output than the compressed body actually contains, the decoder keeps reading from the receive buffer well beyond its allocated length. This unbounded heap read terminates the client process and can be weaponized to disrupt RDP sessions or interrupt administrative workflows that depend on rdesktop.
Root Cause
The root cause is missing bounds validation between the declared bitmap geometry and the actual length of the compressed body supplied by the server. process_plane() trusts the server-supplied width, height, and bits-per-pixel fields and does not verify that enough compressed bytes remain in the receive buffer before advancing the read pointer. Consult the upstream source for bitmap.c and the HackMD technical analysis for the exact decode path.
Attack Vector
Exploitation requires a user to initiate an RDP connection from a vulnerable rdesktop client to an attacker-controlled server. The attacker sends a crafted bitmap update PDU or populates a bitmap cache order with a 32 bpp compressed bitmap whose geometry exceeds its payload. Because the attack targets the client, environments where administrators connect outbound to untrusted hosts (jump boxes, honeypots, reverse-RDP scenarios, phishing lures that embed RDP shortcuts) are the primary risk surface. See the VulnCheck advisory for additional context.
// No verified public exploit code is available at the time of writing.
// Refer to the HackMD analysis and upstream Pull Request #437 for the
// specific byte-level trigger and the proposed decoder-side bounds check.
Detection Methods for CVE-2026-112277
Indicators of Compromise
- Unexpected termination or SIGSEGV crashes of the rdesktop process shortly after establishing an outbound RDP session.
- Core dumps whose faulting instruction resides inside process_plane() or adjacent bitmap decompression routines in bitmap.c.
- Outbound TCP connections to port 3389 toward hosts that are not part of the organization's known RDP infrastructure.
Detection Strategies
- Inventory endpoints for installed rdesktop binaries and flag any build at version 1.9.0 or earlier.
- Monitor process-exit telemetry for abnormal rdesktop termination events correlated with recent network connections to port 3389.
- Alert on RDP sessions initiated from administrator workstations to untrusted or newly observed destinations.
Monitoring Recommendations
- Enable crash reporting and core dump collection on Linux hosts that run rdesktop so analysts can inspect faulting stack frames.
- Forward endpoint and network telemetry into a centralized data lake and correlate client crashes with the remote RDP endpoint reached immediately beforehand.
- Track command-line invocations of rdesktop through endpoint detection and response tooling to identify risky outbound connections.
How to Mitigate CVE-2026-112277
Immediate Actions Required
- Identify every host running rdesktop 1.9.0 or earlier and restrict outbound RDP connections to a vetted allowlist of destinations.
- Instruct users and administrators to avoid connecting to untrusted RDP servers until a patched build is deployed.
- Where feasible, migrate to a maintained RDP client such as FreeRDP for workflows that require broad outbound connectivity.
Patch Information
No tagged rdesktop release above 1.9.0 contains the fix at the time of publication. The proposed decoder-side bounds check is tracked in rdesktop Pull Request #437 and discussed in Issue #436. Distributions that package rdesktop should backport the patch from the pull request or rebuild from the upstream master branch once the fix is merged.
Workarounds
- Only connect to RDP servers that are owned and operated by the organization or by a trusted third party.
- Enforce egress firewall rules that limit TCP port 3389 traffic from workstations to an approved list of internal RDP hosts.
- Replace rdesktop with an actively maintained RDP client where the operational environment allows.
# Example egress restriction limiting rdesktop outbound RDP to a known jump host
sudo iptables -A OUTPUT -p tcp --dport 3389 -d 10.10.20.5 -j ACCEPT
sudo iptables -A OUTPUT -p tcp --dport 3389 -j REJECT
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

