https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Bug ID: 1191190 Summary: CVE-2014-9674 freetype: integer overflow and heap-based buffer overflow in the Mac_Read_POST_Resource function in base/ftobjs.c Product: Security Response Component: vulnerability Keywords: Security Severity: medium Priority: medium Assignee: security-response-team@redhat.com Reporter: mprpic@redhat.com CC: behdad@fedoraproject.org, fonts-bugs@lists.fedoraproject.org, kevin@tigcc.ticalc.org, mkasik@redhat.com
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:
http://code.google.com/p/google-security-research/issues/detail?id=153
Upstream patches:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=240c94a18... http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=cd4a5a26e...
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Martin Prpic mprpic@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1191102
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Martin Prpic mprpic@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1191191
--- Comment #1 from Martin Prpic mprpic@redhat.com ---
Created freetype tracking bugs for this issue:
Affects: fedora-all [bug 1191191]
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1191191 [Bug 1191191] CVE-2014-9674 freetype: integer overflow and heap-based buffer overflow in the Mac_Read_POST_Resource function in base/ftobjs.c [fedora-all]
https://bugzilla.redhat.com/show_bug.cgi?id=1191190 Bug 1191190 depends on bug 1191191, which changed state.
Bug 1191191 Summary: CVE-2014-9674 freetype: integer overflow and heap-based buffer overflow in the Mac_Read_POST_Resource function in base/ftobjs.c [fedora-all] https://bugzilla.redhat.com/show_bug.cgi?id=1191191
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
--- Comment #2 from Fedora Update System updates@fedoraproject.org --- 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Tomas Hoger thoger@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|medium |high Summary|CVE-2014-9674 freetype: |CVE-2014-9674 freetype: |integer overflow and |multiple integer overflows |heap-based buffer overflow |Mac_Read_POST_Resource() |in the |leading to heap-based |Mac_Read_POST_Resource |buffer overflows |function in base/ftobjs.c | Whiteboard|impact=moderate,public=2015 |impact=important,public=201 |0208,reported=20150209,sour |50208,reported=20150209,sou |ce=suse,cvss2=3.7/AV:L/AC:H |rce=suse,cvss2=6.8/AV:N/AC: |/Au:N/C:P/I:P/A:P,fedora-al |M/Au:N/C:P/I:P/A:P,cwe=CWE- |l/freetype=affected,rhel-5/ |190->CWE-122,rhel-4/freetyp |freetype=new,rhel-6/freetyp |e=wontfix,rhel-5/freetype=a |e=new,rhel-7/freetype=new |ffected,rhel-6/freetype=aff | |ected,rhel-7/freetype=affec | |ted,rhev-m-3/mingw-virt-vie | |wer=affected,fedora-all/fre | |etype=affected,fedora-all/m | |ingw-freetype=affected,epel | |-7/mingw-freetype=affected Severity|medium |high
--- Comment #4 from Tomas Hoger thoger@redhat.com --- (Private) upstream bug: https://savannah.nongnu.org/bugs/?43538
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:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=240c94a http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=35252ae http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=4533167 http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=1720e81 http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=cd4a5a2
Unified diff for all the above changes:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/diff/src/base/ftobjs...
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
--- Doc Text *updated* by Tomas Hoger thoger@redhat.com --- 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
--- Doc Text *updated* by Martin Prpic mprpic@redhat.com --- 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Martin Prpic mprpic@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|impact=important,public=201 |impact=important,public=201 |50208,reported=20150209,sou |50208,reported=20150209,sou |rce=suse,cvss2=6.8/AV:N/AC: |rce=suse,cvss2=6.8/AV:N/AC: |M/Au:N/C:P/I:P/A:P,cwe=CWE- |M/Au:N/C:P/I:P/A:P,cwe=CWE- |190->CWE-122,rhel-4/freetyp |190->CWE-122,rhel-4/freetyp |e=wontfix,rhel-5/freetype=a |e=wontfix,rhel-5/freetype=w |ffected,rhel-6/freetype=aff |ontfix,rhel-6/freetype=affe |ected,rhel-7/freetype=affec |cted,rhel-7/freetype=affect |ted,rhev-m-3/mingw-virt-vie |ed,rhev-m-3/mingw-virt-view |wer=affected,fedora-all/fre |er=affected,fedora-all/free |etype=affected,fedora-all/m |type=affected,fedora-all/mi |ingw-freetype=affected,epel |ngw-freetype=affected,epel- |-7/mingw-freetype=affected |7/mingw-freetype=affected
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Martin Prpic mprpic@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1197737
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Martin Prpic mprpic@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1197738
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Martin Prpic mprpic@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1197739
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Martin Prpic mprpic@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1197740
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
--- Comment #7 from errata-xmlrpc errata-xmlrpc@redhat.com --- 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
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Tomas Hoger thoger@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |ERRATA Last Closed| |2015-03-18 03:40:47
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Vincent Danen vdanen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|impact=important,public=201 |impact=important,public=201 |50208,reported=20150209,sou |50208,reported=20150209,sou |rce=suse,cvss2=6.8/AV:N/AC: |rce=suse,cvss2=6.8/AV:N/AC: |M/Au:N/C:P/I:P/A:P,cwe=CWE- |M/Au:N/C:P/I:P/A:P,cwe=CWE- |190->CWE-122,rhel-4/freetyp |190->CWE-122,rhel-4/freetyp |e=wontfix,rhel-5/freetype=w |e=wontfix,rhel-5/freetype=w |ontfix,rhel-6/freetype=affe |ontfix,rhel-6/freetype=nota |cted,rhel-7/freetype=affect |ffected,rhel-7/freetype=aff |ed,rhev-m-3/mingw-virt-view |ected,rhev-m-3/mingw-virt-v |er=affected,fedora-all/free |iewer=affected,fedora-all/f |type=affected,fedora-all/mi |reetype=affected,fedora-all |ngw-freetype=affected,epel- |/mingw-freetype=affected,ep |7/mingw-freetype=affected |el-7/mingw-freetype=affecte | |d
https://bugzilla.redhat.com/show_bug.cgi?id=1191190
Ján Rusnačko jrusnack@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|impact=important,public=201 |impact=important,public=201 |50208,reported=20150209,sou |50208,reported=20150209,sou |rce=suse,cvss2=6.8/AV:N/AC: |rce=suse,cvss2=6.8/AV:N/AC: |M/Au:N/C:P/I:P/A:P,cwe=CWE- |M/Au:N/C:P/I:P/A:P,cwe=CWE- |190->CWE-122,rhel-4/freetyp |190->CWE-122,rhel-4/freetyp |e=wontfix,rhel-5/freetype=w |e=wontfix,rhel-5/freetype=w |ontfix,rhel-6/freetype=nota |ontfix,rhel-6/freetype=affe |ffected,rhel-7/freetype=aff |cted,rhel-7/freetype=affect |ected,rhev-m-3/mingw-virt-v |ed,rhev-m-3/mingw-virt-view |iewer=affected,fedora-all/f |er=affected,fedora-all/free |reetype=affected,fedora-all |type=affected,fedora-all/mi |/mingw-freetype=affected,ep |ngw-freetype=affected,epel- |el-7/mingw-freetype=affecte |7/mingw-freetype=affected |d |
fonts-bugs@lists.fedoraproject.org