Gentoo: FreeType User-assisted execution of arbitrary code
Posted by Benjamin D. Thomas   
Gentoo A vulnerability has been discovered in FreeType allowing for user-assisted remote execution of arbitrary code. A remote attacker could entice a user to use a specially crafted BDF font, possibly resulting in a heap-based buffer overflow and the remote execution of arbitrary code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200705-02
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: FreeType: User-assisted execution of arbitrary code
      Date: May 01, 2007
      Bugs: #172577
        ID: 200705-02

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

A vulnerability has been discovered in FreeType allowing for
user-assisted remote execution of arbitrary code.

Background
==========

FreeType is a True Type Font rendering library.

Affected packages
=================

    -------------------------------------------------------------------
     Package              /   Vulnerable   /                Unaffected
    -------------------------------------------------------------------
  1  media-libs/freetype      < 2.1.10-r3                 >= 2.1.10-r3

Description
===========

Greg MacManus of iDefense Labs has discovered an integer overflow in
the function bdfReadCharacters() when parsing BDF fonts.

Impact
======

A remote attacker could entice a user to use a specially crafted BDF
font, possibly resulting in a heap-based buffer overflow and the remote
execution of arbitrary code.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All FreeType users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=media-libs/freetype-2.1.10-r3"

References
==========

  [ 1 ] CVE-2007-1351
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1351

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200705-02.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2007 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5