Gentoo Logo

FreeType: User-assisted execution of arbitrary code

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200806-10 / freetype
Release Date June 23, 2008
Latest Revision May 28, 2009: 03
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-libs/freetype < 2.3.6 >= 2.3.6, revision >= 1.4_pre20080316-r1 All supported architectures

Related bugreports: #225851

Synopsis

Font parsing vulnerabilities in FreeType might lead to user-assisted execution of arbitrary code.

2.  Impact Information

Background

FreeType is a font rendering library for TrueType Font (TTF) and Printer Font Binary (PFB).

Description

Regenrecht reported multiple vulnerabilities in FreeType via iDefense:

  • An integer overflow when parsing values in the Private dictionary table in a PFB file, leading to a heap-based buffer overflow (CVE-2008-1806).
  • An invalid free() call related to parsing an invalid "number of axes" field in a PFB file (CVE-2008-1807).
  • Multiple off-by-one errors when parsing PBF and TTF files, leading to heap-based buffer overflows (CVE-2008-1808).

Impact

A remote attacker could entice a user to open a specially crafted TTF or PBF file, possibly resulting in the execution of arbitrary code with the privileges of the user running an application linked against FreeType (such as the X.org X server, running as root).

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All FreeType users should upgrade to the latest version:

Code Listing 3.1: Resolution

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

4.  References



Print

Updated June 23, 2008

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Support OSL
Gentoo Centric Hosting: vr.org
Tek Alchemy
SevenL.net
Global Netoptex Inc.
Bytemark
Online Kredit Index
Copyright 2001-2009 Gentoo Foundation, Inc. Questions, Comments? Contact us.