CVE-2026-22851
FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)
Reported by github_m · Published January 14, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| freerdp | Alpine | 3.22.0-r0 |
| freerdp-devel | Amazon Linux | 2:3.6.3-1.amzn2023.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FreeRDP | FreeRDP | < 3.20.1 |
| FreeRDP | FreeRDP | 0 |
Timeline
- Jan 13, 2026 CVE Published
- Jan 15, 2026 EPSS Score (30 in total, the first dated here)
- Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
- Sep 28, 2026 CVE Updated
- Oct 4, 2026 Distribution Patch (29 in total, the first dated here)
- Oct 4, 2026 Security Advisory (33 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-22851
vulnetix vdb fixes CVE-2026-22851
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-22851/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-8g87-6pvc-wh99 x_refsource_CONFIRM
- https://github.com/FreeRDP/FreeRDP/releases/tag/3.20.1 x_refsource_MISC