CVE-2026-56002: libXfont2 PCF Font Parsing Heap Buffer Overflow

Published Jul 2, 2026
·
Updated

A heap bufferflow in pcfReadFont() due to missing glyph bounds checking in libXfont2 before 2.0.8  allows attackers authenticated as X client to execute code within the X server.

Other sources

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.

Red Hat

libXfont2 PCF Font Parsing Heap Buffer Overflow

Microsoft

Affected Software

4 affected componentsFixes available
X.Org libXfont2<2.0.8
Microsoft azl3 libXfont2 2.0.6-1<2.0.8-1
2.0.8-1
X libXfont<2.0.8
debian/libxfont<=1:2.0.4-1, <=1:2.0.6-1
1:2.0.4-1+deb11u11:2.0.6-1+deb12u11:2.0.6-1+deb13u11:2.0.8-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.0.8-1
  2. Upgrade

    Upgrade debian/libxfont to a version that resolves this vulnerability.

    Fixed in 1:2.0.4-1+deb11u1Fixed in 1:2.0.6-1+deb12u1Fixed in 1:2.0.6-1+deb13u1Fixed in 1:2.0.8-1

Event History

Jul 2, 2026
Data Sourced
via Red Hat·06:36 PM
DescriptionSeverityAffected Software
Jul 8, 2026
CVE Published
via MITRE·09:12 AM
Data Sourced
via MITRE·09:12 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 9, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
Jul 20, 2026
Data Sourced
via Launchpad·04:10 PM
Description
Data Sourced
via Debian·04:10 PM
DescriptionAffected Software
Jul 21, 2026
Data Sourced
via Ubuntu·04:09 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-56002?

The severity of CVE-2026-56002 is high with a score of 8.5.

2

How do I fix CVE-2026-56002?

To fix CVE-2026-56002, update libXfont2 to version 2.0.8 or later.

3

What are the risks associated with CVE-2026-56002?

CVE-2026-56002 poses a risk of code execution within the X server by authenticated attackers due to a heap buffer overflow.

4

Who is affected by CVE-2026-56002?

Users running versions of libXfont2 prior to 2.0.8 are affected by CVE-2026-56002.

5

What component of the system is impacted by CVE-2026-56002?

CVE-2026-56002 impacts the font parsing functionality of the X.Org libXfont2 library.

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