X.Org X Server: Stack Buffer Overflow via Font Alias Length Attack (CVE-2026-50256)
CVE-2026-50256 Published on June 5, 2026
Xorg-x11-server: xorg-x11-server-xwayland: xorg-x11-server: stack buffer overflow in font alias resolution due to libxfont2 name length mismatch
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.
Vulnerability Analysis
CVE-2026-50256 is exploitable with local system access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public. 18 days later.
Weakness Type
What is a Stack Overflow Vulnerability?
A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
CVE-2026-50256 has been classified to as a Stack Overflow vulnerability or weakness.
Products Associated with CVE-2026-50256
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Enterprise Linux 10:- Version 0:24.1.9-4.el10_2.2 and below * is unaffected.
- Version 0:1.20.4-35.el7_9 and below * is unaffected.
- Version 0:21.1.3-20.el8_10.2 and below * is unaffected.
- Version 0:1.20.11-28.el8_10.2 and below * is unaffected.
- Version 0:1.15.0-10.el8_10 and below * is unaffected.
- Version 0:1.20.10-5.el8_4 and below * is unaffected.
- Version 0:1.20.10-5.el8_4 and below * is unaffected.
- Version 0:1.20.11-8.el8_6 and below * is unaffected.
- Version 0:1.20.11-8.el8_6 and below * is unaffected.
- Version 0:24.1.9-4.el9_8.2 and below * is unaffected.
- Version 0:1.20.11-34.el9_8.2 and below * is unaffected.
- Version 0:1.15.0-7.el9_8.2 and below * is unaffected.
- Version 0:1.20.11-21.el9_2 and below * is unaffected.
- Version 0:21.1.3-10.el9_2.1 and below * is unaffected.
- Version 0:1.20.11-29.el9_4 and below * is unaffected.
- Version 0:22.1.9-8.el9_4.1 and below * is unaffected.
- Version 0:1.20.11-34.el9_6 and below * is unaffected.
- Version 0:23.2.7-6.el9_6.1 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.