All reports
Medium

freerdp: FreeRDP: Heap buffer overflow via integer overflow in surface creation

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-121950

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-21

Description

FreeRDP before 3.32.2 does not check the product of surface dimensions in gdi_CreateSurface when handling an RDPGFX CREATE_SURFACE PDU, causing an integer wrap and heap buffer overflow on 32-bit builds and an approximately 4 GiB allocation on 64-bit builds. A malicious RDP server can send a CREATE_SURFACE PDU with width and height 32766 to a connecting client to corrupt heap memory or cause a denial of service.

A flaw was found in FreeRDP. A malicious Remote Desktop Protocol (RDP) server can cause a denial of service (DoS) or memory corruption on a connecting client. This issue occurs because FreeRDP does not properly validate graphical surface dimensions, resulting in an integer overflow during memory allocation calculations. By sending a specially crafted surface creation message, a rogue server can trigger excessive memory consumption or a heap-based buffer overflow, causing the client application to crash.