CVE-2026-50258

Published Jun 5, 2026

Last updated an hour ago

CVSS high 7.8
X.Org X server
Xwayland

Overview

AI description

Automated description summarized from trusted sources.

CVE-2026-50258 describes a stack-based buffer overflow vulnerability affecting the X.Org X server and Xwayland. The flaw originates within the `CheckKeyTypes()` function, which fails to adequately verify or restrict non-canonical key types. This oversight allows a malicious client to manipulate key types to excessive shift levels, thereby triggering stack overflows. The vulnerability is identified as an incomplete resolution of a prior security issue, CVE-2025-26597.

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.
Source
secalert@redhat.com
NVD status
Modified
Products
x_server, xwayland, enterprise_linux

Risk scores

CVSS 3.1

Type
Secondary
Base score
7.8
Impact score
5.9
Exploitability score
1.8
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity
HIGH

Weaknesses

secalert@redhat.com
CWE-121
0b0ca135-0b70-47e7-9f44-1890c2a1c46c
CWE-121

Social media

Hype score
Not currently trending

Configurations

References

Sources include official advisories and independent security research.