CVE-2026-22851FreeRDP 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 (SDL_Surface) is accessed after it has been freed during RDPGFX ResetGraphics handling. This vulnerability is fixed in 3.20.1.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | freerdp3 | Fixed | 3.20.2+dfsg-1 | UBUNTU-CVE-2026-22851 |
| Ubuntu 25.10 | freerdp3 | Fixed | 3.16.0+dfsg-2ubuntu0.3 | UBUNTU-CVE-2026-22851 |
| Ubuntu 24.04 | freerdp2 | Fix pending | UBUNTU-CVE-2026-22851 | |
| Ubuntu 24.04 | freerdp3 | Fixed | 3.5.1+dfsg1-0ubuntu1.4 | UBUNTU-CVE-2026-22851 |
| Ubuntu 22.04 | freerdp2 | Under investigation | UBUNTU-CVE-2026-22851 | |
| Ubuntu 20.04 | freerdp2 | Fix pending | UBUNTU-CVE-2026-22851 | |
| Ubuntu 18.04 | freerdp | Fix pending | UBUNTU-CVE-2026-22851 | |
| Ubuntu 18.04 | freerdp2 | Fix pending | UBUNTU-CVE-2026-22851 | |
| Ubuntu 16.04 | freerdp | Fix pending | UBUNTU-CVE-2026-22851 | |
| Debian 14 | freerdp3 | Fixed | 3.20.2+dfsg-1 | DEBIAN-CVE-2026-22851 |
| Debian 13 | freerdp3 | Fixed | 3.15.0+dfsg-2.1+deb13u1 | DEBIAN-CVE-2026-22851 |
| Debian 12 | freerdp2 | Fix pending | DEBIAN-CVE-2026-22851 | |
| Red Hat Enterprise Linux 10 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | freerdp-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp-plugins | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp-plugins | Fix pending Fix deferred | ||
| Alpine Linux 3.23 | freerdp | Fixed | 3.22.0-r0 | ALPINE-CVE-2026-22851 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- FreeRDP: affected: < 3.20.1
References
- https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-8g87-6pvc-wh99
- https://github.com/FreeRDP/FreeRDP/releases/tag/3.20.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.