Skip to main content

libXfont2 CVE-2026-56001

| EUVDEUVD-2026-42210 HIGH
Heap-based Buffer Overflow (CWE-122)
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain authorized X Server client access
  2. Delivery
    Request scaled bitmap font
  3. Exploit
    Overflow 32-bit size in BitmapScaleBitmaps
  4. Execution
    Write past undersized heap buffer
  5. Persist
    Groom heap and hijack control flow
  6. Impact
    Execute code in X server context

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to already have the ability to connect to the target X Server as a client (AV:N/PR:L in the CVSS vector indicates authorized-but-low-privilege access, not anonymous access), and to trigger the vulnerable code path by requesting a scaled bitmap font that drives the 32-bit size calculation in BitmapScaleBitmaps to overflow. The concrete prerequisites are therefore: (1) X Server access - in default configurations this means local access, since modern X servers disable TCP listening, so remote exploitation is only possible where administrators have explicitly enabled remote X client connections; and (2) bitmap font handling must be reachable in the server's font path. Limiting factors that reduce real-world risk: no user interaction is needed once client access exists, but the requirement for X server client access, the low SSVC/EPSS exploitation signals, and the practical locality of X clients on current systems all constrain this well below internet-wide unauthenticated RCE.

Impact

Signals are mixed and should be weighed together rather than taken from the CVSS number alone. The NVD CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H = 8.8) implies low-complexity, low-privilege exploitation with total impact, but the description constrains this to attackers 'able to access the X Server' - in most modern deployments X clients are local, so the real attack surface is a local or already-authorized user rather than an anonymous internet attacker, unless remote/TCP X client connections are explicitly enabled. This tension (network vector on paper versus practically local/authenticated access) should be verified against each deployment's X access configuration. SSVC rates Exploitation as none and Automatable as no, and EPSS is low (0.37%), so this is not currently a mass-exploited issue; however Technical Impact is total, matching the C:H/I:H/A:H claim of full code execution in the server context. Net assessment: a genuinely serious code-execution bug that warrants patching, but current real-world exploitation pressure is low and gated by X server access, making it a high-severity-but-moderate-urgency item rather than an emergency.

Exploit ScenarioDerived

A local or otherwise authorized X client (for example a low-privileged user on a shared Linux workstation, or a compromised desktop application) requests a bitmap font scaled to a size that triggers the 32-bit size overflow in BitmapScaleBitmaps, undersizing a heap buffer. The subsequent out-of-bounds write corrupts X server heap memory and is groomed into control of execution, running attacker code in the X server process - often more privileged than the requesting client. No public proof-of-concept has been identified, so an attacker would need to develop the heap-grooming exploit themselves.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – Jul 09, 2026

Arbitrary code execution in the X.Org libXfont2 library (versions before 2.0.8) stems from a heap buffer overflow in the BitmapScaleBitmaps routine, where a 32-bit size calculation overflows during bitmap font scaling. Any client able to connect to the X Server and request scaled bitmap fonts can corrupt heap memory and run code within the X server's process context, which is frequently privileged. No public exploit has been identified at time of analysis and it is not listed in CISA KEV; EPSS is low at 0.37% (29th percentile), consistent with the SSVC finding of no observed exploitation despite total technical impact.

Earlier versions of this analysis (4)
v4 Jul 09, 2026 - 20:01 cvss changed CVSS 8.8

Arbitrary code execution in the X.Org libXfont2 font library (versions before 2.0.8) arises from a heap buffer overflow in the BitmapScaleBitmaps routine, where a 32-bit size calculation overflows during bitmap font scaling. An attacker who can already reach the X server - for example by supplying a crafted bitmap font - can corrupt heap memory and run code within the X server process, which typically carries elevated privileges. There is no public exploit identified at time of analysis, EPSS is low (0.37%), and CISA SSVC records no observed exploitation.

v3 Jul 08, 2026 - 09:28 cvss changed CVSS 8.5

Arbitrary code execution in X.Org libXfont2 before 2.0.8 allows an attacker with access to the X Server to run code within the X server's (typically privileged) context. The flaw is a heap buffer overflow (CWE-122) in BitmapScaleBitmaps triggered by a 32-bit size value overflowing during bitmap-font scaling. No public exploit identified at time of analysis; exploitation carries high attack complexity per the CVSS vector.

v2 Jul 08, 2026 - 09:28 cvss changed CVSS 8.5

Arbitrary code execution in X.Org libXfont2 before 2.0.8 lets an attacker with access to the X server trigger a heap buffer overflow in BitmapScaleBitmaps via a 32-bit integer size overflow, executing code within the X server context (frequently root). Because the X server typically runs with elevated privileges and the CVSS scope is Changed, successful exploitation can compromise the whole host, not just the font subsystem. There is no public exploit identified at time of analysis and it is not listed in CISA KEV.

v1 Jul 08, 2026 - 02:24

Integer overflow in libXfont2's BitmapScaleBitmaps() function allows heap buffer overflow via a crafted PCF font, affecting all versions prior to 2.0.8. The root cause is a 32-bit unsigned accumulator for per-glyph byte counts that wraps around under attacker-controlled scale factors, causing calloc() to allocate a buffer far smaller than subsequent write operations expect. Discovered anonymously through Trend Micro Zero Day Initiative (ZDI-CAN-30558); no public exploit or active exploitation is confirmed at time of analysis, but the heap overflow carries realistic code-execution potential in the X server process.

RemediationAI

Upgrade libXfont2 to version 2.0.8 or later, which contains the corrected size arithmetic - Vendor-released patch: 2.0.8. On managed distributions, apply the vendor's updated libXfont2 package as soon as it is published and restart the X Server (or affected sessions) so the patched library is loaded. The fix is delivered via three upstream commits on freedesktop.org GitLab (be0b08e2, dff957a5, b4389e0b) referenced in the advisory. Where patching must be deferred, reduce exposure by preventing untrusted access to the X Server: disable remote/TCP X client connections (start the server with '-nolisten tcp', which is already the default on most modern systems) so only local authorized users can connect, and restrict which users may run X clients on shared or multi-user hosts. As a more targeted control, avoid or disable the use of scalable bitmap fonts / bitmap font scaling in the X font path where feasible, since the vulnerable code path is only reached when bitmap fonts are scaled; the trade-off is that legacy applications relying on scaled bitmap fonts may render incorrectly or fail to load fonts.

Affected VersionsENISA

libXfont2 0 <2.0.8

Affected Packages

euvd libxfont2 fix: 2.0.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libXfont2 is the second-generation X.Org font-handling library used by the X Server to load, rasterize, and scale legacy bitmap (BDF/PCF) fonts. The flaw is a CWE-122 heap-based buffer overflow in BitmapScaleBitmaps, the function that scales bitmap glyphs to a requested size. During size computation the code uses a 32-bit integer that can overflow, causing an undersized heap allocation followed by an out-of-bounds write when glyph bitmap data is copied. The CPE cpe:2.3:a:x:libxfont:* confirms the affected component is the libxfont application/library rather than the X server core itself, but because the library executes inside the X server address space, memory corruption there is corruption of the server. The upstream fix spans three commits on freedesktop.org GitLab that correct the size arithmetic to prevent the overflow.

Know when Libxfont gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY HIGH
NVD 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

X Server client access is normally local and authorized, so AV:L/PR:L; low-complexity trigger via font scaling yields AC:L and full code execution gives C:H/I:H/A:H.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.3 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Red Hat 7.3 HIGH

Primary rating from Vendor (CNA).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Analysis Updated
Jul 09, 2026 - 20:02 vuln.today
v5 - CVSS changed
Analysis Updated
Jul 09, 2026 - 20:01 vuln.today
v4 - CVSS changed
CVSS changed
Jul 09, 2026 - 19:52 NVD
8.5 (HIGH) 8.8 (HIGH)
Patch available
Jul 08, 2026 - 10:01 EUVD
Analysis Updated
Jul 08, 2026 - 09:28 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 08, 2026 - 09:28 vuln.today
v2 - CVSS changed
CVSS changed
Jul 08, 2026 - 09:22 NVD
8.5 (HIGH)

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

X.Org libXfont2 before version 2.0.8 contains a buffer overflow that enables code execution within X Server processes, typically running with elevated privileges. Any attacker with network access to the X Server can trigger this vulnerability through bitmap font requests. Although no public exploit has been identified at time of analysis and patches are available, the high severity warrants expedited deployment.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
High
core X.Org font library present on most Linux/Unix X11 systems
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Related Vulnerabilities in libXfont2 Security Flaws

View all 3
CVE-2013-6462 CRITICAL POC
9.3 Jan 09

Stack-based buffer overflow in the bdfReadCharacters function in bitmap/bdfread.c in X.Org libXfont 1.1 through 1.4.6 al

CVE-2015-1804 HIGH
8.5 Mar 20

The bdfReadCharacters function in bitmap/bdfread.c in X.Org libXfont before 1.4.9 and 1.5.x before 1.5.1 does not proper

CVE-2015-1802 HIGH
8.5 Mar 20

The bdfReadProperties function in bitmap/bdfread.c in X.Org libXfont before 1.4.9 and 1.5.x before 1.5.1 allows remote a

CVE-2015-1803 HIGH
8.5 Mar 20

The bdfReadCharacters function in bitmap/bdfread.c in X.Org libXfont before 1.4.9 and 1.5.x before 1.5.1 does not proper

CVE-2014-0211 HIGH
7.5 May 15

Multiple integer overflows in the (1) fs_get_reply, (2) fs_alloc_glyphs, and (3) fs_read_extent_info functions in X.Org

CVE-2014-0210 HIGH
7.5 May 15

Multiple buffer overflows in X.Org libXfont before 1.4.8 and 1.4.9x before 1.4.99.901 allow remote font servers to execu

CVE-2017-13722 HIGH
7.1 Oct 11

In the pcfGetProperties function in bitmap/pcfread.c in libXfont through 1.5.2 and 2.x before 2.0.2, a missing boundary

CVE-2017-13720 HIGH
7.1 Oct 11

In the PatternMatch function in fontfile/fontdir.c in libXfont through 1.5.2 and 2.x before 2.0.2, an attacker with acce

CVE-2017-16611 MEDIUM
5.5 Dec 01

In libXfont before 1.5.4 and libXfont2 before 2.0.3, a local attacker can open (but not read) files on the system as roo

CVE-2014-0209 MEDIUM
4.6 May 15

Multiple integer overflows in the (1) FontFileAddEntry and (2) lexAlias functions in X.Org libXfont before 1.4.8 and 1.4

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/kiosk/xorg:21.1-82.11 Image SLES15-SP7-SAP-Azure Image SLES15-SP7-SAP-Azure-3P Image SLES15-SP7-SAP-BYOS-Azure Image SLES15-SP7-SAP-BYOS-EC2 Image SLES15-SP7-SAP-BYOS-GCE Image SLES15-SP7-SAP-EC2 Image SLES15-SP7-SAP-GCE Image SLES15-SP7-SAP-Hardened-Azure Image SLES15-SP7-SAP-Hardened-BYOS-Azure Image SLES15-SP7-SAP-Hardened-BYOS-EC2 Image SLES15-SP7-SAP-Hardened-BYOS-GCE Image SLES15-SP7-SAP-Hardened-GCE Image SLES15-SP7-SAPCAL-Azure Image SLES15-SP7-SAPCAL-EC2 Image SLES15-SP7-SAPCAL-GCE Affected
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Basesystem 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy