CVE-2026-56001
libXfont2: BitmapScaleBitmaps Integer Overflow Heap Buffer Overflow
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 8, 2026
Updated · August 7, 2026
Description
A flaw was found in libXfont2. In the BitmapScaleBitmaps() function, an integer overflow can occur when calculating the memory needed for font glyphs. This overflow leads to a heap buffer overflow, where a smaller-than-required memory buffer is allocated. A local attacker can exploit this by loading a specially crafted PCF font, potentially leading to arbitrary code execution or a denial of service.
Statement
This flaw in libXfont2 is rated as Important. A local attacker could exploit an integer overflow in the BitmapScaleBitmaps() function, leading to a heap buffer overflow and potential arbitrary code execution or denial of service. This vulnerability requires the processing of a specially crafted PCF font, typically through an X server or an application configured to load untrusted font files.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CWE not specified