CVE-2026-50258
xorg-x11-server: xorg-x11-server-Xwayland: xorg-x11-server: stack buffer overflow in XKB key types due to unchecked shift levels
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 2, 2026
Updated · September 28, 2026
Description
A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland. The X server has multiple stack buffers sized XkbMaxShiftLevel * XkbNumKbdGroups but CheckKeyTypes() does not verify or clamp non-canonical key types to XkbMaxShiftLevel. A client can change key types to excessive shift levels and trigger stack overflows. This is caused by an incomplete fix of CVE-2025-26597. This may be used to crash the server, or for privilege escalation if the X server runs as root.
Statement
Red Hat rates this issue as Important impact. In xorg-x11-server and xorg-x11-server-Xwayland, CheckKeyTypes() does not clamp non-canonical keyboard types to XkbMaxShiftLevel. A local X client can set excessive shift levels and trigger stack buffer overflows in multiple code paths. This is an incomplete fix of CVE-2025-26597. Any local user who can connect to the X server display can attempt exploitation. Upstream fixed this in xorg-server 21.1.23 and xwayland 24.1.12.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-121 · Stack-based Buffer Overflow