Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93542 Overview
CVE-2026-93542 is an out-of-bounds read vulnerability in libXi, the X Window System client library implementing the X Input Extension (XI2). The flaw resides in the size_classes() and copy_classes() functions responsible for parsing XI2 device class data returned by an X server. A malicious X server can send crafted responses that cause the client to read memory beyond allocated bounds, crashing the X client process. The issue affects versions of libXi prior to 1.8.4 and is tracked under CWE-125.
Critical Impact
A malicious X server can crash connected X clients by sending malformed XI2 class data, resulting in denial of service for applications that trust the server.
Affected Products
- libXi versions prior to 1.8.4
- X.Org client applications that link against vulnerable libXi builds
- Linux and Unix-like distributions shipping libXi from freedesktop.org
Discovery Timeline
- 2026-09-24 - CVE-2026-93542 published to the National Vulnerability Database
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-93542
Vulnerability Analysis
The X Input Extension protocol allows an X server to describe input devices by returning sequences of class records to the client. libXi parses these records inside size_classes() to compute the memory required for an internal representation, and then inside copy_classes() to populate those structures.
When the server returns class data with lengths, counts, or type identifiers that do not match the real buffer contents, both routines iterate past the end of the server-supplied reply. The result is an out-of-bounds read that typically terminates the client with a segmentation fault. The vulnerability is reachable over the network because X protocol traffic can be tunneled through TCP, SSH forwarding, or remote display sessions, extending exposure beyond local sockets.
Root Cause
The root cause is missing bounds validation on attacker-controlled length and count fields in XI2 class records before size_classes() and copy_classes() dereference them. Trust in a cooperating server is baked into the parser, so adversarial reply framing is not rejected. The upstream fix in merge request 23 adds explicit length checks against the remaining reply buffer during class enumeration and copy.
Attack Vector
An attacker must control or impersonate an X server that a victim client connects to. User interaction is required, typically launching an X application against the hostile display. Once connected, the server returns malformed XI2 device class data in response to standard input extension queries, triggering the out-of-bounds read in the client. The impact is limited to availability; confidentiality and integrity are not affected.
See the upstream patch for the exact parser changes in libXi merge request 23.
Detection Methods for CVE-2026-93542
Indicators of Compromise
- Unexpected crashes or SIGSEGV terminations of X client applications shortly after connecting to a remote DISPLAY.
- Core dumps whose stack traces include size_classes or copy_classes frames from libXi.
- X11 or SSH X11-forwarding sessions originating from untrusted hosts immediately preceding client failure.
Detection Strategies
- Inventory installed libXi versions across Linux endpoints and flag any build older than 1.8.4.
- Correlate application crash telemetry with recent X11 connection events to untrusted display servers.
- Monitor outbound TCP connections to X11 ports (6000-6063) and SSH sessions enabling X forwarding from workstations.
Monitoring Recommendations
- Collect and parse systemd-coredump and abrt events to surface repeated libXi crashes.
- Alert on process exits with abnormal signals for GUI applications on servers and jump hosts.
- Audit ssh client configurations and user sessions for ForwardX11 and ForwardX11Trusted usage.
How to Mitigate CVE-2026-93542
Immediate Actions Required
- Upgrade libXi to version 1.8.4 or later on all affected systems.
- Rebuild and redeploy any statically linked applications that bundle a vulnerable libXi.
- Restrict X client connections to trusted display servers only, and disable X11 forwarding from untrusted hosts.
Patch Information
The fix is included in libXi1.8.4. The upstream change adds bounds validation to the XI2 class parsing routines and is published in libXi merge request 23. Linux distributions typically backport the fix into their packaged libXi builds; apply vendor updates through the standard package manager.
Workarounds
- Disable X11 forwarding in ssh by setting ForwardX11 no in ~/.ssh/config for untrusted destinations.
- Avoid setting the DISPLAY environment variable to servers outside of administrative control.
- Where feasible, migrate workloads to Wayland sessions that do not use libXi for input event handling.
# Verify installed libXi version and disable untrusted X11 forwarding
pkg-config --modversion xi
# ~/.ssh/config
Host *
ForwardX11 no
ForwardX11Trusted no
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

