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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-14 · Modified: 2026-01-14
- Aliases: UBUNTU-CVE-2026-22851, DEBIAN-CVE-2026-22851, CGA-2h88-2h87-fgx5, CGA-g247-q4h2-9p3p, CGA-gm6h-mr2f-8qh5, CGA-jg68-2mxj-362q, ALPINE-CVE-2026-22851
- Record: https://cvemate.com/vulnerability/CVE-2026-22851 · JSON: https://cvemate.com/vulnerability/CVE-2026-22851/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.291%, percentile 23.219%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine freerdp (Alpine Linux): \< 3.22.0-r0
- chainguard freerdp-dev (Chainguard): All versions (No fix recorded)
- chainguard freerdp-libs (Chainguard): All versions (No fix recorded)
- wolfi freerdp-dev (Wolfi): All versions (No fix recorded)
- wolfi freerdp-libs (Wolfi): All versions (No fix recorded)
- debian freerdp2 (Debian): All versions (No fix recorded)
- debian freerdp3 (Debian): \< 3.15.0+dfsg-2.1+deb13u1 \| \< 3.20.2+dfsg-1
- ubuntu freerdp (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp2 (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp3 (Ubuntu): \< 3.5.1+dfsg1-0ubuntu1.4 \| \< 3.16.0+dfsg-2ubuntu0.3 \| \< 3.20.2+dfsg-1
- freerdp freerdp: \< 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>
- <https://ubuntu.com/security/CVE-2026-22851>
- <https://www.cve.org/CVERecord?id=CVE-2026-22851>
- <https://ubuntu.com/security/notices/USN-8105-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-22851>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22851.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22851>
- <https://security.alpinelinux.org/vuln/CVE-2026-22851>

---

Data as of 2026-12-06T06:55:01.503Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
