7.8high
Xorg: xwayland: buffer overflow in xkbvmodmasktext()
- Severity
- 7.8high CVSS:3.1 by redhat
- Exploit likelihood
- 0.49% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xserver | before 21.1.16, from 22.0.0 before 24.1.6 | CVE List |
| xorg-x11-server-Xwayland | Not specified Not affected: from 0:24.1.5-3.el10_0 before *, from 0:23.2.7-3.el9_6 before * | CVE List |
| tigervnc | Not specified 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 * | CVE List |
| xorg-x11-server | Not specified Not affected: from 0:1.20.4-30.el7_9 before *, from 0:1.20.11-28.el9_6 before * | CVE List |
| tigervnc tigervnc | Not specified | NVD |
| x.org x_server | before 21.1.16 | NVD |
| x.org xwayland | before 24.1.6 | NVD |
| redhat enterprise_linux | 7.0, 8.0, 9.0 | NVD |
All scores
| redhat | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Se encontró una falla de desbordamiento de búfer en X.Org y Xwayland. El código en XkbVModMaskText() asigna un búfer de tamaño fijo en la pila y copia los nombres de los modificadores virtuales en ese búfer. El código no verifica los límites del búfer y copia los datos independientemente del tamaño.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-26595 changed 2026-11-23 | CVE Terms of Use |
| NVD | CVE-2025-26595 changed 2026-11-23 | Public domain |