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.
{
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-121"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50258.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "21.1.23"
},
{
"fixed": "24.1.12"
},
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
],
"cpe": [
"cpe:2.3:a:x.org:x_server:*:*:*:*:*:*:*:*",
"cpe:2.3:a:x.org:xwayland:*:*:*:*:*:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50258.json"
[
{
"target": {
"file": "xkb/xkb.c"
},
"deprecated": false,
"source": "https://gitlab.freedesktop.org/xorg/xserver@543e108516428fc8c3bea91d6563ad266f9a801e",
"id": "CVE-2026-50258-2be6445d",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"300610838174649088870011561480334954400",
"139204243002080387561271325927140555814",
"244331644946721174751841906403275508494",
"270921011548502308155737909051683454974"
]
},
"signature_type": "Line"
},
{
"signature_type": "Function",
"source": "https://gitlab.freedesktop.org/xorg/xserver@543e108516428fc8c3bea91d6563ad266f9a801e",
"deprecated": false,
"id": "CVE-2026-50258-3997eb36",
"signature_version": "v1",
"target": {
"function": "CheckKeyTypes",
"file": "xkb/xkb.c"
},
"digest": {
"length": 3684.0,
"function_hash": "207369876806876076812300766667042293307"
}
}
]
"2026-08-12T16:25:38Z"