A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland. A mismatch between the X server and the libXfont2 library's maximum font name length can cause a stack buffer overflow during font alias resolution. The server allocates a 256 byte stack buffer but libXfont2's alias target name length is 1024 bytes. A font alias name between 257 and 1023 bytes causes the X server to copy that name into the undersized stack buffer without further checks. 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-50256.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0:24.1.9-4.el10_2.2"
},
{
"fixed": "0:24.1.5-6.el10_0.1"
},
{
"fixed": "0:1.1.0-25.el6_10.18"
},
{
"fixed": "0:1.20.4-35.el7_9"
},
{
"fixed": "0:1.8.0-36.el7_9.5"
},
{
"fixed": "0:21.1.3-20.el8_10.2"
},
{
"fixed": "0:1.20.11-28.el8_10.2"
},
{
"fixed": "0:1.15.0-10.el8_10"
},
{
"fixed": "0:1.20.10-5.el8_4"
},
{
"fixed": "0:1.11.0-8.el8_4.16"
},
{
"fixed": "0:1.20.10-5.el8_4"
},
{
"fixed": "0:1.11.0-8.el8_4.16"
},
{
"fixed": "0:1.20.11-8.el8_6"
},
{
"fixed": "0:21.1.3-2.el8_6.7"
},
{
"fixed": "0:1.12.0-6.el8_6.18"
},
{
"fixed": "0:1.20.11-8.el8_6"
},
{
"fixed": "0:21.1.3-2.el8_6.7"
},
{
"fixed": "0:1.12.0-6.el8_6.18"
},
{
"fixed": "0:1.20.11-19.el8_8"
},
{
"fixed": "0:21.1.3-13.el8_8.1"
},
{
"fixed": "0:1.12.0-15.el8_8.18"
},
{
"fixed": "0:1.20.11-19.el8_8"
},
{
"fixed": "0:21.1.3-13.el8_8.1"
},
{
"fixed": "0:1.12.0-15.el8_8.18"
},
{
"fixed": "0:24.1.9-4.el9_8.2"
},
{
"fixed": "0:1.20.11-34.el9_8.2"
},
{
"fixed": "0:1.15.0-7.el9_8.2"
},
{
"fixed": "0:1.20.11-21.el9_2"
},
{
"fixed": "0:21.1.3-10.el9_2.1"
},
{
"fixed": "0:1.12.0-14.el9_2.15"
},
{
"fixed": "0:1.20.11-29.el9_4"
},
{
"fixed": "0:22.1.9-8.el9_4.1"
},
{
"fixed": "0:1.13.1-8.el9_4.10"
},
{
"fixed": "0:1.20.11-34.el9_6"
},
{
"fixed": "0:23.2.7-6.el9_6.1"
},
{
"fixed": "0:1.14.1-11.el9_6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:x.org:x_server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "21.1.23"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:x.org:xwayland:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "24.1.12"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "bb5158f962dc935e58ef8b4b5fcb31be201a6e07"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50256.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "226841969607383458575528198343856582411",
"length": 4959
},
"id": "CVE-2026-50256-1e6070da",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://gitlab.freedesktop.org/xorg/xserver@bb5158f962dc935e58ef8b4b5fcb31be201a6e07",
"target": {
"file": "dix/dixfonts.c",
"function": "doListFontsAndAliases"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"235597679163711728160510450746049677151",
"251902728877092845361321370093009518014",
"161724534270453579691297116414688631003",
"14886565791004695535730354740734904921",
"47658518387258767233416733711291984937",
"250534153329749742640364808252131782808",
"1115961352580312677773680094675436930"
],
"threshold": 0.9
},
"id": "CVE-2026-50256-1e765821",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://gitlab.freedesktop.org/xorg/xserver@bb5158f962dc935e58ef8b4b5fcb31be201a6e07",
"target": {
"file": "dix/dixfonts.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "99632976145133720408996465755559871013",
"length": 4821
},
"id": "CVE-2026-50256-f72149f2",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://gitlab.freedesktop.org/xorg/xserver@bb5158f962dc935e58ef8b4b5fcb31be201a6e07",
"target": {
"file": "dix/dixfonts.c",
"function": "doListFontsWithInfo"
}
}
]
"2026-10-21T10:16:42Z"