Double Free
CVE-2026-64621
Summary
FreeRDP versions 3.x through 3.27.1 contains a Double Free vulnerability in 'freerdp_client_rdp_file_apply_to_settings()' in 'client/common/file.c' file when parsing the 'selectedmonitors' field of a '.rdp' connection file. The 'MonitorIds' array is allocated through the settings object, and a raw non-owning pointer to it is freed on the 'strtoul' error path without clearing 'settings->MonitorIds', leaving it dangling; at teardown 'freerdp_settings_free()' frees the same buffer again. An attacker who convinces a victim to open a crafted '.rdp' file with oversized monitor tokens can trigger a size-controlled double-free in any FreeRDP CLI client (xfreerdp/sdl-freerdp/wlfreerdp) in the default configuration.
- LOW
- LOCAL
- HIGH
- UNCHANGED
- REQUIRED
- NONE
- LOW
- HIGH
CWE-415 - Double Free
The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.
Advisory Timeline
- Published