FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)
Summary
FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)
Original description
The description as published by the source.
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, a race condition between the RDPGFX dynamic virtual channel thread and the SDL render thread leads to a heap use-after-free. Specifically, an escaped pointer to sdl->primary (SDL_Surface) is accessed after it has been freed during RDPGFX ResetGraphics handling. This vulnerability is fixed in 3.20.1.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2026-22851 freerdp2
- Ubuntu UBUNTU-CVE-2026-22851 freerdp
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com