CVE-2026-56001: libXfont2 BitmapScaleBitmaps Integer Overflow Heap Buffer Overflow

Published Jul 2, 2026
·
Updated

A heap buffer overflow in BitmapScaleBitmaps in libXfont2 before 2.0.8 due to an overflowing 32bit size could be used by attackers able to access the X Server to execute code within the X server cont

Other sources

In libXfont2's BitmapScaleBitmaps() function, a 32-bit variable keeps the number of bytes to allocate. If the value overflows due to excessive per-glyph byte counts, the resulting calloc() allocates a buffer too small for the subsequent operations. An attacker can trigger this by loading a crafted PCF font via SetFontPath + OpenFont at a scale factor that inflates per-glyph byte counts.

Red Hat

libXfont2 BitmapScaleBitmaps Integer Overflow Heap Buffer Overflow

Microsoft

Affected Software

4 affected componentsFixes available
X.Org libXfont2<2.0.8
X libXfont>=2.0.0<2.0.8
Microsoft azl3 libXfont2 2.0.6-1<2.0.8-1
2.0.8-1
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
  3. Upgrade

    Upgrade libXfont2 to a version that resolves this vulnerability.

    Fixed in 2.0.8
  4. Configuration

    Prevent attackers from loading crafted PCF fonts through X Server font-loading (SetFontPath + OpenFont). Only allow trusted font paths and do not accept untrusted PCF files that could trigger BitmapScaleBitmaps integer overflow at an excessive scale factor.

    X Server SetFontPath + OpenFont (font loading via supplied PCF files) = Avoid using untrusted/maliciously crafted PCF fonts and font paths
  5. Compensating control

    Restrict access to the X Server to trusted clients only (e.g., via network ACL/firewall and authorization), since exploitation requires attackers able to access the X Server to load a crafted PCF font.

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2026-56001?

CVE-2026-56001 has a high severity score of 8.5.

2

How do I fix CVE-2026-56001?

To fix CVE-2026-56001, upgrade libXfont2 to version 2.0.8 or later.

3

What type of vulnerability is CVE-2026-56001?

CVE-2026-56001 is classified as a heap buffer overflow vulnerability.

4

Who is affected by CVE-2026-56001?

Users running libXfont2 versions before 2.0.8 on systems that allow access to the X Server are affected.

5

What can attackers do with CVE-2026-56001?

Attackers can potentially execute arbitrary code within the X server due to the buffer overflow.

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