A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-26595

CVE-2025-26595: TigerVNC Buffer Overflow Vulnerability

CVE-2025-26595 is a buffer overflow vulnerability in TigerVNC affecting X.Org and Xwayland components. The flaw allows unbounded data copying to a fixed-size stack buffer. This article covers technical details, affected versions, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-26595 Overview

A stack-based buffer overflow vulnerability has been identified in X.Org Server and Xwayland affecting the XkbVModMaskText() function. The vulnerable code allocates a fixed-sized buffer on the stack and copies virtual modifier names to that buffer without performing proper bounds checking. This allows an attacker with local access to potentially overwrite stack memory, leading to arbitrary code execution or system compromise.

Critical Impact

Local attackers can exploit this buffer overflow to achieve code execution with the privileges of the X server process, potentially gaining elevated access to the system.

Affected Products

  • X.Org X Server (all vulnerable versions)
  • X.Org Xwayland (all vulnerable versions)
  • TigerVNC (all vulnerable versions)
  • Red Hat Enterprise Linux 7.0, 8.0, and 9.0

Discovery Timeline

  • February 25, 2025 - CVE-2025-26595 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-26595

Vulnerability Analysis

This vulnerability exists in the X Keyboard Extension (XKB) handling code, specifically within the XkbVModMaskText() function. The function is responsible for converting virtual modifier masks to human-readable text representations. When processing virtual modifier names, the code allocates a fixed-size buffer on the stack to store the concatenated modifier names.

The fundamental flaw is that the code copies modifier name data into this fixed-size stack buffer without validating that the total length of the data being copied will fit within the allocated space. When a malicious or specially crafted set of virtual modifier names exceeds the buffer capacity, the copy operation overwrites adjacent stack memory, including potentially critical values such as return addresses or saved registers.

This type of stack buffer overflow (CWE-121) represents a classic memory corruption vulnerability (CWE-787) that has been well-understood for decades, yet continues to appear in security-critical software components like display servers.

Root Cause

The root cause is a missing bounds check in the XkbVModMaskText() function. The code assumes that the combined length of virtual modifier names will always fit within the statically-sized stack buffer, but this assumption is not enforced. The absence of length validation before the copy operation allows an attacker to craft input that triggers the overflow condition.

Attack Vector

The attack requires local access to the system and the ability to interact with the X server. An attacker with low-privileged local access can craft malicious XKB virtual modifier configurations with excessively long names. When these names are processed by XkbVModMaskText(), the buffer overflow occurs, allowing the attacker to:

  1. Overwrite the function's return address on the stack
  2. Redirect execution flow to attacker-controlled code
  3. Execute arbitrary code with the privileges of the X server process
  4. Potentially escalate privileges if the X server runs with elevated permissions

The exploitation does not require user interaction, making it particularly dangerous in multi-user environments where the X server is shared.

Detection Methods for CVE-2025-26595

Indicators of Compromise

  • Unexpected crashes or segmentation faults in X server processes (Xorg, Xwayland)
  • Anomalous memory access patterns in X server-related processes
  • Unusual XKB configuration changes or loading of custom keyboard extensions
  • Core dumps from X server processes showing stack corruption

Detection Strategies

  • Deploy memory protection monitoring to detect stack smashing attempts in X server processes
  • Monitor for unusual process spawning from X server parent processes
  • Implement application crash monitoring for Xorg and Xwayland binaries
  • Use Address Sanitizer (ASan) builds in development/testing environments to catch overflow attempts

Monitoring Recommendations

  • Enable stack canary protection (-fstack-protector-strong) in X server builds to detect stack corruption
  • Configure centralized logging for X server crashes and core dumps
  • Monitor system authentication logs for privilege escalation attempts following X server anomalies
  • Implement endpoint detection for known buffer overflow exploitation patterns

How to Mitigate CVE-2025-26595

Immediate Actions Required

  • Update X.Org Server and Xwayland packages to the latest patched versions immediately
  • Apply vendor-specific security patches from Red Hat, Debian, and other distributions
  • Restrict local access to systems running vulnerable X server versions
  • Consider disabling unnecessary X server functionality until patches are applied

Patch Information

Multiple vendors have released security advisories and patches addressing this vulnerability:

  • Red Hat:RHSA-2025:2500, RHSA-2025:2502, RHSA-2025:2861, RHSA-2025:2862, and additional advisories for RHEL 7, 8, and 9
  • Debian:Debian LTS Announcement
  • Additional technical details available in Red Hat Bug Report #2345257 and the Red Hat CVE Report

Organizations should prioritize applying these patches based on their exposure to local threats and multi-user environments.

Workarounds

  • Limit local user access to systems running X.Org Server or Xwayland until patches are applied
  • Consider using Wayland compositors that don't rely on Xwayland if X11 compatibility is not required
  • Implement mandatory access controls (SELinux, AppArmor) to restrict X server process capabilities
  • Enable stack protection compiler flags and ASLR on systems where recompilation is possible
bash
# Verify current X server version on Red Hat-based systems
rpm -qa | grep -E "(xorg-x11-server|xwayland|tigervnc)"

# Check for available security updates
yum check-update --security

# Apply X server security updates
sudo yum update xorg-x11-server-Xorg xorg-x11-server-Xwayland tigervnc-server

# Verify SELinux is enforcing to limit potential impact
getenforce

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechTigervnc

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-121

  • CWE-787
  • Technical References
  • Red Hat Security Advisory RHSA-2025:2500

  • Red Hat Security Advisory RHSA-2025:2502

  • Red Hat Security Advisory RHSA-2025:2861

  • Red Hat Security Advisory RHSA-2025:2862

  • Red Hat Security Advisory RHSA-2025:2865

  • Red Hat Security Advisory RHSA-2025:2866

  • Red Hat Security Advisory RHSA-2025:2873

  • Red Hat Security Advisory RHSA-2025:2874

  • Red Hat Security Advisory RHSA-2025:2875

  • Red Hat Security Advisory RHSA-2025:2879

  • Red Hat Security Advisory RHSA-2025:2880

  • Red Hat Security Advisory RHSA-2025:7163

  • Red Hat Security Advisory RHSA-2025:7165

  • Red Hat Security Advisory RHSA-2025:7458

  • Red Hat CVE Report CVE-2025-26595

  • Red Hat Bug Report #2345257

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2025-26597: TigerVNC Buffer Overflow Vulnerability

  • CVE-2026-34352: TigerVNC Information Disclosure Flaw

  • CVE-2025-26601: TigerVNC Use-After-Free Vulnerability

  • CVE-2025-26600: TigerVNC Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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