REDHAT-BUG-2496165: 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.

Affected Software

2 affected components
X.Org Foundation Xorg Server (glamor acceleration backend)
freedesktop.org Xwayland

Event History

Jul 1, 2026
Data Sourced
via Red Hat·08:21 PM
DescriptionSeverityAffected 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 REDHAT-BUG-2496165?

The severity of REDHAT-BUG-2496165 is classified as high with a score of 7.

2

What is the risk associated with REDHAT-BUG-2496165?

The risk associated with REDHAT-BUG-2496165 is rated at 33.

3

What vulnerability type is identified in REDHAT-BUG-2496165?

REDHAT-BUG-2496165 involves a buffer overflow vulnerability.

4

How do I fix REDHAT-BUG-2496165?

To fix REDHAT-BUG-2496165, it is recommended to apply the latest patches provided by the X.Org Foundation or relevant dependencies.

5

Which software is affected by REDHAT-BUG-2496165?

The affected software includes X.Org Foundation Xorg Server with glamor acceleration backend and freedesktop.org Xwayland.

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