Vulnerability · Published Jan 14, 2026 · Assigned by GitHub_M

CVE-2026-22851FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)

Medium 6.9

In plain English

A medium-severity race condition in FreeRDP from FreeRDP. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.3%top 78.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23freerdp3.22.0-r0ALPINE-CVE-2026-22851
Debian:12freerdp2no fix listedDEBIAN-CVE-2026-22851
Debian:13freerdp33.15.0+dfsg-2.1+deb13u1DEBIAN-CVE-2026-22851
Debian:14freerdp33.20.2+dfsg-1DEBIAN-CVE-2026-22851
Ubuntu:22.04:LTSfreerdp2no fix listedUBUNTU-CVE-2026-22851
Ubuntu:24.04:LTSfreerdp33.5.1+dfsg1-0ubuntu1.4USN-8105-1
Ubuntu:24.04:LTSfreerdp33.5.1+dfsg1-0ubuntu1.4UBUNTU-CVE-2026-22851
Ubuntu:25.10freerdp33.16.0+dfsg-2ubuntu0.3UBUNTU-CVE-2026-22851
Ubuntu:25.10freerdp33.16.0+dfsg-2ubuntu0.3USN-8105-1
Ubuntu:26.04:LTSfreerdp33.20.2+dfsg-1UBUNTU-CVE-2026-22851

Affected products (as reported)

VendorProductVersions
FreeRDP FreeRDP < 3.20.1

Weakness: CWE-362, CWE-416 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

References