CVE-2026-50258
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.
How to fix
- x.org xwayland24.1.12 or later
- x.org x_server21.1.23 or later
- access.redhat.com/errata/RHSA-2026:26562
- access.redhat.com/errata/RHSA-2026:26566
- access.redhat.com/errata/RHSA-2026:26590
- access.redhat.com/errata/RHSA-2026:26610
- access.redhat.com/errata/RHSA-2026:26709
- access.redhat.com/errata/RHSA-2026:28923
- access.redhat.com/errata/RHSA-2026:29844
- access.redhat.com/errata/RHSA-2026:36083
- access.redhat.com/errata/RHSA-2026:36085
- access.redhat.com/errata/RHSA-2026:36086
- access.redhat.com/errata/RHSA-2026:36087
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| x.org xwayland | v < 24.1.12 | 24.1.12 |
| x.org x_server | v < 21.1.23 | 21.1.23 |
| redhat enterprise_linux | 7.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.