CVE-2025-26595
JSON

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 packageVersionsReported by
xserverbefore 21.1.16, from 22.0.0 before 24.1.6CVE List
xorg-x11-server-XwaylandNot specified
Not affected: from 0:24.1.5-3.el10_0 before *, from 0:23.2.7-3.el9_6 before *
CVE List
tigervncNot 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-serverNot specified
Not affected: from 0:1.20.4-30.el7_9 before *, from 0:1.20.11-28.el9_6 before *
CVE List
tigervnc tigervncNot specifiedNVD
x.org x_serverbefore 21.1.16NVD
x.org xwaylandbefore 24.1.6NVD
redhat enterprise_linux7.0, 8.0, 9.0NVD

All scores

redhat7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-121CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

https://access.redhat.com/errata/RHSA-2025:2500third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2502third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2861third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2862third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2865third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2866third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2873third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2874third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2875third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2879third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:2880third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2025:3976vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-26595 changed 2026-11-23CVE Terms of Use
NVDCVE-2025-26595 changed 2026-11-23Public domain