CVE-2026-50258: A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland
CVE-2026-50258 is a high-severity flaw (CVSS 7.8) affecting x server, xwayland, enterprise linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 esc
Why this priority
- High severity
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.2% (top 95%) |
| CISA exploited list | No |
| Weakness | CWE-121 |
| Published | 2026-06-05 |
| Last modified | 2026-08-05 |
Last updated 2026-08-05 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Advisories and coverage
Official advisories
- AlmaLinux Errata: [ALSA-2026:26590] Important: xorg-x11-server-Xwayland security, bug fix, and enhancement update 2026-07-02
- AlmaLinux Errata: [ALSA-2026:26610] Important: xorg-x11-server security, bug fix, and enhancement update 2026-07-02
- AlmaLinux Errata: [ALSA-2026:29844] Important: tigervnc security update 2026-06-29
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-50258?
x server: upgrade to 21.1.23; xwayland: upgrade to 24.1.12; enterprise linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2026-50258 being exploited?
CVE-2026-50258 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-50258 affect?
CVE-2026-50258 affects x server, xwayland, enterprise linux. Severity is high (CVSS 7.8). 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 XkbMax
How urgent is CVE-2026-50258?
Priority 34/100. High severity; On your watchlist
Related CVEs
- CVE-2026-34000 MEDIUM 6.1 MITIGATE MITIGATE A flaw was found in the X.Org X server
- CVE-2026-34002 MEDIUM 6.1 MITIGATE MITIGATE A flaw was found in the X.Org X server
- CVE-2026-50261 HIGH 7.8 UPGRADE UPGRADE A use-after-free flaw was found in the X.Org X server and Xwayland in SyncChangeCounter()
- CVE-2026-50260 HIGH 7.8 UPGRADE UPGRADE A use-after-free flaw was found in the X.Org X server and Xwayland in FreeCounter()
- CVE-2026-50259 HIGH 7.8 UPGRADE UPGRADE A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland