CVE Catalog

CVE-2026-59679

CriticalCVSS 9.0
Published: Translated: NVD NIST

Summary

In libXfont2's font-server client fs_read_glyphs() (src/fc/fserve.c), the per-character encoding[] array is indexed 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) followed by a large num_chars (e.g. 100000), causing attacker-controlled out-of-bounds heap reads and writes.

Risk Assessment

A malicious font server can trigger out-of-bounds heap reads and writes, potentially leading to data leakage or code execution in the client process context. The risk affects systems using libXfont2 to communicate with font servers.

Recommendation

Update libXfont2 to a version containing the fix. Limit trust in remote font servers and use only trusted font sources.

Other vulnerabilities in libXfont2

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS