CVE-2026-50258

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductX.org Xwayland
PublishedJun 5, 2026
First seenJun 5, 2026
Weakness typeCWE-121CWE-121

How to fix

Affected products

ProductAffected versionsFixed in
x.org xwaylandv < 24.1.1224.1.12
x.org x_serverv < 21.1.2321.1.23
redhat enterprise_linux7.0, 8.0, 9.0, 10.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.