
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25997 is a heap use-after-free vulnerability in FreeRDP's X11 clipboard handling code (xf_clipboard_format_equal in client/X11/xf_cliprdr.c). It affects all FreeRDP releases prior to version 3.23.0 and was disclosed on February 25, 2026. The flaw arises from a race condition between two threads during auto-reconnect: the cliprdr channel thread frees the lastSentFormats array while the X11 event thread concurrently reads it. It carries a CVSS v3.1 base score of 9.8 (Critical) per Red Hat's assessment, though the CVSS v4.0 base score is 5.5 (Medium) reflecting more constrained real-world impact (FreeRDP Advisory, Red Hat CVE).
The root cause is a missing synchronization lock (CWE-416: Use After Free; CWE-825: Expired Pointer Dereference) in xf_cliprdr_monitor_ready. During auto-reconnect, the cliprdr channel thread calls xf_clipboard_formats_free → xf_cliprdr_free_formats, which calls free(formats) on clipboard->lastSentFormats. However, clipboard->lastSentFormats and clipboard->lastSentNumFormats are only zeroed after free() returns, leaving a dangling pointer window. Simultaneously, the X11 event thread — which continues polling because clipboard->sync remains TRUE from the previous session — can enter xf_clipboard_changed and iterate clipboard->lastSentFormats[x], calling xf_clipboard_format_equal on freed memory. The fix (commit 5840940) wraps the xf_clipboard_formats_free call in xf_lock_x11/xf_unlock_x11 to serialize access between the two threads (FreeRDP Advisory, Fix Commit).
Successful exploitation causes a heap use-after-free in the FreeRDP client process, leading to a crash (denial of service). Depending on heap allocator behavior and surrounding heap layout, the condition may also enable heap corruption with potential code-execution risk, though this has not been demonstrated in practice. The vulnerability is client-side only — a malicious or compromised RDP server can trigger the condition by disconnecting and forcing the client's auto-reconnect path while clipboard ownership changes are occurring on the client's X11 display (FreeRDP Advisory).
A proof-of-concept (PoC) is publicly available in the FreeRDP security advisory, demonstrating the issue using AddressSanitizer-instrumented builds with a sample RDP server that disconnects after 3 seconds to trigger auto-reconnect while clipboard ownership is spammed via xclip. There is no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.066%, indicating low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (FreeRDP Advisory, Red Hat CVE).
xfreerdp /v:<server>:<port> /u:<user> /p:<pass> /cert:ignore +clipboard +auto-reconnect /auto-reconnect-max-retries:20 from an X11 session running FreeRDP < 3.23.0.while true; do echo "data" | xclip -selection clipboard; sleep 0.01; done) to keep the X11 event thread actively iterating lastSentFormats via xf_clipboard_changed.xf_clipboard_formats_free (freeing lastSentFormats) while the X11 event thread concurrently reads the now-freed array in xf_clipboard_format_equal, triggering the heap use-after-free.xfreerdp) process crashes unexpectedly, particularly during or shortly after an auto-reconnect event while clipboard is active.heap-use-after-free in xf_clipboard_format_equal at client/X11/xf_cliprdr.c:831; application crash logs or core dumps from the xfreerdp process.xfreerdp process terminations correlated with RDP server disconnections and active clipboard usage on the client's X11 session.Upgrade FreeRDP to version 3.23.0 or later, which fixes the race condition by wrapping the xf_clipboard_formats_free call in xf_lock_x11/xf_unlock_x11 in xf_cliprdr_monitor_ready (commit 5840940). Downstream distributions including Red Hat (RHSA-2026:16014), Rocky Linux, Oracle Linux, Ubuntu, Debian, SUSE/openSUSE, Amazon Linux 2, and Fedora have issued updated packages. As a temporary workaround, disabling clipboard redirection (-clipboard flag) when connecting with xfreerdp eliminates the vulnerable code path entirely (FreeRDP Advisory, Fix Commit, Red Hat Errata).
The vulnerability was reported by security researcher ehdgks0627 and published by FreeRDP maintainer akallabeth on February 25, 2026. Coverage appeared across Linux security news outlets including Phoronix (noting the FreeRDP 3.23 release), Pro-Linux, and LinuxCompatible, as well as vulnerability aggregators. Community reaction has been routine — the issue is treated as a moderate client-side bug requiring a patch update rather than an emergency, consistent with its limited real-world exploitability (FreeRDP Advisory).
Fix availability across major Linux distributions and their releases.
bookworm
freerdp2
sid
freerdp3: 3.23.0+dfsg-1
trixie
freerdp3: 3.15.0+dfsg-2.1+deb13u1
bionic (esm-apps)
freerdp
bionic (esm-infra)
freerdp2
devel
freerdp3
focal (esm-infra)
freerdp2
jammy
freerdp2
noble
freerdp3: 3.5.1+dfsg1-0ubuntu1.4
noble (esm-apps)
freerdp2
questing
freerdp3: 3.16.0+dfsg-2ubuntu0.3
RHEL 8
freerdp.src
RHEL 9
RHEL 10
freerdp-2:3.10.3-3.el10_0.7.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."