An out-of heap-based buffer read flaw was found in the way FreeType font rendering engine performed loading and parsing of file header information for glyph bitmap distribution format (BDF) font files. A remote attacker could provide a BDF font file with specially-crafted BDF header, which once processed in an application linked against FreeType would lead to that application crash.
Upstream bug report:
Red Hat would like to thank Mateusz Jurczyk of the Google Security Team for reporting this issue.
Added CVE as per http://www.openwall.com/lists/oss-security/2012/03/06/16
This is an issue in _bdf_list_ensure() in bdflib.c. When allocating field array, a space for at least 4 items is allocated. However, the rest of the code assume that field always has at least 5 items. This leads to an off-by-one buffer over-read. field items are char*, so this may cause program to use an uninitialized pointer for reading and possibly crash.
This issue has been addressed in following products:
Red Hat Enterprise Linux 5
Red Hat Enterprise Linux 6
Via RHSA-2012:0467 https://rhn.redhat.com/errata/RHSA-2012-0467.html