CVE-2026-50258
Last modified
CVE-2026-50258 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| X.Org | X Server | < 21.1.23 |
| X.Org | Xwayland | < 24.1.12 |
| Redhat | Enterprise Linux | 7.0 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux | 9.0 |
| Redhat | Enterprise Linux | 10.0 |
References
- https://access.redhat.com/security/cve/CVE-2026-50258Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2485383Issue Tracking, Third Party Advisory
- https://lists.x.org/archives/xorg-announce/2026-June/003702.htmlMailing List, Third Party Advisory
- https://redhat.atlassian.net/browse/PSIRTSUPT-16950Permissions Required
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-50258?
How severe is CVE-2026-50258?
How do I fix CVE-2026-50258?
Are you affected by CVE-2026-50258?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
