Bug 1444898 (CVE-2017-7857)

Summary: CVE-2017-7857 freetype: heap-based buffer overflow related to the TT_Get_MM_Var function
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:33 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:04:06 UTC
FreeType 2 before 2017-03-08 has an out-of-bounds write caused by a heap-based buffer overflow 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=759

Upstream patch:

https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=7bbb91fbf47fc0775cc9705673caf0c47a81f94b

Comment 1 Adam Mariš 2017-04-24 14:28:52 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 15:26:40 UTC
While I can reproduce this with the commit mentioned in the chromium bug report I can not reproduce this on F24, F25, F26 or rawhide.