CVE-2025-26595
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Feb 25, 2025
CISA due date
—
Cloudanix analysis
A flaw in core graphics software can let someone already on the computer take control of the machine or make it stop working.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in XkbVModMaskText() that copies virtual modifier names into a fixed-size buffer without bounds checking, enabling memory corruption.
Why it matters to the business
Local attackers may achieve code execution or denial of service on systems running affected X11/Wayland components, risking workstation compromise in graphical desktop environments; low immediate urgency given absent exploitation and limited downstream dependents.
How an attack unfolds
An attacker with local access supplies crafted virtual modifier names through keyboard configuration or X protocol input that triggers unbounded copying in XkbVModMaskText(), overwriting the stack to hijack control flow.
How to fix it
Upgrade affected packages to fixed versions; for gdal apply commit b8cc984317dbc6628d43256b7059f22b5b8bbe55 and update underlying X.Org/Xwayland packages once patches are released by distributors.
How to confirm the fix worked
Confirm package versions match or exceed the fixed commits, run regression tests exercising Xkb modifier handling, and verify no buffer overflow occurs under fuzzing with oversized modifier names.
Typical attack path
- Obtain local user access on a graphical Linux system
- Configure or send input containing oversized virtual modifier names
- Trigger XkbVModMaskText() via X server processing
- Overwrite stack memory to execute attacker-controlled code or crash the server
How to detect it
Review X server logs and core dumps for segmentation faults during keyboard modifier processing; correlate with local process launches following X protocol activity.
What your security team should do
- Prioritize patching X.Org and Xwayland in all graphical workstation fleets
- Inventory systems with the six downstream dependents and schedule upgrades
- Harden local access controls and monitor for anomalous X server crashes
The record
A buffer overflow flaw was found in X.Org and Xwayland. The code in XkbVModMaskText() allocates a fixed-sized buffer on the stack and copies the names of the virtual modifiers to that buffer. The code fails to check the bounds of the buffer and would copy the data regardless of the size.
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 | libxkbfile | 0 | 1.0.9-150000.3.3.1 |
| 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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.8-12.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.8-12.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.0.9-150000.3.3.1 |
| SUSE:Manager Proxy 4.3 | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| SUSE:Manager Server 4.3 | libxkbfile | 0 | 1.0.9-150000.3.3.1 |
| SUSE:Manager Server 4.3 | xorg-x11-server | 0 | 1.20.3-150400.38.54.1 |
| openSUSE:Leap 15.6 | libxkbfile | 0 | 1.0.9-150000.3.3.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 | libxkbfile | 0 | 1.1.3-2.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