CVE-2025-26599
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Feb 25, 2025
CISA due date
—
Cloudanix analysis
A bug in the graphics system used by many Linux computers can let someone who is already logged in take over the whole machine.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Uninitialized pointer dereference in compCheckRedirect() when pixmap allocation fails in compRedirectWindow(), leaving window tree validation state partially initialized and allowing later use of uninitialized data.
Why it matters to the business
Local attackers can achieve arbitrary code execution or system compromise on affected graphical environments, risking data exposure and service disruption on Linux desktops and servers using X.Org or Xwayland.
How an attack unfolds
A local attacker crafts a sequence of X11 window operations that trigger compositing redirection, forces a pixmap allocation failure inside compCheckRedirect(), and then reuses the partially validated window state to dereference an uninitialized pointer for memory corruption.
How to fix it
Apply vendor patches for X.Org Server, Xwayland, and TigerVNC as they become available; rebuild dependent packages such as TigerVNC against fixed X libraries; restrict local X11 access via authentication and sandboxing until updates are deployed.
How to confirm the fix worked
Confirm the presence of the corrected compRedirectWindow() error path that validates the window tree before returning on allocation failure; recompile test clients that exercise compositing redirection and verify absence of crashes or sanitizer reports under allocation-failure conditions.
Typical attack path
- Obtain local user access on a system running an affected X server
- Execute or inject a client that performs repeated window redirection and compositing calls
- Trigger pixmap allocation failure in compCheckRedirect()
- Reuse the incompletely validated window tree to dereference the uninitialized pointer
- Achieve memory corruption leading to code execution
How to detect it
Review X server logs and client process activity for repeated window redirection failures followed by abnormal memory access patterns; correlate with crash reports containing uninitialized pointer dereferences in compRedirectWindow or related compositing functions.
What your security team should do
- Prioritize patching X.Org Server and Xwayland on all multi-user or internet-facing Linux systems
- Monitor upstream git repositories and distribution security lists for released fixes
- Reduce attack surface by disabling compositing extensions where operationally feasible
- Enforce mandatory access controls and least-privilege execution for X clients
The record
An access to an uninitialized pointer flaw was found in X.Org and Xwayland. The function compCheckRedirect() may fail if it cannot allocate the backing pixmap. In that case, compRedirectWindow() will return a BadAlloc error without validating the window tree marked just before, which leaves the validated data partly initialized and the use of an uninitialized pointer later.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:8 | tigervnc | 0 | 1.13.1-15.el8_10 |
| AlmaLinux:8 | tigervnc-icons | 0 | 1.13.1-15.el8_10 |
| AlmaLinux:8 | tigervnc-license | 0 | 1.13.1-15.el8_10 |
| AlmaLinux:8 | tigervnc-selinux | 0 | 1.13.1-15.el8_10 |
| AlmaLinux:8 | tigervnc-server | 0 | 1.13.1-15.el8_10 |
| AlmaLinux:8 | tigervnc-server-minimal | 0 | 1.13.1-15.el8_10 |
| AlmaLinux:8 | tigervnc-server-module | 0 | 1.13.1-15.el8_10 |
| AlmaLinux:9 | tigervnc | 0 | 1.14.1-1.el9_5.1 |
| AlmaLinux:9 | tigervnc-icons | 0 | 1.14.1-1.el9_5.1 |
| AlmaLinux:9 | tigervnc-license | 0 | 1.14.1-1.el9_5.1 |
| AlmaLinux:9 | tigervnc-selinux | 0 | 1.14.1-1.el9_5.1 |
| AlmaLinux:9 | tigervnc-server | 0 | 1.14.1-1.el9_5.1 |
| AlmaLinux:9 | tigervnc-server-minimal | 0 | 1.14.1-1.el9_5.1 |
| AlmaLinux:9 | tigervnc-server-module | 0 | 1.14.1-1.el9_5.1 |
| AlmaLinux:9 | xorg-x11-server-Xdmx | 0 | 1.20.11-28.el9_6 |
| AlmaLinux:9 | xorg-x11-server-Xephyr | 0 | 1.20.11-28.el9_6 |
| AlmaLinux:9 | xorg-x11-server-Xnest | 0 | 1.20.11-28.el9_6 |
| AlmaLinux:9 | xorg-x11-server-Xorg | 0 | 1.20.11-28.el9_6 |
| AlmaLinux:9 | xorg-x11-server-Xvfb | 0 | 1.20.11-28.el9_6 |
| AlmaLinux:9 | xorg-x11-server-Xwayland | 0 | 23.2.7-3.el9_6 |
| AlmaLinux:9 | xorg-x11-server-Xwayland-devel | 0 | 23.2.7-3.el9_6 |
| AlmaLinux:9 | xorg-x11-server-common | 0 | 1.20.11-28.el9_6 |
| AlmaLinux:9 | xorg-x11-server-devel | 0 | 1.20.11-28.el9_6 |
| AlmaLinux:9 | xorg-x11-server-source | 0 | 1.20.11-28.el9_6 |
| Debian:11 | xorg-server | 0 | No fix |
| Debian:11 | xorg-server | 0 | 2:1.20.11-1+deb11u15 |
| Debian:12 | xorg-server | 0 | No fix |
| Debian:12 | xorg-server | 0 | 2:21.1.7-3+deb12u9 |
| Debian:12 | xwayland | 0 | No fix |
| Debian:13 | xorg-server | 0 | No fix |
| Debian:13 | xwayland | 0 | No fix |
| Mageia:9 | tigervnc | 0 | 1.13.1-2.7.mga9 |
| Mageia:9 | x11-server | 0 | 21.1.8-7.7.mga9 |
| Mageia:9 | x11-server-xwayland | 0 | 22.1.9-1.7.mga9 |
| SUSE:Enterprise Storage 7.1 | xorg-x11-server | 0 | 1.20.3-150200.22.5.102.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | xorg-x11-server | 0 | 1.20.3-150200.22.5.102.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | xorg-x11-server | 0 | 21.1.4-150500.7.32.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | xorg-x11-server | 0 | 21.1.4-150500.7.32.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | xorg-x11-server | 0 | 21.1.11-150600.5.6.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP6 | xorg-x11-server | 0 | 21.1.11-150600.5.6.1 |
| SUSE:Linux Enterprise Server 12 SP5-LTSS | xorg-x11-server | 0 | 1.19.6-10.80.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | xorg-x11-server | 0 | 1.20.3-150200.22.5.102.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | xorg-x11-server | 0 | 21.1.4-150500.7.32.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | xorg-x11-server | 0 | 1.19.6-10.80.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | xorg-x11-server | 0 | 1.20.3-150200.22.5.102.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | xorg-x11-server | 0 | 21.1.4-150500.7.32.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP6 | xorg-x11-server | 0 | 1.20.3-150200.22.5.102.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP6 | xwayland | 0 | 24.1.1-150600.5.9.1 |
| SUSE:Manager Proxy 4.3 | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| SUSE:Manager Server 4.3 | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| openSUSE:Leap 15.6 | xorg-x11-server | 0 | 21.1.11-150600.5.6.1 |
| openSUSE:Leap 15.6 | xwayland | 0 | 24.1.1-150600.5.9.1 |
| openSUSE:Tumbleweed | xorg-x11-server | 0 | 21.1.15-2.1 |
| openSUSE:Tumbleweed | xwayland | 0 | 24.1.5-2.1 |
Related vulnerabilities
- CVE-2025-49179 A flaw was found in the X Record extension. Also affects tigervnc
- CVE-2025-49180 A flaw was found in the RandR extension, where the RRChangeProviderProperty function does… Also affects tigervnc
- CVE-2025-49175 A flaw was found in the X Rendering extension's handling of animated cursors. Also affects tigervnc
- CVE-2025-49178 A flaw was found in the X server's request handling. Also affects tigervnc
- CVE-2025-49176 A flaw was found in the Big Requests extension. Also affects tigervnc
- CVE-2025-26601 A use-after-free flaw was found in X.Org and Xwayland. Also affects tigervnc
- CVE-2025-26600 A use-after-free flaw was found in X.Org and Xwayland. Also affects tigervnc
- CVE-2025-26598 An out-of-bounds write flaw was found in X.Org and Xwayland. Also affects tigervnc