
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-50256 is a stack-based buffer overflow vulnerability in the X.Org X server and Xwayland arising from a mismatch between the X server's allocated stack buffer size and the maximum font name length supported by the libXfont2 library. Disclosed on June 5, 2026, it affects X.Org X server versions prior to 21.1.23 and Xwayland versions prior to 24.1.12, as well as Red Hat Enterprise Linux 7.0 through 10.0. The vulnerability was reported via Trend Micro's Zero Day Initiative (ZDI-CAN-30136) and carries a CVSS v3.1 base score of 7.8 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause (CWE-121: Stack-based Buffer Overflow) lies in the font alias resolution code path of the X server. The X server allocates a 256-byte stack buffer for font alias target names, but libXfont2 supports alias target names up to 1024 bytes. When a font alias name between 257 and 1023 bytes is processed, the X server copies the full name into the undersized stack buffer without bounds checking, resulting in a stack overflow. Any X client that can connect to the server can trigger this condition by specifying a crafted font alias name, requiring only low privileges (Red Hat Bugzilla, GitHub Advisory). The upstream fix is available at the xorg/xserver repository (xorg commit).
Successful exploitation can result in a crash of the X server (denial of service) or, if the X server is running as root, privilege escalation to root-level code execution. A low-privileged local user with the ability to connect to the X server can trigger the overflow, potentially gaining full control of the affected system. The confidentiality, integrity, and availability impacts are all rated High, reflecting the potential for complete system compromise in root-running configurations (GitHub Advisory, Red Hat Bugzilla).
fonts.alias) containing a font alias entry whose target name is between 257 and 1023 bytes in length.XLoadFont() or a similar X protocol request) that causes the server to resolve the crafted alias./var/log/Xorg.0.log) around font alias resolution events; entries referencing unusually long font names.Xorg or Xwayland) terminating abnormally or spawning unexpected child processes with elevated privileges.fonts.alias files in font directories (e.g., /usr/share/fonts/, /usr/local/share/fonts/) containing entries with target names exceeding 256 bytes.The upstream fix is available in xorg-server 21.1.23 and xwayland 24.1.12 (xorg commit). Red Hat has issued security errata for affected RHEL versions: RHSA-2026:26562 (RHEL 8), RHSA-2026:26590 (RHEL 9), and RHSA-2026:26610 (RHEL 9) (Red Hat Bugzilla). Amazon Linux 2 users should apply ALAS2-2026-3336. As a workaround where immediate patching is not possible, restrict local user access to the X server and avoid running the X server as root to limit the impact of potential exploitation (GitHub Advisory).
The vulnerability was noted in Rapid7's June 2026 Patch Tuesday roundup and received coverage from security aggregators including CVEWatch on Reddit and threat radar platforms. Community sentiment reflects moderate concern given the local-only attack vector, though the potential for root privilege escalation on systems running X server as root has drawn attention. No major vendor statements beyond Red Hat's errata and the upstream X.Org announcement have been identified (Rapid7 Blog, Reddit CVEWatch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."