# CVE-2026-59679: fs_read_glyphs() heap OOB read/write via encoding array index mismatch in libXfont2

- Severity: Critical 9.2 (CVSS:4.0, scored by suse) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-09-10T08:15:24.892Z
- Modified: 2026-09-10T15:43:03.760Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: suse

## Description

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.

(As written by CVE List.)

## Affected

- libXfont2-2: from ? before 2.0.3-150000.3.6.1; from ? before 2.0.7-160000.5.1; from ? before 2.0.3-3.6.1; from ? before 2.0.7-3.1
- libXfont2: from ? before 2.0.6-5.el10_2.3; from ? before 2.0.3-2.el8_10.3; from ? before 2.0.3-12.el9_8.3; from ? up to 2.0.8
- libXfont2-devel: from ? before 2.0.6-5.el10_2.3; from ? before 2.0.3-2.el8_10.3; from ? before 2.0.3-12.el9_8.3; from ? before 2.0.3-150000.3.6.1; from ? before 2.0.7-160000.5.1; from ? before 2.0.7-3.1
- libXfont2-2-32bit: from ? before 2.0.7-3.1
- libXfont2-devel-32bit: from ? before 2.0.7-3.1

## Every score

- suse: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- suse: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://bugzilla.suse.com/show_bug.cgi?id=CVE-2026-59679>

## Sources

- CVE List: [CVE-2026-59679](https://www.cve.org/CVERecord?id=CVE-2026-59679), CVE Terms of Use, modified 2026-09-10
- NVD: [CVE-2026-59679](https://nvd.nist.gov/vuln/detail/CVE-2026-59679), Public domain, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-59679 · Whole record: https://cve.day/CVE-2026-59679.json · Rebuilt by cve.day 2026-11-25T22:59:37.819Z
