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-2026-50259

CVE-2026-50259: X.org X Server Buffer Overflow Flaw

CVE-2026-50259 is a stack-based buffer overflow in X.org X Server that enables attackers to crash the server or escalate privileges. This article covers the technical details, affected versions, impact, and mitigation.

Published: June 11, 2026

CVE-2026-50259 Overview

CVE-2026-50259 is a stack-based buffer overflow [CWE-121] in the X.Org X server and Xwayland. The flaw resides in _XkbSetMapChecks(), which declares a fixed-size stack buffer mapWidths[256] indexed by key type index. The helper function CheckKeyTypes() writes to this buffer at a client-controlled offset, enabling out-of-bounds stack writes. An authenticated local client can crash the X server or escalate privileges when the server runs as root. The vulnerability affects X.Org X server, Xwayland, and Red Hat Enterprise Linux versions 7, 8, 9, and 10.

Critical Impact

A local attacker with an active X session can corrupt the stack of a root-privileged X server, leading to denial of service or local privilege escalation to root.

Affected Products

  • X.Org X server (all versions prior to the upstream fix)
  • X.Org Xwayland (all versions prior to the upstream fix)
  • Red Hat Enterprise Linux 7, 8, 9, and 10

Discovery Timeline

  • 2026-06-05 - CVE-2026-50259 published to NVD
  • 2026-06-08 - Last updated in NVD database

Technical Details for CVE-2026-50259

Vulnerability Analysis

The X Keyboard Extension (XKB) processes client requests that modify the keyboard map. Inside _XkbSetMapChecks(), the server allocates a fixed-size stack buffer mapWidths[256] to track key type widths. The buffer is indexed using a key type index derived from the client's request payload.

CheckKeyTypes() validates incoming key types but writes width values into mapWidths using an offset the client controls. When the offset exceeds 256, the function writes past the end of the stack buffer. This corrupts adjacent stack frames, saved registers, and the return address.

The X server typically runs with elevated privileges on traditional X11 desktops. On systems where the X server is setuid root or launched as root by a display manager, successful exploitation yields code execution in the root context. On Xwayland deployments, impact is limited to the user owning the Wayland session.

Root Cause

The root cause is missing bounds validation on the key type index before it is used as a write offset into mapWidths[256]. The XKB request handler trusts a client-supplied value that should be constrained to the buffer's declared size.

Attack Vector

Exploitation requires a local authenticated user with a connection to the X server. The attacker sends a crafted XkbSetMap request whose key type index field references an out-of-bounds slot. The malformed request triggers the overflow inside CheckKeyTypes(), overwriting stack data in _XkbSetMapChecks().

No user interaction is required beyond an active X11 session. Network exploitation is not possible by default because modern distributions restrict X server listeners to local sockets.

The vulnerability is described in detail in the GitLab Xorg Commit and the Red Hat CVE Advisory. See the upstream patch for the bounds-check fix.

Detection Methods for CVE-2026-50259

Indicators of Compromise

  • Unexpected Xorg or Xwayland process crashes with stack smashing or SIGSEGV signatures in /var/log/Xorg.0.log or journalctl output.
  • Core dumps from the X server containing references to _XkbSetMapChecks or CheckKeyTypes in the backtrace.
  • New root-owned processes spawned as children of a user-owned X session.

Detection Strategies

  • Monitor process telemetry for X server termination followed by privilege-elevated child processes from local user sessions.
  • Inspect audit logs for execve calls originating from Xorg or Xwayland that drop into shells or interpreters.
  • Correlate XKB-related client requests with subsequent server crashes by reviewing X server debug logs where available.

Monitoring Recommendations

  • Enable system auditing (auditd) to capture process executions and unexpected privilege transitions tied to graphical sessions.
  • Alert on repeated X server restarts on multi-user systems, jump hosts, and shared workstations.
  • Track package versions of xorg-x11-server and xwayland across the fleet to confirm patch deployment status.

How to Mitigate CVE-2026-50259

Immediate Actions Required

  • Apply vendor patches for xorg-x11-server and xwayland on all affected Red Hat Enterprise Linux 7, 8, 9, and 10 hosts.
  • Audit systems where the X server runs as root and migrate to rootless X or Wayland sessions where feasible.
  • Restrict local interactive access on shared multi-user systems until patches are applied.

Patch Information

The upstream fix is committed in the X.Org repository at GitLab Xorg Commit 867b59b3. The patch adds bounds validation on the key type index before it is used as an offset into mapWidths. Distribution-specific updates are tracked in the Red Hat CVE Advisory and the X.Org Announce List Post.

Workarounds

  • Switch affected users to a Wayland session where the compositor does not run as root, reducing the impact to denial of service of the user session.
  • Remove the setuid bit from the Xorg binary on systems that support rootless X, eliminating the privilege escalation path.
  • Limit X server access to trusted local users by enforcing xhost and socket permission restrictions.
bash
# Example: verify Xorg is not setuid root and confirm patched package version
ls -l /usr/bin/Xorg
rpm -q xorg-x11-server-Xorg xorg-x11-server-Xwayland
# On RHEL, apply vendor updates
sudo dnf update xorg-x11-server-Xorg xorg-x11-server-Xwayland

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechX Server

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.01%

  • 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
  • Technical References
  • Red Hat CVE Advisory

  • Red Hat Bug Report

  • X.Org Announce List Post

  • Red Hat JIRA Ticket
  • Vendor Resources
  • GitLab Xorg Commit
  • Related CVEs
  • CVE-2026-50258: X.org X Server Buffer Overflow Flaw

  • CVE-2023-6816: X.org X Server Buffer Overflow Vulnerability

  • CVE-2024-31080: X.org Server Buffer Overflow Vulnerability

  • CVE-2026-50260: X.org X Server Use-After-Free Flaw
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