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

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

CVE-2026-22857 is a heap use-after-free vulnerability in FreeRDP that occurs in irp_thread_func when IRP is freed and then accessed on the error path. This article covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2026-22857 Overview

CVE-2026-22857 is a heap use-after-free vulnerability in FreeRDP, a free implementation of the Remote Desktop Protocol. The flaw exists in the irp_thread_func function where an IRP (I/O Request Packet) is freed by irp->Complete() and subsequently accessed again on the error path. This memory corruption vulnerability can potentially lead to application crashes or arbitrary code execution in the context of the vulnerable application.

Critical Impact

A remote attacker could exploit this use-after-free condition to cause denial of service or potentially achieve code execution by manipulating the freed memory region during an RDP session.

Affected Products

  • FreeRDP versions prior to 3.20.1
  • Applications and systems utilizing vulnerable FreeRDP libraries
  • Linux, Windows, and macOS systems running unpatched FreeRDP clients

Discovery Timeline

  • 2026-01-14 - CVE-2026-22857 published to NVD
  • 2026-01-20 - Last updated in NVD database

Technical Details for CVE-2026-22857

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a critical memory safety issue that occurs when a program continues to use a pointer after the memory it references has been deallocated. In FreeRDP's implementation, the irp_thread_func function processes I/O Request Packets for device redirection functionality during RDP sessions.

The vulnerability manifests when an IRP is completed via the irp->Complete() call, which frees the associated memory. However, if an error condition occurs after this completion, the code path attempts to access the now-freed IRP structure. This creates a dangerous race condition where the freed memory may be reallocated for other purposes, leading to memory corruption.

The attack requires network access and some user interaction, as the victim must initiate an RDP connection to a malicious server or the attacker must intercept and modify legitimate RDP traffic. The complexity of exploitation is considered high due to the timing-sensitive nature of heap manipulation required for reliable exploitation.

Root Cause

The root cause is improper memory management in the error handling path of the IRP processing thread. After the irp->Complete() function frees the IRP structure, subsequent error handling code fails to check whether the IRP has already been freed before attempting to access its members. This violates secure coding practices that require nullifying pointers after deallocation and verifying object validity before access.

Attack Vector

The attack vector is network-based, requiring an attacker to either operate a malicious RDP server that the victim connects to, or perform a man-in-the-middle attack on an existing RDP connection. The attacker would craft specific device redirection requests designed to trigger the error path after IRP completion. Successful exploitation could allow the attacker to corrupt heap metadata or execute arbitrary code by placing controlled data in the freed memory region before it is accessed again.

The vulnerability mechanism involves timing-sensitive heap manipulation during RDP device redirection operations. For complete technical details, see the GitHub Security Advisory GHSA-4gxq-jhq6-4cr8.

Detection Methods for CVE-2026-22857

Indicators of Compromise

  • Unexpected crashes of FreeRDP client applications with heap corruption errors
  • Memory access violations in irp_thread_func appearing in crash dumps or logs
  • Abnormal RDP device redirection behavior or errors during sessions

Detection Strategies

  • Monitor for FreeRDP process crashes with heap corruption or use-after-free signatures
  • Implement memory sanitizers (ASan, MSan) in development/testing environments to detect UAF conditions
  • Deploy endpoint detection rules to identify exploitation attempts targeting RDP device redirection

Monitoring Recommendations

  • Enable verbose logging for FreeRDP client connections and device redirection operations
  • Monitor network traffic for anomalous RDP channel data, particularly related to device redirection
  • Implement SentinelOne Singularity Platform for real-time memory corruption exploit detection

How to Mitigate CVE-2026-22857

Immediate Actions Required

  • Upgrade FreeRDP to version 3.20.1 or later immediately
  • If immediate patching is not possible, disable device redirection features in FreeRDP configurations
  • Review RDP connection policies and restrict connections to trusted servers only
  • Deploy SentinelOne endpoint protection to detect and block exploitation attempts

Patch Information

FreeRDP has addressed this vulnerability in version 3.20.1. The fix ensures proper handling of IRP lifetime management, preventing access to freed memory on error paths. Organizations should obtain the patched version from the official FreeRDP Release 3.20.1 page. System administrators should prioritize updating all FreeRDP installations across their infrastructure.

Workarounds

  • Disable device redirection by setting /drive: and related redirection options to disabled in FreeRDP configuration
  • Restrict RDP connections to known, trusted servers through firewall rules and connection policies
  • Consider using alternative RDP clients temporarily until patching can be completed
  • Implement network segmentation to limit exposure of systems running vulnerable FreeRDP versions
bash
# Disable device redirection in FreeRDP connection
xfreerdp /v:server.example.com /u:username -drive -printer -usb
# Or explicitly disable all redirections
xfreerdp /v:server.example.com /u:username /dynamic-resolution -clipboard -drive -printer -usb -smartcard

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 Score6.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/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
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • FreeRDP Release 3.20.1
  • Vendor Resources
  • GitHub Security Advisory GHSA-4gxq-jhq6-4cr8
  • 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