REDHAT-BUG-2496641: High severity X.Org libXfont2 vulnerability
In libXfont2's pcfReadFont() function, the repadded bitmap buffer is allocated using a bitmapSizes[] value read directly from the PCF file without cross-validation against per-glyph metrics. Writing to that array uses the per-glyph metrics from the file also without validation. A malicious PCF font can declare a tiny bitmapSizes[] value (e.g. 16 bytes) for the server's glyph pad index and a per-glyph metrics that exceeds this size, causing a write past the end of the allocation with attacker-controlled content from the PCF BITMAPS payload. No rendering is needed -- the overflow occurs during font parsing itself.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2496641?
The severity of REDHAT-BUG-2496641 is rated as high with a score of 7.
What software is affected by REDHAT-BUG-2496641?
REDHAT-BUG-2496641 affects the X.Org libXfont2 software library.
What is the risk associated with REDHAT-BUG-2496641?
The risk associated with REDHAT-BUG-2496641 is categorized as a risk score of 33.
How do I fix REDHAT-BUG-2496641?
To fix REDHAT-BUG-2496641, it is recommended to update to the patched version of the libXfont2 library provided by the vendor.
What vulnerability exists in REDHAT-BUG-2496641?
The vulnerability in REDHAT-BUG-2496641 involves unsafe memory allocation and writing in the pcfReadFont() function of libXfont2.