Heap out of bounds read in aFreeRDP graphics pipeline
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-262p-h989-vmpv. Fix status from GitHub.
Summary
The aFreeRDP Android client in versions up to and including 3.32.0 has a heap out of bounds read in its graphics pipeline. Window-mapped GFX surfaces take mappedWidth and mappedHeight values from the server without checking them against the surface buffer size, so the pixel copy can read past the heap allocation. A malicious RDP server can trigger this without authentication or user interaction, and only the Android client is affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
### Impact Out of bounds read when using window mapped `GFX` surfaces. Only the android client is affected. ### Details When a surface is windowMapped via `RDPGFX_MAP_SURFACE_TO_WINDOW_PDU`, the server supplies `mappedWidth` and `mappedHeight` values (`UINT32`) that are stored in the `gdiGfxSurface` structure with no validation against the actual surface buffer dimensions: ``` surface->mappedWidth = surfaceToWindow->mappedWidth; // no bounds check surface->mappedHeight = surfaceToWindow->mappedHeight; // no bounds check ``` In the Android client's android_UpdateWindowFromSurface, these unvalidated values control the pixel copy region: ``` freerdp_image_copy((BYTE*)dst, ..., width, height, surface->data, ..., surface->scanline, ...); ``` If `mappedWidth > surface->width` or `mappedHeight > surface->height`, freerdp_image_copy reads beyond the heap allocation. The `WINPR_ASSERT` guard in `freerdp_image_copy` compiles to a no-op in release builds (`NDEBUG` defined). ### Workarounds Do not use `GFX` ### Credits Adiel Sol, Arad Inbar, Erez Cohen, Nir Somech, Ben Grinberg, Daniel Lubel, Shir Sadon DREAM Security Research Team
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | aFreeRDP (c) | <= 3.32.0 | 3.32.1 | Patch available | GHSA-262p-h989-vmpv |
- aFreeRDP (c) Vendor— Affected <= 3.32.0 Fixed in 3.32.1 Patch available GHSA-262p-h989-vmpv
Remediation
Upgrade aFreeRDP to version 3.32.1. Until the update is applied, the source description advises not using GFX.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-262p-h989-vmpv aFreeRDP (c) Fixed in 3.32.1 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-262p-h989-vmpv
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences