Bug 240200 (CVE-2007-2754)

Summary: CVE-2007-2754 freetype integer overflow
Product: [Other] Security Response Reporter: Josh Bressers <bressers>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: kreilly
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-19 10:37:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 240573, 240574, 240575, 240577, 484441, 484442, 484443, 484444, 502565    
Bug Blocks:    
Attachments:
Description Flags
Proposed upstream patch
none
proposed backported patch to freetype1 none

Description Josh Bressers 2007-05-15 18:57:20 UTC
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 );

Comment 1 Josh Bressers 2007-05-15 18:57:20 UTC
Created attachment 154762 [details]
Proposed upstream patch

Comment 3 Tomas Hoger 2007-12-19 10:37:44 UTC
Problem was fixed in affected Red Hat Enterprise Linux:

  http://rhn.redhat.com/errata/RHSA-2007-0403.html

and Fedora versions.

Comment 5 Vincent Danen 2009-04-16 17:21:25 UTC
Created attachment 339881 [details]
proposed backported patch to freetype1

Comment 6 errata-xmlrpc 2009-05-22 12:06:35 UTC
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

Comment 7 errata-xmlrpc 2009-05-22 12:22:25 UTC
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