CVE-2026-25955
FreeRDP has heap-use-after-free in xf_AppUpdateWindowFromSurface (stale XImage)
Reported by github_m · Published February 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libwinpr | Amazon Linux | 2:3.6.3-1.amzn2023.0.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FreeRDP | FreeRDP | < 3.23.0 |
| amazon:2023 | libwinpr | 0 |
| FreeRDP | FreeRDP | 0 |
| alpine | freerdp | 0 |
| amazon:2023 | freerdp | 0 |
| amazon:2023 | freerdp-devel | 0 |
| amazon:2023 | freerdp-libs | 0 |
| amazon:2023 | freerdp-server | 0 |
| amazon:2023 | libwinpr-devel | 0 |
Timeline
- Feb 24, 2026 CVE Published
- Feb 25, 2026 PoC Published (4 in total, the first dated here)
- Feb 26, 2026 EPSS Score (30 in total, the first dated here)
- Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
- Apr 2, 2026 Security Advisory (34 in total, the first dated here)
- Oct 4, 2026 Distribution Patch (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-25955
vulnetix vdb fixes CVE-2026-25955
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-25955/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-4g54-x8v7-559x x_refsource_CONFIRM
- https://github.com/FreeRDP/FreeRDP/commit/169d358734509e82663a0d6a0085ae726d439d8e x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1484-L1492 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1494-L1500 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1528 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/libfreerdp/gdi/gfx.c#L1224-L1227 x_refsource_MISC