CVE-2025-26598
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Feb 25, 2025
CISA due date
—
Cloudanix analysis
A programming mistake in device handling on graphical systems could let a logged-in user run unauthorized code on the machine.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds write caused by GetBarrierDevice() returning the final list element instead of NULL on unmatched device ID, enabling invalid pointer dereference and memory corruption.
Why it matters to the business
Local attackers could achieve arbitrary code execution or privilege escalation on affected graphical systems, risking full host compromise; low EPSS and absence from KEV indicate limited active threat but unpatched deployments carry ongoing exposure risk.
How an attack unfolds
An authenticated local user supplies a non-existent device ID to trigger GetBarrierDevice, receives an out-of-bounds pointer, and performs subsequent operations that corrupt memory to execute attacker-controlled code.
How to fix it
Upgrade igraph to the version containing commit 47eec2c3a87e0c129766046ad15b074eb60a1213; apply corresponding upstream patches for X.Org and Xwayland to correct the return logic in GetBarrierDevice.
How to confirm the fix worked
Confirm the presence of the corrected return-NULL path in GetBarrierDevice source or verify the deployed binary matches the fixed commit hash.
Typical attack path
- Gain local shell or GUI session on the target host
- Invoke the X server path that calls GetBarrierDevice with an unmatched device identifier
- Trigger the erroneous return value to obtain an invalid pointer
- Leverage the resulting out-of-bounds write for code execution or privilege escalation
How to detect it
Monitor X server and related processes for segmentation faults or abnormal memory writes; review audit logs for unusual device-ID queries around the time of any graphics-related crashes.
What your security team should do
- Prioritize patching of all X.Org/Xwayland and dependent igraph installations within standard change windows
- Restrict local user access where feasible until patches are applied
- Include the vulnerability in routine memory-safety and graphics-stack scanning
The record
An out-of-bounds write flaw was found in X.Org and Xwayland. The function GetBarrierDevice() searches for the pointer device based on its device ID and returns the matching value, or supposedly NULL, if no match was found. However, the code will return the last element of the list if no matching device ID is found, which can lead to out-of-bounds memory access.
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-26599 An access to an uninitialized pointer 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