fontconfig Heap Buffer Overflow Vulnerability in sfnt Capability Handling

Vulnerability

A heap buffer overflow vulnerability has been identified in fontconfig versions prior to 2.17.1. The issue arises from an off-by-one error in memory allocation during the handling of sfnt capabilities, specifically within the FcFontCapabilities function in fcfreetype.c. This vulnerability can lead to a one-byte out-of-bounds write, potentially causing a crash or allowing for arbitrary code execution.

Impact

Exploitation of this vulnerability causes a heap buffer overflow, which can lead to memory corruption. This type of vulnerability often allows for arbitrary code execution or causing a program to crash.

Reproduction

The vulnerability can be reproduced by using fontconfig's fc-cache command with the AddressSanitizer enabled. This will trigger the buffer overflow when fontconfig processes certain TrueType fonts that exploit the vulnerability, such as those available in the Conakry or Dai Banna SIL font collections.

Remediation

Users can upgrade to fontconfig version 2.17.1 or later to address this vulnerability.

Added: Mar 25, 2026, 5:35 PM
Updated: Mar 25, 2026, 5:35 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
7.5
exploitability
4.4
remediation
7.7
relevance
4.7
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.