Bug 1429965 (CVE-2016-10244)

Summary: CVE-2016-10244 freetype: parse_charstrings function in type1/t1load.c does not ensure that a font contains a glyph name
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: behdad, bmcclain, cfergeau, dblechte, eedri, erik-fedora, fedora-mingw, fonts-bugs, gklein, kevin, lsurette, mgoldboi, michal.skrivanek, mkasik, rbalakri, rh-spice-bugs, rjones, sardella, sherold, slawomir, 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-03-23 05:50:59 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: 1429967, 1429968, 1429969    
Bug Blocks: 1429966    

Description Andrej Nemec 2017-03-07 15:17:53 UTC
The parse_charstrings function in type1/t1load.c in FreeType 2 does not ensure that a font contains a glyph name, which allows remote attackers to cause a denial of service (heap-based buffer over-read) or possibly have unspecified other impact via a crafted file.

References:

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

Upstream patch:

http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/src/type1/t1load.c?h=VER-2-7&id=a660e3de422731b94d4a134d27555430cbb6fb39

Comment 1 Andrej Nemec 2017-03-07 15:20:35 UTC
Created freetype tracking bugs for this issue:

Affects: fedora-all [bug 1429968]


Created mingw-freetype tracking bugs for this issue:

Affects: epel-7 [bug 1429969]
Affects: fedora-all [bug 1429967]

Comment 2 Huzaifa S. Sidhpurwala 2017-03-23 05:50:59 UTC
Analysis: 

As per the patch, seems to be a OOB read, causing a crash. I dont have access to the reproducer, but seems all versions of freetype shipped with Red Hat Enterprise Linux are affected.