CVE-2025-26595
Xorg: xwayland: buffer overflow in xkbvmodmasktext()
Reported by redhat · Published February 25, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| xorg-x11-server-Xvfb | Amazon Linux | 21.1.13-5.amzn2023.0.3, 1.20.4-22.amzn2.0.8 |
| xorg-x11-server-Xwayland | Amazon Linux | 24.1.3-1.amzn2023.0.1, 1.20.4-22.amzn2.0.8 |
| xorg-x11-server-Xorg | Amazon Linux | 21.1.13-5.amzn2023.0.3, 1.20.4-22.amzn2.0.8 |
| xorg-x11-server-Xephyr | Amazon Linux | 21.1.13-5.amzn2023.0.3, 1.20.4-22.amzn2.0.8 |
| xorg-x11-server-common | Amazon Linux | 21.1.13-5.amzn2023.0.3, 1.20.4-22.amzn2.0.8 |
| xorg-x11-server-devel | Amazon Linux | 21.1.13-5.amzn2023.0.3, 1.20.4-22.amzn2.0.8 |
| xorg-x11-server-Xwayland-devel | Amazon Linux | 24.1.3-1.amzn2023.0.1 |
| xorg-x11-server-Xnest | Amazon Linux | 21.1.13-5.amzn2023.0.3, 1.20.4-22.amzn2.0.8 |
| xwayland | Alpine | 24.1.6-r0 |
| xserver | gitlab.freedesktop.org | 24.1.6, 21.1.16 |
| xorg-x11-server-source | Amazon Linux | 21.1.13-5.amzn2023.0.3, 1.20.4-22.amzn2.0.8 |
| xorg-server | Alpine | 21.1.16-r0 |
3 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0, 22.0.0 | ||
| Red Hat | Red Hat Enterprise Linux 10 | 0:24.1.5-3.el10_0 |
| Red Hat | Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION | 0:1.1.0-25.el6_10 |
| Red Hat | Red Hat Enterprise Linux 7 Extended Lifecycle Support | 0:1.8.0-36.el7_9 |
| Red Hat | Red Hat Enterprise Linux 7 Extended Lifecycle Support | 0:1.20.4-30.el7_9 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:1.13.1-15.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 0:1.9.0-15.el8_2.13 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:1.11.0-8.el8_4.12 |
| Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | 0:1.11.0-8.el8_4.12 |
| Red Hat | Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | 0:1.11.0-8.el8_4.12 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:1.12.0-6.el8_6.13 |
| Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | 0:1.12.0-6.el8_6.13 |
| Red Hat | Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | 0:1.12.0-6.el8_6.13 |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | 0:1.12.0-15.el8_8.12 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:1.14.1-1.el9_5.1 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:1.20.11-28.el9_6 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:23.2.7-3.el9_6 |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | 0:1.11.0-22.el9_0.13 |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | 0:1.12.0-14.el9_2.10 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | 0:1.13.1-8.el9_4.5 |
…and 50 more
Timeline
- Feb 25, 2025 CVE Published
- Feb 27, 2025 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (38 in total, the first dated here)
- Jun 16, 2026 Coalition ESS Score
- Sep 21, 2026 CVE Updated
- Sep 23, 2026 Distribution Patch (27 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-26595
vulnetix vdb fixes CVE-2025-26595
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-26595/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2025:2500 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2502 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2861 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2862 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2865 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2866 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2873 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2874 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2875 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2879 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2880 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:3976 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7163 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7165 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:7458 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2345257 issue-trackingx_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2025/02/msg00036.html url