Vulnerability · Published Feb 25, 2025 · Assigned by redhat
CVE-2025-26595Xorg: xwayland: buffer overflow in xkbvmodmasktext()
High 7.8
In plain English
A high-severity stack buffer overflow in xserver. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.4%top 61.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | tigervnc | 1.13.1-15.el8_10 | ALSA-2025:2502 |
| AlmaLinux:9 | tigervnc | 1.14.1-1.el9_5.1 | ALSA-2025:2500 |
| AlmaLinux:8 | tigervnc-icons | 1.13.1-15.el8_10 | ALSA-2025:2502 |
| AlmaLinux:9 | tigervnc-icons | 1.14.1-1.el9_5.1 | ALSA-2025:2500 |
| AlmaLinux:8 | tigervnc-license | 1.13.1-15.el8_10 | ALSA-2025:2502 |
| AlmaLinux:9 | tigervnc-license | 1.14.1-1.el9_5.1 | ALSA-2025:2500 |
| AlmaLinux:8 | tigervnc-selinux | 1.13.1-15.el8_10 | ALSA-2025:2502 |
| AlmaLinux:9 | tigervnc-selinux | 1.14.1-1.el9_5.1 | ALSA-2025:2500 |
| AlmaLinux:8 | tigervnc-server | 1.13.1-15.el8_10 | ALSA-2025:2502 |
| AlmaLinux:9 | tigervnc-server | 1.14.1-1.el9_5.1 | ALSA-2025:2500 |
| AlmaLinux:8 | tigervnc-server-minimal | 1.13.1-15.el8_10 | ALSA-2025:2502 |
| AlmaLinux:9 | tigervnc-server-minimal | 1.14.1-1.el9_5.1 | ALSA-2025:2500 |
| AlmaLinux:8 | tigervnc-server-module | 1.13.1-15.el8_10 | ALSA-2025:2502 |
| AlmaLinux:9 | tigervnc-server-module | 1.14.1-1.el9_5.1 | ALSA-2025:2500 |
| AlmaLinux:9 | xorg-x11-server-Xdmx | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| AlmaLinux:9 | xorg-x11-server-Xephyr | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| AlmaLinux:9 | xorg-x11-server-Xnest | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| AlmaLinux:9 | xorg-x11-server-Xorg | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| AlmaLinux:9 | xorg-x11-server-Xvfb | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| AlmaLinux:9 | xorg-x11-server-Xwayland | 23.2.7-3.el9_6 | ALSA-2025:7165 |
| AlmaLinux:9 | xorg-x11-server-Xwayland-devel | 23.2.7-3.el9_6 | ALSA-2025:7165 |
| AlmaLinux:9 | xorg-x11-server-common | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| AlmaLinux:9 | xorg-x11-server-devel | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| AlmaLinux:9 | xorg-x11-server-source | 1.20.11-28.el9_6 | ALSA-2025:7163 |
| Alpine:v3.21 | xorg-server | 21.1.16-r0 | ALPINE-CVE-2025-26595 |
| Alpine:v3.22 | xorg-server | 21.1.16-r0 | ALPINE-CVE-2025-26595 |
| Alpine:v3.23 | xorg-server | 21.1.16-r0 | ALPINE-CVE-2025-26595 |
| Alpine:v3.24 | xorg-server | 21.1.16-r0 | ALPINE-CVE-2025-26595 |
| Alpine:v3.21 | xwayland | 24.1.6-r0 | ALPINE-CVE-2025-26595 |
| Alpine:v3.22 | xwayland | 24.1.6-r0 | ALPINE-CVE-2025-26595 |
| Alpine:v3.23 | xwayland | 24.1.6-r0 | ALPINE-CVE-2025-26595 |
| Alpine:v3.24 | xwayland | 24.1.6-r0 | ALPINE-CVE-2025-26595 |
| Debian:12 | xorg-server | 2:21.1.7-3+deb12u9 | DSA-5872-1 |
| Debian:12 | xorg-server | 2:21.1.7-3+deb12u9 | DEBIAN-CVE-2025-26595 |
| Debian:13 | xorg-server | 2:21.1.16-1 | DEBIAN-CVE-2025-26595 |
| Debian:14 | xorg-server | 2:21.1.16-1 | DEBIAN-CVE-2025-26595 |
| Debian:12 | xwayland | no fix listed | DEBIAN-CVE-2025-26595 |
| Debian:13 | xwayland | 2:24.1.6-1 | DEBIAN-CVE-2025-26595 |
| Debian:14 | xwayland | 2:24.1.6-1 | DEBIAN-CVE-2025-26595 |
| Rocky Linux:8 | tigervnc | 0:1.13.1-15.el8_10 | RLSA-2025:2502 |
| Rocky Linux:9 | tigervnc | 0:1.14.1-1.el9_5.1 | RLSA-2025:2500 |
| Rocky Linux:9 | xorg-x11-server | 0:1.20.11-28.el9_6 | RLSA-2025:7163 |
| Rocky Linux:10 | xorg-x11-server-Xwayland | 0:24.1.5-3.el10_0 | RLSA-2025:7458 |
| Rocky Linux:9 | xorg-x11-server-Xwayland | 0:23.2.7-3.el9_6 | RLSA-2025:7165 |
| Ubuntu:22.04:LTS | xorg-server | 2:21.1.4-2ubuntu1.7~22.04.13 | UBUNTU-CVE-2025-26595 |
| Ubuntu:22.04:LTS | xorg-server | 2:21.1.4-2ubuntu1.7~22.04.13 | USN-7299-1 |
| Ubuntu:24.04:LTS | xorg-server | 2:21.1.12-1ubuntu1.2 | UBUNTU-CVE-2025-26595 |
| Ubuntu:24.04:LTS | xorg-server | 2:21.1.12-1ubuntu1.2 | USN-7299-1 |
| Ubuntu:25.10 | xorg-server | 2:21.1.16-1ubuntu1 | UBUNTU-CVE-2025-26595 |
| Ubuntu:22.04:LTS | xwayland | 2:22.1.1-1ubuntu0.17 | UBUNTU-CVE-2025-26595 |
| Ubuntu:22.04:LTS | xwayland | 2:22.1.1-1ubuntu0.17 | USN-7299-1 |
| Ubuntu:24.04:LTS | xwayland | 2:23.2.6-1ubuntu0.4 | UBUNTU-CVE-2025-26595 |
| Ubuntu:24.04:LTS | xwayland | 2:23.2.6-1ubuntu0.4 | USN-7299-1 |
Affected products (as reported)
Weakness: CWE-121 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- RHSA-2025:2500 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2502 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2861 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2862 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2865 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2866 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2873 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2874 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2875 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2879 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2880 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:3976 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:7163 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:7165 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:7458 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-26595 vdb-entry, x_refsource_REDHAT
- RHBZ#2345257 issue-tracking, x_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2025/02/msg00036.html