
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-26965 is a heap out-of-bounds write vulnerability in FreeRDP's RLE planar bitmap decompression path, classified as CWE-787 (Out-of-bounds Write) / CWE-122 (Heap-based Buffer Overflow). It affects all FreeRDP versions prior to 3.23.0 and was disclosed on February 25, 2026. A malicious RDP server can exploit this to perform a heap OOB write with attacker-controlled offset and pixel data on any connecting FreeRDP client, potentially enabling control-flow hijacking and arbitrary code execution. The vulnerability carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory).
The root cause is a missing destination bounds check in planar_decompress_plane_rle() within libfreerdp/codec/planar.c. The function writes into pDstData at offset ((nYDst+y) * nDstStep) + (4*nXDst) + nChannel without verifying that (nYDst+nSrcHeight) fits within the destination height or that (nXDst+nSrcWidth) fits within the destination stride. When TempFormat != DstFormat (e.g., when the NA bit is set, causing BGRX32 vs BGRA32 mismatch), pDstData is redirected to planar->pTempData — a desktop-sized scratch buffer — while nYDst is only validated against the smaller surface dimensions via is_within_surface(). The RAW decode path (planar_decompress_planes_raw()) contains equivalent bounds checks at lines 620–636, but these were absent from the RLE path. The fix, committed in a0be5cb, adds the missing nYDst + nSrcHeight > nTotalHeight and (nXDst + nSrcWidth) * bpp > nDstStep guards before entering the RLE branch (GitHub Commit, GitHub Advisory).
A malicious RDP server can trigger a heap buffer overflow write of up to 132,096 bytes past the end of pTempData on any connecting FreeRDP client, with attacker-controlled offset and pixel data. On systems where the desktop resolution is 128×128 or smaller (a server-controlled parameter via RDPGFX_RESET_GRAPHICS_PDU), pTempData is allocated on the brk heap below glibc's 128 KB mmap threshold, placing it contiguously with other codec structures. Under this deterministic heap layout, the OOB write can overwrite the NSC_CONTEXT.decode function pointer (demonstrated as 0xFF414141FF414141) and adjacent fields including Planes*, palette*, and priv*, enabling control-flow hijacking and potential arbitrary code execution. The attack requires only that a user connect to a malicious RDP server — no special privileges are needed on either side (GitHub Advisory).
A proof-of-concept exploit (ASAN-confirmed codec-level harness) is publicly available in the GitHub Security Advisory, demonstrating heap buffer overflow and function pointer overwrite with attacker-controlled values. There is no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.039% (0.000390), indicating low current exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (GitHub Advisory, Feedly).
RDPGFX_RESET_GRAPHICS_PDU specifying a desktop resolution of 128×128 or smaller. This forces pTempData (96 KB) to be allocated on the brk heap below glibc's 128 KB mmap threshold, placing it adjacent to NSC_CONTEXT and other codec structures.RDPGFX_CREATE_SURFACE_PDU with a large surface (e.g., 4096×4096) using GFX_PIXEL_FORMAT_ARGB_8888. This ensures is_within_surface() passes for large nYDst values.0x30), triggering the TempFormat != DstFormat condition that redirects writes to pTempData.nYDst=322 (for 128×128 desktop), which passes is_within_surface() against the large surface but causes nYDst + nSrcHeight = 450 > allocRows = 192, triggering the OOB write into adjacent heap memory.[0x41, 0x41, 0x41, 0xFF] and overwriting the 8-byte NSC_CONTEXT.decode function pointer with 0xFF414141FF414141.nsc_process_message() on the corrupted NSC_CONTEXT, the overwritten decode function pointer is invoked, redirecting control flow to the attacker-controlled address (GitHub Advisory).RDPGFX_RESET_GRAPHICS_PDU packets specifying very small desktop dimensions followed by large surface creation commands.xfreerdp, wfreerdp, or similar) crashing with segmentation faults or SIGSEGV shortly after connecting to an RDP server; crash dumps showing corrupted function pointers in NSC_CONTEXT structures (e.g., pointer values like 0xFF414141FF414141).planar_decompress_plane_rle at planar.c:436 or freerdp_bitmap_decompress_planar at planar.c:958; application crash logs from FreeRDP client with stack traces involving planar_decompress_plane_rle() and nsc_process_message().The primary remediation is to upgrade FreeRDP to version 3.23.0 or later, which includes the fix committed in a0be5cb adding the missing destination bounds checks before the RLE decode path (GitHub Commit, GitHub Advisory). Linux distribution packages (Fedora, Ubuntu, RHEL/AlmaLinux/Oracle Linux, openSUSE, Debian, Mageia, Amazon Linux 2) have released updated packages incorporating this fix. As a workaround until patching is possible, restrict FreeRDP client connections to trusted, known-good RDP servers only, and avoid connecting to untrusted or unknown RDP endpoints. Disabling the RDP8 Graphics Pipeline (RDPGFX) via client configuration may also reduce exposure, though this may impact functionality.
The vulnerability was covered by The Hacker Wire shortly after disclosure, highlighting the heap overflow and RCE potential (The Hacker Wire). Multiple Linux distribution security teams (Red Hat, openSUSE, Ubuntu, Debian, AlmaLinux, Oracle Linux, Mageia, Amazon Linux) issued advisories and updated packages within weeks of the disclosure. The Phoronix community noted the FreeRDP 3.23.0 release addressing this and related issues (Phoronix). VulDB and infosec.exchange also tracked and discussed the vulnerability in the security community.
Fix availability across major Linux distributions and their releases.
bookworm
freerdp2
sid
freerdp3: 3.23.0+dfsg-1
trixie
freerdp3: 3.15.0+dfsg-2.1+deb13u1
bionic (esm-apps)
freerdp
bionic (esm-infra)
freerdp2
devel
freerdp3
focal (esm-infra)
freerdp2
jammy
freerdp2
noble
freerdp3: 3.5.1+dfsg1-0ubuntu1.4
noble (esm-apps)
freerdp2
questing
freerdp3: 3.16.0+dfsg-2ubuntu0.3
RHEL 8
:appstream:freerdp-2:2.11.7-4.el8_10.src
RHEL 9
:appstream:freerdp-2:2.4.1-3.el9_0.2.src
RHEL 10
freerdp-2:3.10.3-3.el10_0.3.src
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."