CVE-2026-56002

libXfont2 PCF Font Parsing Heap Buffer Overflow

Published Jul 8, 2026 CVSS 3.1 · 8.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A heap buffer overflow in the pcfReadFont() function of libXfont2 occurs when the library parses PCF font files that lack proper glyph bounds checking, a weakness classified as CWE-122 and CWE-787. If an attacker supplies a crafted font file, the overflow can overwrite heap memory and execute arbitrary code with the privileges of the X server process, potentially granting full system compromise.

Affected Systems

The flaw affects any installation of X.Org libXfont2 before version 2.0.8. It applies to all systems running an X11 display server, such as typical Linux or Unix desktop environments and remote X forwarding sessions, where an authenticated X client can provide its own font file to the server.

Risk and Exploitability

Scored with a CVSS of 8.5, the vulnerability poses high severity. The EPSS indicates an exploitation probability below 1%, and the issue is not listed in the CISA KEV catalog, suggesting no widely available exploits at this time. The attack vector requires an authenticated X client, which can be any user logged into a graphical session or a client connected via remote X forwarding. Successful exploitation grants code execution in the X server’s context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libXfont2 to version 2.0.8 or later and restart the X server.
  • Apply the patch from the commit b4389e0b1d84a690b819bb27b1439968811a3674, if upgrading may not be immediately possible.
  • Restrict X client authentication to limit the ability of authenticated users to provide arbitrary font files to the server.

Generated by OpenCVE AI on August 1, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4678-1 libxfont security update
Debian DSA Debian DSA DSA-6388-1 libxfont security update
Ubuntu USN Ubuntu USN USN-8560-1 libXfont vulnerabilities
History
Type Values Removed Values Added
First Time appeared X.org libxfont
Vendors & Products X.org libxfont
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title libXfont2 PCF Font Parsing Heap Buffer Overflow
First Time appeared X.org
X.org libxfont2
Weaknesses CWE-122
CPEs cpe:2.3:a:x.org:libxfont2:*:*:*:*:*:*:*:*
Vendors & Products X.org
X.org libxfont2
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
suse
Published
Updated
Jul 9, 2026, 3:55 AM
Reserved
Jun 18, 2026, 9:26 AM
Status
Analyzed
Published
Jul 8, 2026, 10:16 AM
Modified
Oct 25, 2026, 8:10 PM
Severity
Important
Public date
Jul 8, 2026, 12:00 AM