The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-26986

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

CVE-2026-26986 is a use-after-free vulnerability in FreeRDP that occurs during cleanup when a freed pointer is dereferenced. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 27, 2026

CVE-2026-26986 Overview

CVE-2026-26986 is a Use After Free vulnerability discovered in FreeRDP, a free implementation of the Remote Desktop Protocol. The vulnerability exists in the RAIL (Remote Application Integrated Locally) window handling code within the X11 client implementation. When a title allocation failure occurs in xf_rail_window_common, the function calls free(appWindow) without first removing the entry from the railWindows hash table. This leaves a dangling pointer that is subsequently freed again during HashTable_Free cleanup when the rail_window_free function dereferences the already-freed xfAppWindow pointer on disconnect.

Critical Impact

This Use After Free vulnerability could lead to denial of service conditions through application crashes when FreeRDP clients connect to malicious or compromised RDP servers.

Affected Products

  • FreeRDP versions prior to 3.23.0
  • FreeRDP X11 client implementations using RAIL functionality
  • Systems utilizing FreeRDP for Remote Desktop Protocol connections

Discovery Timeline

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

Technical Details for CVE-2026-26986

Vulnerability Analysis

This vulnerability represents a classic Use After Free (CWE-416) memory corruption issue in the FreeRDP X11 RAIL implementation. The flaw occurs within the xf_rail_window_common function located in client/X11/xf_rail.c. During normal operation, when a new RAIL window is being created and registered, the code allocates memory for an xfAppWindow structure and adds it to a hash table called railWindows for tracking purposes.

The vulnerability is triggered when title allocation fails after the appWindow structure has already been inserted into the hash table. In this error handling path, the code frees the appWindow memory but fails to remove the corresponding entry from the railWindows hash table. This creates a dangling pointer scenario where the hash table still contains a reference to memory that has already been deallocated.

When the FreeRDP client later disconnects or performs cleanup operations, the HashTable_Free function iterates through all entries in the railWindows table. For each entry, it calls rail_window_free, which attempts to dereference and free the stored pointer. Since the pointer now references already-freed memory, this results in a double-free condition that can corrupt heap metadata and cause application crashes.

Root Cause

The root cause is improper error handling in the xf_rail_window_common function. When memory allocation for window title strings fails, the cleanup code frees the appWindow structure but neglects to remove its entry from the railWindows hash table first. This violates the principle that hash table entries must remain valid throughout their lifetime. The fix requires ensuring the hash table entry is removed before freeing the associated memory structure.

Attack Vector

An attacker controlling or compromising an RDP server could potentially craft specific RAIL window creation sequences designed to trigger the title allocation failure condition. By causing resource exhaustion or leveraging specific timing conditions, an attacker may be able to reliably trigger this vulnerability, resulting in denial of service against connecting FreeRDP clients. The network-based attack vector means remote exploitation is possible, though the impact is primarily limited to availability rather than confidentiality or integrity.

c
 static BOOL xf_rail_window_common(rdpContext* context, const WINDOW_ORDER_INFO* orderInfo,
                                   const WINDOW_STATE_ORDER* windowState)
 {
-	xfAppWindow* appWindow = NULL;
 	xfContext* xfc = (xfContext*)context;

 	WINPR_ASSERT(xfc);

Source: GitHub FreeRDP Commit b4f0f0a

Detection Methods for CVE-2026-26986

Indicators of Compromise

  • FreeRDP client crashes with heap corruption errors during RDP session disconnection
  • Core dumps indicating double-free conditions in rail_window_free or HashTable_Free functions
  • Memory debugging tools (Valgrind, AddressSanitizer) reporting invalid memory access in xf_rail.c

Detection Strategies

  • Monitor FreeRDP client processes for abnormal termination signals (SIGSEGV, SIGABRT)
  • Implement crash reporting and analysis for systems using FreeRDP as an RDP client
  • Use memory sanitizers in development and testing environments to detect use-after-free conditions
  • Review system logs for repeated FreeRDP client failures when connecting to specific RDP servers

Monitoring Recommendations

  • Enable core dump collection on systems running FreeRDP clients for post-incident analysis
  • Implement process monitoring to detect and alert on FreeRDP client crashes
  • Track connection patterns to identify potentially malicious RDP servers causing client crashes
  • Consider deploying SentinelOne agents on endpoints using FreeRDP to detect exploitation attempts and memory corruption attacks

How to Mitigate CVE-2026-26986

Immediate Actions Required

  • Upgrade FreeRDP to version 3.23.0 or later immediately
  • Audit systems for FreeRDP installations and identify versions requiring updates
  • Consider temporarily restricting FreeRDP connections to trusted RDP servers until patching is complete
  • Review any custom applications or solutions that embed FreeRDP libraries for required updates

Patch Information

The vulnerability has been addressed in FreeRDP version 3.23.0. The fix ensures proper cleanup by removing the hash table entry before freeing the appWindow structure, preventing the dangling pointer condition. The security patch is available in commit b4f0f0a18fe53aa8d47d062f91471f4e9c5e0d51. Organizations should obtain the patched version from the official FreeRDP GitHub repository. Detailed information about this vulnerability is available in the GitHub Security Advisory GHSA-crqx-g6x5-rx47.

Workarounds

  • Restrict FreeRDP client connections to only known and trusted RDP servers
  • Implement network-level controls to limit which RDP servers endpoints can connect to
  • Consider alternative RDP clients temporarily if immediate patching is not feasible
  • Monitor for and investigate any FreeRDP client crashes that may indicate exploitation attempts
bash
# Configuration example
# Verify FreeRDP version to ensure patch is applied
xfreerdp --version

# Update FreeRDP on Debian/Ubuntu-based systems
sudo apt update && sudo apt install freerdp2-x11

# Build from source with the patched version
git clone https://github.com/FreeRDP/FreeRDP.git
cd FreeRDP
git checkout 3.23.0
cmake -B build && cmake --build build
sudo cmake --install build

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
  • GitHub FreeRDP Code Snippet 1

  • GitHub FreeRDP Code Snippet 2

  • GitHub FreeRDP Code Snippet 3

  • GitHub FreeRDP Code Snippet 4

  • GitHub FreeRDP Code Snippet 5

  • GitHub FreeRDP Code Snippet 6

  • GitHub FreeRDP Commit b4f0f0a

  • GitHub Security Advisory GHSA-crqx-g6x5-rx47
  • 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-25955: 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