Vulnerability · Published Feb 25, 2026 · Assigned by GitHub_M

CVE-2026-25997FreeRDP has heap-use-after-free in xf_clipboard_format_equal

Medium 5.5

In plain English

A medium-severity use-after-free in FreeRDP from FreeRDP. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.5Medium
Exploit odds (30 days)0.7%top 48.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10freerdp2:3.10.3-5.el10_1.8ALSA-2026:16014
AlmaLinux:10freerdp-devel2:3.10.3-5.el10_1.8ALSA-2026:16014
AlmaLinux:10freerdp-libs2:3.10.3-5.el10_1.8ALSA-2026:16014
AlmaLinux:10freerdp-server2:3.10.3-5.el10_1.8ALSA-2026:16014
AlmaLinux:10libwinpr2:3.10.3-5.el10_1.8ALSA-2026:16014
AlmaLinux:10libwinpr-devel2:3.10.3-5.el10_1.8ALSA-2026:16014
Alpine:v3.23freerdp3.23.0-r0ALPINE-CVE-2026-25997
Alpine:v3.24freerdp3.23.0-r0ALPINE-CVE-2026-25997
Debian:12freerdp2no fix listedDEBIAN-CVE-2026-25997
Debian:13freerdp33.15.0+dfsg-2.1+deb13u1DEBIAN-CVE-2026-25997
Debian:14freerdp33.23.0+dfsg-1DEBIAN-CVE-2026-25997
Rocky Linux:10freerdp2:3.10.3-12.el10_2.5RLSA-2026:19142
Rocky Linux:10freerdp2:3.10.3-5.el10_1.8RLSA-2026:16014
Ubuntu:22.04:LTSfreerdp2no fix listedUBUNTU-CVE-2026-25997
Ubuntu:24.04:LTSfreerdp33.5.1+dfsg1-0ubuntu1.4USN-8105-1
Ubuntu:24.04:LTSfreerdp33.5.1+dfsg1-0ubuntu1.4UBUNTU-CVE-2026-25997
Ubuntu:25.10freerdp33.16.0+dfsg-2ubuntu0.3UBUNTU-CVE-2026-25997
Ubuntu:25.10freerdp33.16.0+dfsg-2ubuntu0.3USN-8105-1

Affected products (as reported)

VendorProductVersions
FreeRDP FreeRDP < 3.23.0

Weakness: CWE-416 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

References