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"
}{
"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-50256.json"
[
{
"digest": {
"length": 4959.0,
"function_hash": "226841969607383458575528198343856582411"
},
"source": "https://gitlab.freedesktop.org/xorg/xserver@bb5158f962dc935e58ef8b4b5fcb31be201a6e07",
"deprecated": false,
"id": "CVE-2026-50256-1e6070da",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"function": "doListFontsAndAliases",
"file": "dix/dixfonts.c"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"235597679163711728160510450746049677151",
"251902728877092845361321370093009518014",
"161724534270453579691297116414688631003",
"14886565791004695535730354740734904921",
"47658518387258767233416733711291984937",
"250534153329749742640364808252131782808",
"1115961352580312677773680094675436930"
]
},
"source": "https://gitlab.freedesktop.org/xorg/xserver@bb5158f962dc935e58ef8b4b5fcb31be201a6e07",
"deprecated": false,
"id": "CVE-2026-50256-1e765821",
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "dix/dixfonts.c"
}
},
{
"signature_type": "Function",
"source": "https://gitlab.freedesktop.org/xorg/xserver@bb5158f962dc935e58ef8b4b5fcb31be201a6e07",
"deprecated": false,
"id": "CVE-2026-50256-f72149f2",
"signature_version": "v1",
"target": {
"function": "doListFontsWithInfo",
"file": "dix/dixfonts.c"
},
"digest": {
"function_hash": "99632976145133720408996465755559871013",
"length": 4821.0
}
}
]
"2026-08-12T16:25:38Z"