CVE-2026-50259

High

Description

A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland. _XkbSetMapChecks() declares a fixed-size stack buffer mapWidths[256] indexed by key type index. The helper function CheckKeyTypes() writes to this buffer at a client-controlled offset, allowing a stack buffer overflow. 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.