Bug 623625 - (CVE-2010-3311) CVE-2010-3311 freetype: Input stream position error by processing Compact Font Format (CFF) font files
CVE-2010-3311 freetype: Input stream position error by processing Compact Fon...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
public=20100930,reported=20100810,sou...
: Security
Depends On: 638139 638140 638141 638142 638143 638522 638838 638839 806284
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-12 06:44 EDT by Jan Lieskovsky
Modified: 2015-11-24 09:34 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-06-05 02:35:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
don't seek behind stream (1.07 KB, patch)
2010-08-16 09:52 EDT, Marek Kašík
no flags Details | Diff

  None (edit)
Description Jan Lieskovsky 2010-08-12 06:44:13 EDT
Marc Schoenefeld found an input stream position error in the
way FreeType font rendering engine processed input file streams.
If a user loaded a specially-crafted font file with an application
linked against FreeType and relevant font glyphs were subsequently
rendered with the X FreeType library (libXft), it could cause the
application to crash or, possibly execute arbitrary code (integer
overflow leading to heap-based buffer overflow in the libXft library)
with the privileges of the user running the application. Different
vulnerability than CVE-2010-1797.

Affected versions: freetype-2.3 and before that.
Latest upstream version (2.4) is not affected
Comment 34 Huzaifa S. Sidhpurwala 2010-09-30 11:12:40 EDT
Created freetype tracking bugs for this issue

Affects: fedora-all [bug 638522]
Comment 35 errata-xmlrpc 2010-10-04 13:12:55 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3

Via RHSA-2010:0736 https://rhn.redhat.com/errata/RHSA-2010-0736.html
Comment 36 errata-xmlrpc 2010-10-04 13:54:29 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4
  Red Hat Enterprise Linux 5

Via RHSA-2010:0737 https://rhn.redhat.com/errata/RHSA-2010-0737.html
Comment 37 errata-xmlrpc 2010-11-10 13:58:09 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2010:0864 https://rhn.redhat.com/errata/RHSA-2010-0864.html
Comment 38 Keyon 2011-01-11 02:46:27 EST
(In reply to comment #0)
> Marc Schoenefeld found an input stream position error in the
> way FreeType font rendering engine processed input file streams.
> If a user loaded a specially-crafted font file with an application
> linked against FreeType and relevant font glyphs were subsequently
> rendered with the X FreeType library (libXft), it could cause the
> application to crash or, possibly execute arbitrary code (integer
> overflow leading to heap-based buffer overflow in the libXft library)
> with the privileges of the user running the application. Different
> vulnerability than CVE-2010-1797.
> 
> Affected versions: freetype-2.3 and before that.
> Latest upstream version (2.4) is not affected

as patch file (don't seek behind stream (1.07 KB, patch) 2010-08-16 09:52 EDT, Marek Kašík ), version 2.4.x(x=1~4) should also be affected, Jan Lieskovsky, do you think so?
Comment 39 Huzaifa S. Sidhpurwala 2011-01-11 02:58:33 EST
Hi,
(In reply to comment #38)

> as patch file (don't seek behind stream (1.07 KB, patch) 2010-08-16 09:52 EDT,
> Marek Kašík ), version 2.4.x(x=1~4) should also be affected, Jan Lieskovsky, do
> you think so?

The following upstream commit fixes this problem in freetype 2.4.x:


commit 75787c19eab20874c5d588842c52e59cfbd9302a
Author: Werner Lemberg <wl@gnu.org>
Date:   Sat Jun 26 09:24:08 2010 +0200

    Add some memory checks (mainly for debugging).

    * src/base/ftstream.c (FT_Stream_EnterFrame): Exit with error
    if the frame size is larger than the stream size.

    * src/base/ftsystem.c (ft_ansi_stream_io): Exit with error if
    seeking a position larger than the stream size.
Comment 40 Keyon 2011-01-13 04:32:08 EST
(In reply to comment #39)
> Hi,
> (In reply to comment #38)
> > as patch file (don't seek behind stream (1.07 KB, patch) 2010-08-16 09:52 EDT,
> > Marek Kašík ), version 2.4.x(x=1~4) should also be affected, Jan Lieskovsky, do
> > you think so?
> The following upstream commit fixes this problem in freetype 2.4.x:
> commit 75787c19eab20874c5d588842c52e59cfbd9302a
> Author: Werner Lemberg <wl@gnu.org>
> Date:   Sat Jun 26 09:24:08 2010 +0200
>     Add some memory checks (mainly for debugging).
>     * src/base/ftstream.c (FT_Stream_EnterFrame): Exit with error
>     if the frame size is larger than the stream size.
>     * src/base/ftsystem.c (ft_ansi_stream_io): Exit with error if
>     seeking a position larger than the stream size.

thanks, Huzaifa.

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