CVE-2026-55999
Executive Summary
CVE-2026-55999 is a critical heap buffer overflow vulnerability in xorg-server (before 21.2.24) and xwayland (before 24.1.13). The flaw resides in the SetFont function when processing PCX fonts, where missing glyph boundary checks allow a local attacker with an X connection to trigger a heap overflow. This can lead to arbitrary code execution, privilege escalation, or denial of service. The vulnerability has a CVSS score of 8.5, indicating high severity, but the EPSS score is 0.0%, suggesting no active exploitation in the wild. No public proof-of-concept or exploit code is available, and no patch has been released by the vendor.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects the X.Org server and XWayland, which are core components of the Linux graphical stack. Organizations using these packages should monitor for updates from their Linux distribution vendors. The lack of a patch increases risk, and temporary mitigations such as restricting local X connections or disabling PCX font support should be considered.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Local (L) – requires local access to the system.
- Attack Complexity (AC): Low (L) – no special conditions needed.
- Privileges Required (PR): Low (L) – attacker needs a user account with X connection.
- User Interaction (UI): None (N) – no user action required.
- Scope (S): Unchanged (U) – vulnerability does not affect other components.
- Confidentiality (C): High (H) – potential data exposure.
- Integrity (I): High (H) – potential data modification.
- Availability (A): High (H) – potential denial of service.
Threat Level: High. Local exploitation could lead to full system compromise.
Deep Dive & Mechanics
The vulnerability is in the SetFont function within the X server's font handling code. When processing PCX fonts, the server fails to validate glyph boundaries before copying data into a heap buffer. An attacker can craft a malicious PCX font with oversized glyph data, causing a heap buffer overflow when the server attempts to store the glyph. This overflow can corrupt adjacent heap memory, potentially allowing the attacker to overwrite function pointers or other critical data structures.
The attack requires the attacker to have an active X connection (e.g., via SSH with X forwarding or local display). The attacker then sends a SetFont request with a crafted PCX font. The server's font loader reads the font data without proper bounds checking, leading to the overflow.
Vulnerable vs. Patched Code
The vulnerable code is in the SetFont function, likely in dix/fonts.c or similar. The missing check is for glyph boundary validation.
Vulnerable code (pseudo):
void SetFont(ClientPtr client, FontPtr font) {
// ...
for (int i = 0; i < font->num_glyphs; i++) {
// No check on glyph size
memcpy(buffer, font->glyphs[i].data, font->glyphs[i].size);
}
}
Patched code (expected):
void SetFont(ClientPtr client, FontPtr font) {
// ...
for (int i = 0; i < font->num_glyphs; i++) {
if (font->glyphs[i].size > MAX_GLYPH_SIZE) {
// Reject oversized glyph
return BadFont;
}
memcpy(buffer, font->glyphs[i].data, font->glyphs[i].size);
}
}
The patch adds a boundary check to ensure glyph sizes do not exceed the allocated buffer.
Exploitation & Lab Setup
Red Team (Exploitation)
No public exploit code is available. However, a proof-of-concept can be developed:
- Setup: Use a Linux VM with xorg-server < 21.2.24 or xwayland < 24.1.13.
- Craft Malicious PCX Font: Create a PCX font file with a glyph that has an oversized
sizefield (e.g., 0xFFFF). - Send SetFont Request: Use Xlib or a custom X client to connect to the X server and send a
SetFontrequest with the malicious font. - Trigger Overflow: The server will copy the oversized glyph data into a heap buffer, causing overflow.
- Achieve Code Execution: Overwrite a function pointer (e.g., in the font structure) to redirect execution to shellcode.
Example exploit skeleton (Python with ctypes):
import ctypes
from Xlib import display, X
# Connect to X server
d = display.Display()
screen = d.screen()
# Load malicious PCX font
with open('malicious.pcf', 'rb') as f:
font_data = f.read()
# Create font from data (simplified)
font = d.create_font_from_data(font_data)
# Set font (triggers overflow)
d.set_font(font)
d.flush()
Blue Team (Defense)
- Monitor X Server Logs: Look for crashes or unusual font loading attempts.
- Restrict X Connections: Use
xhostor firewall rules to limit local X access. - Disable PCX Font Support: If possible, remove PCX font support from the X server configuration.
- Apply Vendor Patches: Once available, update to patched versions.
- Use AppArmor/SELinux: Restrict X server capabilities to limit impact.
Indicators of Compromise (IOCs)
- File: Malicious PCX font files with oversized glyph sizes.
- Process: X server crash logs showing heap corruption.
- Network: Unusual X11 protocol requests (SetFont with large data).
- Memory: Heap overflow patterns in X server memory dumps.
Detection Engineering
YARA Rule
The full machine-readable detection artifact (Sigma, YARA, Suricata, Elastic, Splunk or Wazuh rule body) is available through the ValtersIT API — moved there in response to large-scale automated scraping, to keep this independently-researched intelligence sustainable. The written analysis on every record remains fully open.
[ GET API ACCESS ] →Sigma Rule
The full machine-readable detection artifact (Sigma, YARA, Suricata, Elastic, Splunk or Wazuh rule body) is available through the ValtersIT API — moved there in response to large-scale automated scraping, to keep this independently-researched intelligence sustainable. The written analysis on every record remains fully open.
[ GET API ACCESS ] →Suricata Rule
The full machine-readable detection artifact (Sigma, YARA, Suricata, Elastic, Splunk or Wazuh rule body) is available through the ValtersIT API — moved there in response to large-scale automated scraping, to keep this independently-researched intelligence sustainable. The written analysis on every record remains fully open.
[ GET API ACCESS ] →Remediation & Mitigation
- Immediate: Restrict local X connections to trusted users only.
- Short-term: Disable PCX font support in X server configuration (if possible).
- Long-term: Apply vendor patches once released. Monitor for updates from your Linux distribution.
- Compensating Controls: Use SELinux or AppArmor to confine the X server process.
- Monitoring: Enable detailed logging for X server events and review for anomalies.
Valters IT signature: This report is provided for educational and defensive purposes only. Unauthorized exploitation is illegal.