Out-of-bounds Read Affecting libXfont2-devel package, versions <0:2.0.7-1.amzn2023.0.3


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.41% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-LIBXFONT2DEVEL-19476295
  • published1 Sept 2026
  • disclosed10 Sept 2026

Introduced: 1 Sep 2026

NewCVE-2026-59679  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 libXfont2-devel to version 0:2.0.7-1.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2026-2112.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libXfont2-devel package and not the libXfont2-devel package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

fs_read_glyphs() in the libXfont2 font-server client (src/fc/fserve.c) indexes the per-character encoding[] array using num_chars from the FS_QueryXBitmaps16 reply, but that array was allocated with a size derived from num_extents in the separate FS_QueryXExtents16 reply. The two CARD32 fields are never cross-checked. A malicious or compromised font server can send a small num_extents (e.g. 1) in the extents reply, then a large num_chars (e.g. 100000) in the bitmaps reply. This causes attacker-controlled out-of-bounds heap read and writes.

CVSS Base Scores

version 3.1