Bug 623625 (CVE-2010-3311) - CVE-2010-3311 freetype: Input stream position error by processing Compact Font Format (CFF) font files
Summary: CVE-2010-3311 freetype: Input stream position error by processing Compact Fon...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2010-3311
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 638139 638140 638141 638142 638143 638522 638838 638839 806284
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-12 10:44 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:38 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-05 06:35:33 UTC
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0736 0 normal SHIPPED_LIVE Important: freetype security update 2010-10-04 17:12:40 UTC
Red Hat Product Errata RHSA-2010:0737 0 normal SHIPPED_LIVE Important: freetype security update 2010-10-04 17:54:16 UTC
Red Hat Product Errata RHSA-2010:0864 0 normal SHIPPED_LIVE Important: freetype security update 2010-11-09 18:50:14 UTC

Description Jan Lieskovsky 2010-08-12 10:44:13 UTC
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 15:12:40 UTC
Created freetype tracking bugs for this issue

Affects: fedora-all [bug 638522]

Comment 35 errata-xmlrpc 2010-10-04 17:12:55 UTC
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 17:54:29 UTC
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 18:58:09 UTC
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 07:46:27 UTC
(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 07:58:33 UTC
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>
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 09:32:08 UTC
(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>
> 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.