CVE-2026-55999: xorg-server / xwayland glamor font atlas Heap Buffer Overflow

Published Jul 1, 2026
·
Updated

glamorfontget() builds a per-font texture atlas by laying out every glyph in the font into a single backing buffer. It computes the slot dimensions from the font's declared maxbounds, but copies each per-glyph bitmap using the individual glyph's metrics (GLYPHHEIGHTPIXELS/GLYPHWIDTHBYTES macros). There is no check that maxbounds actually bounds the per-glyph values.

When the font is loaded from a malicious PCF file whose per-glyph metrics exceed the file's maxbounds, the per-glyph memcpy writes far beyond the heap-allocated slot, producing a heap buffer overflow with attacker-controlled extent and attacker-controlled content.

An authenticated X client can trigger this by using SetFontPath to add a directory containing a crafted PCF font, loading the font with OpenFont, and drawing text on a glamor-backed drawable. Only servers using the glamor acceleration backend (Xorg with modesetting driver, Xwayland) are affected.

Other sources

Local attackers with a X connection able to provide PCX fonts to the X server xorg-server before 21.2.24 and xwayland before 24.1.13 could cause a heap buffer overflow via SetFont due to missing glyph boundary checks.

MITRE

Affected Software

4 affected components
X.Org Foundation xorg-server<21.2.24
Xwayland<24.1.13
X.Org X Server<21.2.24
X.Org Xwayland<24.1.13

Event History

Jul 1, 2026
Data Sourced
via Red Hat·08:21 PM
DescriptionSeverityAffected Software
Jul 8, 2026
CVE Published
via MITRE·08:07 AM
Data Sourced
via MITRE·08:07 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-55999?

CVE-2026-55999 has a severity rating of high, with a score of 8.5.

2

How do I fix CVE-2026-55999?

To fix CVE-2026-55999, upgrade to xorg-server version 21.2.24 or later and xwayland version 24.1.13 or later.

3

What are the potential impacts of CVE-2026-55999?

CVE-2026-55999 can lead to a heap buffer overflow that may allow local attackers to execute arbitrary code.

4

Which software is affected by CVE-2026-55999?

CVE-2026-55999 affects xorg-server versions prior to 21.2.24 and xwayland versions prior to 24.1.13.

5

What type of vulnerability is CVE-2026-55999 classified as?

CVE-2026-55999 is classified as a Buffer Overflow vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203