Victor Stinner discovered an integer overflow bug in the way freetype processed malformed TTF fonts: http://lists.gnu.org/archive/html/freetype-devel/2007-04/msg00041.html The patch can be found here: http://cvs.savannah.nongnu.org/viewvc/freetype2/src/truetype/ttgload.c?root=freetype&r1=1.177&r2=1.178 It appears that this flaw will result in a heap overflow condition: flag_limit = flag + n_points; ... while ( flag < flag_limit ) { ... *flag++ = c = FT_NEXT_BYTE( p );
Created attachment 154762 [details] Proposed upstream patch
Problem was fixed in affected Red Hat Enterprise Linux: http://rhn.redhat.com/errata/RHSA-2007-0403.html and Fedora versions.
Created attachment 339881 [details] proposed backported patch to freetype1
This issue has been addressed in following products: Red Hat Enterprise Linux 2.1 Via RHSA-2009:1062 https://rhn.redhat.com/errata/RHSA-2009-1062.html
This issue has been addressed in following products: Red Hat Enterprise Linux 3 Red Hat Enterprise Linux 4 Via RHSA-2009:0329 https://rhn.redhat.com/errata/RHSA-2009-0329.html