Bug 2496641 (CVE-2026-56002)

Summary: CVE-2026-56002 libXfont2: PCF Font Parsing Heap Buffer Overflow
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: gtanzill, jbuscemi, rhel-process-autobot, security-response-team, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in libXfont2. A specially crafted PCF (Portable Compiled Format) font file, when processed by libXfont2, can lead to a buffer overflow. This occurs because the font parsing process does not properly validate the size of a bitmap buffer against the glyph metrics provided in the malicious font file. An attacker could exploit this vulnerability by providing a malicious font, potentially leading to arbitrary code execution or a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Deadline: 2026-07-08   

Description OSIDB Bzimport 2026-07-02 18:36:08 UTC
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.

Comment 6 errata-xmlrpc 2026-07-28 13:52:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:47079 https://access.redhat.com/errata/RHSA-2026:47079

Comment 7 errata-xmlrpc 2026-07-28 21:14:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:47103 https://access.redhat.com/errata/RHSA-2026:47103

Comment 8 errata-xmlrpc 2026-07-29 00:27:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:47084 https://access.redhat.com/errata/RHSA-2026:47084

Comment 26 errata-xmlrpc 2026-08-06 11:54:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:51061 https://access.redhat.com/errata/RHSA-2026:51061

Comment 27 errata-xmlrpc 2026-08-06 12:04:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:51060 https://access.redhat.com/errata/RHSA-2026:51060

Comment 28 errata-xmlrpc 2026-08-06 12:08:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:51062 https://access.redhat.com/errata/RHSA-2026:51062

Comment 29 errata-xmlrpc 2026-08-06 12:27:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:51058 https://access.redhat.com/errata/RHSA-2026:51058

Comment 30 errata-xmlrpc 2026-08-06 12:33:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:51067 https://access.redhat.com/errata/RHSA-2026:51067

Comment 31 errata-xmlrpc 2026-08-06 12:34:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:51063 https://access.redhat.com/errata/RHSA-2026:51063

Comment 32 errata-xmlrpc 2026-08-06 12:43:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:51059 https://access.redhat.com/errata/RHSA-2026:51059

Comment 33 errata-xmlrpc 2026-08-06 12:46:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:51066 https://access.redhat.com/errata/RHSA-2026:51066