FreeRDP
FreeRDP: Integer Overflow in `freerdp_image_copy_from_icon_data` Bypasses Bounds Check
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.27.0, freerdp_image_copy_from_icon_data in libfreerdp/codec/color.c calculates nWidth multiplied by nHeight multiplied by FreeRDPGetBytesPerPixel(format) in 32-bit arithmetic. A malicious RDP server can send a RAIL TS_ICON_INFO update with dimensions such as 32768 by 32768 and 32 bits per pixel so the required-size calculation wraps, bypassing the cbBitsColor source bounds check before freerdp_image_copy_no_overlap reads attacker-controlled icon data. This affects RemoteApp clients using the vulnerable library path, while xfreerdp has a caller-side mitigation. This issue is fixed in version 3.27.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.27.0
Fixed in 3.27.0
Mitigation
Upgrade FreeRDP to 3.27.0 or later.
References
- Vendor advisory github.com/FreeRDP/FreeRDP/security/advisories…
- Patch github.com/FreeRDP/FreeRDP/pull/12877
- Patch github.com/FreeRDP/FreeRDP/commit/e4ae473da292…
1 more
- Release notes github.com/FreeRDP/FreeRDP/releases/tag/3.27.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.