# CVE-2025-26595: Xorg: xwayland: buffer overflow in xkbvmodmasktext()

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 44% of CVEs (2026-12-01)
- Published: 2025-02-25T15:54:06.708Z
- Modified: 2026-11-23T15:17:17.333Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- xserver: before 21.1.16; from 22.0.0 before 24.1.6
- xorg-x11-server-Xwayland: no versions given (not affected: from 0:24.1.5-3.el10_0 before *; from 0:23.2.7-3.el9_6 before *)
- tigervnc: no versions given (not affected: from 0:1.1.0-25.el6_10 before *; from 0:1.8.0-36.el7_9 before *; from 0:1.13.1-15.el8_10 before *; from 0:1.9.0-15.el8_2.13 before *; from 0:1.11.0-8.el8_4.12 before *; from 0:1.12.0-6.el8_6.13 before *; from 0:1.12.0-15.el8_8.12 before *; from 0:1.14.1-1.el9_5.1 before *; from 0:1.11.0-22.el9_0.13 before *; from 0:1.12.0-14.el9_2.10 before *; from 0:1.13.1-8.el9_4.5 before *)
- xorg-x11-server: no versions given (not affected: from 0:1.20.4-30.el7_9 before *; from 0:1.20.11-28.el9_6 before *)
- tigervnc tigervnc: no versions given
- x.org x_server: before 21.1.16
- x.org xwayland: before 24.1.6
- redhat enterprise_linux: 7.0; 8.0; 9.0

## Every score

- redhat: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2025:2500> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2502> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2861> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2862> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2865> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2866> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2873> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2874> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2875> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2879> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2880> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:3976> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:7163> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:7165> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:7458> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-26595> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2345257> (issue-tracking)
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00036.html>

## Sources

- CVE List: [CVE-2025-26595](https://www.cve.org/CVERecord?id=CVE-2025-26595), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2025-26595](https://nvd.nist.gov/vuln/detail/CVE-2025-26595), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2025-26595 · Whole record: https://cve.day/CVE-2025-26595.json · Rebuilt by cve.day 2026-11-25T22:58:54.414Z
