Bug 1444904 (CVE-2017-7858)

Summary: CVE-2017-7858 freetype: out-of-bounds write related to the TT_Get_MM_Var and sfnt_init_face functions
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: behdad, bmcclain, cfergeau, dblechte, eedri, erik-fedora, fedora-mingw, fonts-bugs, kevin, lsurette, mgoldboi, michal.skrivanek, mkasik, rbalakri, rh-spice-bugs, rjones, sardella, sherold, srevivo, ykaul, ylavi
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-29 04:48:58 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: 1444915, 1444916, 1444917    
Bug Blocks: 1444919    

Description Adam Mariš 2017-04-24 14:12:43 UTC
FreeType 2 before 2017-03-07 has an out-of-bounds write related to the TT_Get_MM_Var function in truetype/ttgxvar.c and the sfnt_init_face function in sfnt/sfobjs.c.

Bug report:

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=738

Upstream patch:

https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=779309744222a736eba0f1731e8162fce6288d4e

Comment 1 Adam Mariš 2017-04-24 14:29:13 UTC
Created freetype tracking bugs for this issue:

Affects: fedora-all [bug 1444917]


Created mingw-freetype tracking bugs for this issue:

Affects: epel-7 [bug 1444915]
Affects: fedora-all [bug 1444916]

Comment 2 Marek Kašík 2017-04-28 16:05:45 UTC
This is the same case as in https://bugzilla.redhat.com/show_bug.cgi?id=1444898#c2, I can not reproduce the issue with any freetype version which we currently support in Fedora.