REDHAT-BUG-2496641: High severity X.Org libXfont2 vulnerability

Published Jul 2, 2026
·
Updated

In libXfont2's pcfReadFont() function, the repadded bitmap buffer is allocated using a bitmapSizes[] value read directly from the PCF file without cross-validation against per-glyph metrics. Writing to that array uses the per-glyph metrics from the file also without validation. A malicious PCF font can declare a tiny bitmapSizes[] value (e.g. 16 bytes) for the server's glyph pad index and a per-glyph metrics that exceeds this size, causing a write past the end of the allocation with attacker-controlled content from the PCF BITMAPS payload. No rendering is needed -- the overflow occurs during font parsing itself.

Affected Software

1 affected component
X.Org libXfont2

Event History

Jul 2, 2026
Data Sourced
via Red Hat·06:36 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2496641?

The severity of REDHAT-BUG-2496641 is rated as high with a score of 7.

2

What software is affected by REDHAT-BUG-2496641?

REDHAT-BUG-2496641 affects the X.Org libXfont2 software library.

3

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

The risk associated with REDHAT-BUG-2496641 is categorized as a risk score of 33.

4

How do I fix REDHAT-BUG-2496641?

To fix REDHAT-BUG-2496641, it is recommended to update to the patched version of the libXfont2 library provided by the vendor.

5

What vulnerability exists in REDHAT-BUG-2496641?

The vulnerability in REDHAT-BUG-2496641 involves unsafe memory allocation and writing in the pcfReadFont() function of libXfont2.

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