# CVE-2026-25955: FreeRDP has heap-use-after-free in xf\_AppUpdateWindowFromSurface (stale XImage)

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-25 · Modified: 2026-02-26
- Aliases: UBUNTU-CVE-2026-25955, DEBIAN-CVE-2026-25955, ALPINE-CVE-2026-25955
- Record: https://cvemate.com/vulnerability/CVE-2026-25955 · JSON: https://cvemate.com/vulnerability/CVE-2026-25955/json

## Description

```text
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_AppUpdateWindowFromSurface` reuses a cached `XImage` whose `data` pointer references a freed RDPGFX surface buffer, because `gdi_DeleteSurface` frees `surface->data` without invalidating the `appWindow->image` that aliases it. Version 3.23.0 fixes the issue.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.584%, percentile 49.36%, as of 2026-12-04
- 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.23.0-r0
- debian freerdp2 (Debian): All versions (No fix recorded)
- debian freerdp3 (Debian): \< 3.15.0+dfsg-2.1+deb13u1 \| \< 3.23.0+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
- freerdp freerdp: \< 3.23.0

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-4g54-x8v7-559x>
- <https://github.com/FreeRDP/FreeRDP/commit/169d358734509e82663a0d6a0085ae726d439d8e>
- <https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1484-L1492>
- <https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1494-L1500>
- <https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1528>
- <https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/libfreerdp/gdi/gfx.c#L1224-L1227>
- <https://ubuntu.com/security/CVE-2026-25955>
- <https://www.cve.org/CVERecord?id=CVE-2026-25955>
- <https://ubuntu.com/security/notices/USN-8105-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-25955>
- <https://security.alpinelinux.org/vuln/CVE-2026-25955>

---

Data as of 2026-12-05T07:08:48.263Z. 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
