All reports
High

freerdp: FreeRDP: Heap-based buffer overflow via surface key truncation in RDPGFX

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-121958

Probability of exploitation in the next 30 days: 0.31%

FIRST EPSS · 2026-11-22

Description

FreeRDP through 3.32.1 has a heap out-of-bounds write in the RDPGFX client because the delete_surface callback truncates surface hash keys to 16 bits, leaving the surface table inconsistent so HashTable_GetKeys writes past its allocated key array. A malicious or man-in-the-middle RDP server can exploit this by creating surfaceId 0xFFFF, closing the RDPGFX channel, sending repeated DELETESURFACE PDUs, and then sending ENDFRAME or RESETGRAPHICS.

A flaw was found in FreeRDP. This vulnerability allows a remote attacker to cause a Denial of Service (DoS) or potentially execute arbitrary code on the client system. An attacker operating a malicious Remote Desktop Protocol (RDP) server, or acting in a man-in-the-middle position, can exploit this issue by sending specially crafted graphics pipeline commands. This occurs due to improper surface key truncation, causing an internal table to become inconsistent and triggering a heap-based buffer overflow when data is written past allocated memory boundaries.