CVE-2026-25997
FreeRDP has heap-use-after-free in xf_clipboard_format_equal
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_clipboard_format_equal` reads freed `lastSentFormats` memory because `xf_clipboard_formats_free` (called from the cliprdr channel thread during auto-reconnect) frees the array while the X11 event thread concurrently iterates it in `xf_clipboard_changed`, triggering a heap use after free. 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 | errata.rockylinux.org | 3.10.3-12.el10, 3.10.3-5.el10 |
| freerdp-devel | Amazon Linux | 2:2.11.7-1.amzn2.0.8 |
| libwinpr-devel | Amazon Linux | 2:2.11.7-1.amzn2.0.8 |
| freerdp-server-debuginfo | errata.rockylinux.org | 3.10.3-12.el10, 3.10.3-5.el10 |
| freerdp-libs-debuginfo | errata.rockylinux.org | 3.10.3-12.el10, 3.10.3-5.el10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FreeRDP | FreeRDP | < 3.23.0 |
| amazon:2 | freerdp-devel | 0 |
| amazon:2 | libwinpr-devel | 0 |
| FreeRDP | FreeRDP | 0 |
| amazon:2 | libwinpr | 0 |
| amazon:2023 | freerdp-libs | 0 |
| amazon:2023 | freerdp | 0 |
| amazon:2023 | libwinpr | 0 |
| amazon:2 | freerdp-libs | 0 |
| amazon:2023 | libwinpr-devel | 0 |
| amazon:2023 | freerdp-devel | 0 |
| amazon:2 | freerdp | 0 |
| alpine | freerdp | 0 |
| amazon:2023 | freerdp-server | 0 |
Timeline
- Feb 24, 2026 CVE Published
- Feb 25, 2026 PoC Published (2 in total, the first dated here)
- Feb 26, 2026 EPSS Score (30 in total, the first dated here)
- Feb 27, 2026 CVE Updated
- 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)
- May 12, 2026 Distribution Patch (32 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-25997
vulnetix vdb fixes CVE-2026-25997
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-25997/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-q5j3-m6jf-3jq4 x_refsource_CONFIRM
- https://github.com/FreeRDP/FreeRDP/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L1884 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L1889 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L265 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L616 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L831 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L851-L855 x_refsource_MISC
- https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L868-L875 x_refsource_MISC