Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25959

CVE-2026-25959: FreeRDP Use After Free Vulnerability

CVE-2026-25959 is a heap use after free vulnerability in FreeRDP's clipboard handling that occurs when concurrent threads access freed data. This article covers the technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-25959 Overview

CVE-2026-25959 is a Use-After-Free vulnerability affecting FreeRDP, a free implementation of the Remote Desktop Protocol. The flaw exists in the X11 clipboard redirection functionality where the xf_cliprdr_provide_data_ function passes freed pDstData to XChangeProperty. This occurs due to a race condition between the cliprdr channel thread and the X11 event thread, where clipboard data is used without proper locking while being concurrently freed.

Critical Impact

This heap use-after-free vulnerability can lead to denial of service conditions when exploited through concurrent clipboard operations in FreeRDP client sessions.

Affected Products

  • FreeRDP versions prior to 3.23.0
  • FreeRDP X11 client with clipboard redirection enabled
  • Systems using FreeRDP for Remote Desktop Protocol connections

Discovery Timeline

  • February 25, 2026 - CVE-2026-25959 published to NVD
  • February 26, 2026 - Last updated in NVD database

Technical Details for CVE-2026-25959

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free). The core issue lies in the lack of synchronization between two concurrent threads in the FreeRDP X11 client's clipboard handling code. When clipboard data is being processed by the cliprdr channel thread via xf_cliprdr_server_format_data_response, the X11 event thread can simultaneously invoke xf_cliprdr_clear_cached_data which calls HashTable_Clear. This clearing operation frees the cached data through xf_cached_data_free, while the cliprdr thread still holds a reference to and attempts to use the now-freed memory.

The vulnerability is network-accessible as it can be triggered through Remote Desktop Protocol clipboard synchronization operations between client and server.

Root Cause

The root cause is a classic race condition stemming from missing lock acquisition when accessing shared clipboard cache data. The xf_cliprdr_provide_data_ function retrieves cached data from a hash table and passes it to XChangeProperty without holding a lock on the cache. Concurrently, another thread can clear the cache, freeing the memory that is still being referenced. This TOCTOU (Time-of-Check Time-of-Use) condition results in heap use-after-free when the freed pointer is dereferenced.

Attack Vector

The vulnerability can be triggered through normal clipboard operations during an RDP session. An attacker controlling a malicious RDP server could potentially manipulate clipboard synchronization timing to trigger the race condition, causing the client to crash. The attack requires network access but no user interaction beyond establishing an RDP connection.

The fix implements proper locking around cache access to prevent concurrent modification:

c
 			DEBUG_CLIPRDR("formatId: 0x%08" PRIx32 ", dstFormatId: 0x%08" PRIx32 "", formatId,
 			              dstFormatId);
 
+			wHashTable* table = clipboard->cachedData;
+			if (rawTransfer)
+				table = clipboard->cachedRawData;
+
+			HashTable_Lock(table);
+
 			if (!rawTransfer)
-				cached_data = HashTable_GetItemValue(clipboard->cachedData,
-				                                     format_to_cache_slot(dstFormatId));
+				cached_data = HashTable_GetItemValue(table, format_to_cache_slot(dstFormatId));
 			else
-				cached_data = HashTable_GetItemValue(clipboard->cachedRawData,
-				                                     format_to_cache_slot(formatId));
+				cached_data = HashTable_GetItemValue(table, format_to_cache_slot(formatId));
 
 			DEBUG_CLIPRDR("hasCachedData: %u, rawTransfer: %d", cached_data ? 1u : 0u, rawTransfer);

Source: FreeRDP Commit Details

Detection Methods for CVE-2026-25959

Indicators of Compromise

  • Unexpected FreeRDP client crashes during clipboard operations
  • Segmentation faults or heap corruption errors in FreeRDP process logs
  • Application crash dumps showing xf_cliprdr_provide_data_ or XChangeProperty in the stack trace

Detection Strategies

  • Monitor for abnormal termination of FreeRDP processes with memory corruption signatures
  • Implement application crash monitoring to detect heap use-after-free conditions in xfreerdp clients
  • Review system logs for recurring FreeRDP crashes during active clipboard synchronization

Monitoring Recommendations

  • Enable core dump collection for FreeRDP processes to capture crash details for forensic analysis
  • Deploy endpoint detection rules to identify memory corruption patterns in RDP client applications
  • Monitor RDP session stability metrics to detect potential exploitation attempts causing repeated crashes

How to Mitigate CVE-2026-25959

Immediate Actions Required

  • Upgrade FreeRDP to version 3.23.0 or later which contains the security fix
  • If immediate upgrade is not possible, consider disabling clipboard redirection in FreeRDP sessions
  • Review and apply the security patch from the FreeRDP Security Advisory

Patch Information

The vulnerability is addressed in FreeRDP version 3.23.0. The fix introduces proper locking mechanisms using HashTable_Lock() to synchronize access to clipboard cache data between the cliprdr channel thread and X11 event thread. The patch commit (d3e8b3b9365be96a4f11dda149d71b3287227d0a) ensures that cache lookups are protected against concurrent modifications.

Organizations should obtain the patched version through their package manager or by building from the official FreeRDP repository. See the FreeRDP Commit Details for the complete patch implementation.

Workarounds

  • Disable clipboard redirection by using the /clipboard:- command-line option when launching xfreerdp
  • Configure FreeRDP to operate without clipboard synchronization in environments where this feature is not required
  • Isolate FreeRDP client systems and limit connections to trusted RDP servers only
bash
# Disable clipboard redirection in FreeRDP
xfreerdp /v:server.example.com /u:username /clipboard:-

# Alternative: Configure via FreeRDP settings file
# Set ClipboardUseSelection=false in ~/.config/freerdp/

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechFreerdp

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-416
  • Technical References
  • FreeRDP Code Snippet

  • FreeRDP Code Snippet

  • FreeRDP Code Snippet

  • FreeRDP Code Snippet

  • FreeRDP Code Snippet

  • FreeRDP Code Snippet

  • FreeRDP Code Snippet

  • FreeRDP Commit Details

  • FreeRDP Security Advisory
  • Related CVEs
  • CVE-2026-33995: FreeRDP Use-After-Free Vulnerability

  • CVE-2026-31897: FreeRDP Use-After-Free Vulnerability

  • CVE-2026-25955: FreeRDP Use-After-Free Vulnerability

  • CVE-2026-25954: FreeRDP Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English