Bug 1191190 (CVE-2014-9674) - CVE-2014-9674 freetype: multiple integer overflows Mac_Read_POST_Resource() leading to heap-based buffer overflows
Summary: CVE-2014-9674 freetype: multiple integer overflows Mac_Read_POST_Resource() l...
Alias: CVE-2014-9674
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1191191 1197737 1197738 1197739 1197740
Blocks: 1191102
TreeView+ depends on / blocked
Reported: 2015-02-10 16:19 UTC by Martin Prpič
Modified: 2019-09-29 13:28 UTC (History)
4 users (show)

Fixed In Version: freetype 2.5.4
Doc Type: Bug Fix
Doc Text:
Multiple integer overflow flaws, leading to heap-based buffer overflows, were found in the way FreeType handled Mac fonts. If a specially crafted font file was loaded by an application linked against FreeType, it could cause the application to crash or, potentially, execute arbitrary code with the privileges of the user running the application.
Clone Of:
Last Closed: 2015-03-18 07:40:47 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0696 0 normal SHIPPED_LIVE Important: freetype security update 2015-03-17 21:58:07 UTC

Description Martin Prpič 2015-02-10 16:19:59 UTC
The Mac_Read_POST_Resource function in base/ftobjs.c in FreeType before 2.5.4 proceeds with adding to length values without validating the original values, which allows remote attackers to cause a denial of service (integer overflow and heap-based buffer overflow) or possibly have unspecified other impact via a crafted Mac font.

Upstream issue:


Upstream patches:


Comment 1 Martin Prpič 2015-02-10 16:20:23 UTC
Created freetype tracking bugs for this issue:

Affects: fedora-all [bug 1191191]

Comment 2 Fedora Update System 2015-02-19 18:01:24 UTC
freetype-2.5.3-15.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2015-02-20 08:31:04 UTC
freetype-2.5.0-9.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Tomas Hoger 2015-02-24 13:02:43 UTC
(Private) upstream bug:

Issue was fixed upstream in 2.5.4.

There are multiple integer overflow issues in the Mac_Read_POST_Resource() function.  They can cause freetype to allocate buffer of insufficient size and later write data past its boundaries.  This will lead to memory corruption that can cause crash and possibly code execution.

These flaw make it possible to bypass boundary check added to address CVE-2010-2808 (see bug 621907).

This is related to issue tracked via bug 1191096, and the following patches were applied to address problems reported via these two bugs:


Unified diff for all the above changes:


Comment 7 errata-xmlrpc 2015-03-17 17:59:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 7

Via RHSA-2015:0696 https://rhn.redhat.com/errata/RHSA-2015-0696.html

Note You need to log in before you can comment on or make changes to this bug.