Bug 2515520 - CVE-2026-59679 libXfont2: Font Server Client encoding[] Out-Of-Bounds Read/Write [fedora-all]
Summary: CVE-2026-59679 libXfont2: Font Server Client encoding[] Out-Of-Bounds Read/Wr...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libXfont2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["5b7fa215-3171-4002-8ccf-2...
Depends On:
Blocks: CVE-2026-59679
TreeView+ depends on / blocked
 
Reported: 2026-08-13 18:07 UTC by Marco Benatto
Modified: 2026-08-13 18:07 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marco Benatto 2026-08-13 18:07:13 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 values are never cross-checked, so a malicious font server can send a small num_extents (e.g. 1) followed by a large num_chars (e.g. 100000) to cause out-of-bounds heap reads via NONZEROMETRICS(&encoding[minchar].metrics) and out-of-bounds writes of a heap pointer via encoding[minchar].bits = bits.    When the X server runs as root, this can lead to privilege escalation. When it runs as an unprivileged user, this results in a denial of service (crash). This is caused by an incomplete fix of CVE-2014-0210.


Note You need to log in before you can comment on or make changes to this bug.