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-25955

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

CVE-2026-25955 is a use-after-free flaw in FreeRDP that occurs when XImage data references a freed RDPGFX surface buffer. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 27, 2026

CVE-2026-25955 Overview

CVE-2026-25955 is a Use-After-Free vulnerability affecting FreeRDP, the free implementation of the Remote Desktop Protocol. The vulnerability exists in the xf_AppUpdateWindowFromSurface function, which reuses a cached XImage whose data pointer references a freed RDPGFX surface buffer. This occurs because gdi_DeleteSurface frees surface->data without invalidating the appWindow->image that aliases it. The issue has been addressed in version 3.23.0.

Critical Impact

A remote attacker could potentially trigger a denial of service condition by exploiting the use-after-free condition in FreeRDP's X11 client graphics surface handling, leading to application crashes or memory corruption.

Affected Products

  • FreeRDP versions prior to 3.23.0
  • FreeRDP X11 client implementations using RDPGFX surface handling

Discovery Timeline

  • 2026-02-25 - CVE-2026-25955 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-25955

Vulnerability Analysis

This Use-After-Free (CWE-416) vulnerability resides in the FreeRDP X11 client's window management code, specifically within the xf_window.c source file. The core issue stems from improper memory lifecycle management between two aliased pointers that reference the same underlying surface buffer data.

When an RDPGFX surface is deleted via gdi_DeleteSurface, the function properly frees surface->data. However, the corresponding appWindow->image structure maintains a stale pointer to this now-freed memory region. Subsequent calls to xf_AppUpdateWindowFromSurface attempt to reuse the cached XImage object, which still references the deallocated buffer. This creates a classic use-after-free condition where the application accesses memory that has been returned to the heap allocator.

The vulnerability can be triggered remotely over the network when a malicious RDP server sends crafted graphics surface commands that cause the client to delete and then reference the affected surface buffer.

Root Cause

The root cause is a missing invalidation step in the surface deletion workflow. When gdi_DeleteSurface frees the surface data buffer in libfreerdp/gdi/gfx.c, it does not notify or invalidate the appWindow->image pointer in the X11 client code. The XImage structure continues to hold a reference to the freed memory, creating a dangling pointer condition. Proper memory management requires that all aliases to a memory region be invalidated before or immediately after the memory is freed.

Attack Vector

The vulnerability is exploitable over the network, requiring no user interaction beyond establishing an RDP connection. An attacker operating a malicious RDP server could craft specific RDPGFX protocol messages to trigger surface creation, deletion, and subsequent window update operations in a sequence that exercises the use-after-free condition. The attack could result in application crashes (denial of service) or potentially more severe memory corruption depending on heap state and allocation patterns.

c
// Security fix - making xf_AppWindowDestroyImage accessible to properly clean up XImage
// Source: https://github.com/FreeRDP/FreeRDP/commit/169d358734509e82663a0d6a0085ae726d439d8e

 #include "xf_gfx.h"
 #include "xf_rail.h"
 #include "xf_utils.h"
+#include "xf_window.h"
 
 #include <X11/Xutil.h>
c
// Patch changes xf_AppWindowDestroyImage from static to externally visible
// This allows proper cleanup when surfaces are unmapped
// Source: https://github.com/FreeRDP/FreeRDP/commit/169d358734509e82663a0d6a0085ae726d439d8e

 	xf_unlock_x11(xfc);
 }
 
-static void xf_AppWindowDestroyImage(xfAppWindow* appWindow)
+void xf_AppWindowDestroyImage(xfAppWindow* appWindow)
 {
 	WINPR_ASSERT(appWindow);
 	if (appWindow->image)

Detection Methods for CVE-2026-25955

Indicators of Compromise

  • FreeRDP client crashes with segmentation faults or memory access violations during RDP sessions
  • Core dumps showing crashes within xf_AppUpdateWindowFromSurface or related X11 window functions
  • Memory debugging tools (Valgrind, AddressSanitizer) reporting use-after-free in xf_window.c

Detection Strategies

  • Deploy memory sanitizers (ASan) in development and testing environments to detect use-after-free conditions
  • Monitor application crash logs for FreeRDP client instances showing memory corruption patterns
  • Implement network monitoring for anomalous RDPGFX protocol sequences targeting surface creation/deletion

Monitoring Recommendations

  • Enable crash reporting and core dump collection for FreeRDP client deployments
  • Review RDP session logs for unusual connection patterns from untrusted servers
  • Implement endpoint detection for FreeRDP process crashes correlating with network activity

How to Mitigate CVE-2026-25955

Immediate Actions Required

  • Upgrade FreeRDP to version 3.23.0 or later immediately
  • Restrict RDP connections to trusted servers only until patching is complete
  • Consider disabling RDPGFX graphics pipeline if not required for operations
  • Review network firewall rules to limit outbound RDP connections

Patch Information

The vulnerability has been fixed in FreeRDP version 3.23.0. The fix modifies the xf_AppWindowDestroyImage function visibility from static to external, allowing proper cleanup of the XImage structure when windows are unmapped. This ensures that the cached image reference is properly destroyed before the underlying surface buffer is freed, eliminating the dangling pointer condition.

For technical details about the fix, see the FreeRDP security commit and the GitHub Security Advisory GHSA-4g54-x8v7-559x.

Workarounds

  • Avoid connecting to untrusted or unknown RDP servers until the patch can be applied
  • Use network segmentation to isolate systems running vulnerable FreeRDP versions
  • Consider using alternative RDP client implementations temporarily if upgrade is not immediately feasible
bash
# Verify FreeRDP version to confirm patch status
xfreerdp --version

# If using package manager, upgrade FreeRDP
# For Debian/Ubuntu:
sudo apt update && sudo apt install freerdp2-x11

# For Fedora/RHEL:
sudo dnf update 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.05%

  • 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 Commit Update

  • GitHub Security Advisory GHSA-4g54-x8v7-559x
  • Related CVEs
  • CVE-2026-33995: FreeRDP Use-After-Free Vulnerability

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

  • CVE-2026-25959: 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