Bug 240577

Summary: CVE-2007-2754 freetype integer overflow
Product: [Fedora] Fedora Reporter: Josh Bressers <bressers>
Component: freetypeAssignee: Behdad Esfahbod <behdad>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,source=redhat,reported=20070428,public=20070427
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-19 10:36:16 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:    
Bug Blocks: 240200    

Description Josh Bressers 2007-05-18 15:14:00 UTC
This is the tracking bug for FC5 and FC6, please see the blocks list

+++ This bug was initially created as a clone of Bug #240200 +++

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 Behdad Esfahbod 2007-05-29 20:38:23 UTC
Built freetype-2.2.1-17.fc6

Comment 2 Alexei Podtelezhnikov 2007-06-01 15:50:33 UTC
why not 2.3.4??? Do not retard Fedora!!!

Comment 3 Behdad Esfahbod 2007-06-01 19:24:01 UTC
No thanks.  Every single freetype release since 2.2 have had its own very, very,
noisy surprises.  I'm sick of it and not going to update FC6's version of freetype.