CVE-2026-22851: FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)
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 (SDLSurface) is accessed after it has been freed during RDPGFX ResetGraphics handling. This vulnerability is fixed in 3.20.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/freerdpto a version that resolves this vulnerability.Fixed in 3.22.0-r0 - Upgrade
Upgrade
ubuntu/freerdp3to a version that resolves this vulnerability.Fixed in 3.5.1+dfsg1-0ubuntu1.4 - Upgrade
Upgrade
ubuntu/freerdp3to a version that resolves this vulnerability.Fixed in 3.16.0+dfsg-2ubuntu0.3 - Upgrade
Upgrade
ubuntu/freerdp3to a version that resolves this vulnerability.Fixed in 3.20.2+dfsg-1 - Upgrade
Upgrade
debian/freerdp3to a version that resolves this vulnerability.Fixed in 3.15.0+dfsg-2.1+deb13u1 - Upgrade
Upgrade
debian/freerdp3to a version that resolves this vulnerability.Fixed in 3.20.2+dfsg-1 - Upgrade
Upgrade
debian/freerdp3to a version that resolves this vulnerability.Fixed in 3.15.0+dfsg-2.1+deb13u1Fixed in 3.20.2+dfsg-1 - Upgrade
Upgrade
FreeRDPto a version that resolves this vulnerability.Fixed in 3.20.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-22851?
CVE-2026-22851 has been classified as a critical vulnerability due to the potential for a use-after-free condition leading to arbitrary code execution.
How do I fix CVE-2026-22851?
To remediate CVE-2026-22851, upgrade FreeRDP to version 3.20.1 or later.
What versions of FreeRDP are affected by CVE-2026-22851?
FreeRDP versions prior to 3.20.1 are affected by CVE-2026-22851.
What impact does CVE-2026-22851 have on user systems?
CVE-2026-22851 may allow an attacker to execute arbitrary code on affected systems, potentially leading to a full system compromise.
Is CVE-2026-22851 specific to any operating systems?
CVE-2026-22851 is primarily a concern for systems using FreeRDP with SDL as the RDP client.