SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Generic)  >   FreeType Vendors:   freetype.org
FreeType2 Integer Overflow in Parsing PFB Font Files Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1020238
SecurityTracker URL:  http://securitytracker.com/id/1020238
CVE Reference:   CVE-2008-1806   (Links to External Site)
Date:  Jun 11 2008
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 2.3.5 and prior versions
Description:   A vulnerability was reported in FreeType2. A remote user can cause arbitrary code to be executed on the target user's system.

A remote user can create a specially crafted Printer Font Binary (PFB) format font file that, when loaded by the target user or application, will trigger an integer overflow and execute arbitrary code on the target system. The code will run with the privileges of the target user or application.

The vulnerability occurs in the parsing of the 'Private' dictionary table structure.

The vendor was notified on June 3, 2008.

regenrecht reported this vulnerability via iDefense.

Impact:   A remote user can create a file that, when loaded by the target user or application, will execute arbitrary code on the target system.
Solution:   The vendor has issued a fixed version (2.3.6), available at:

http://sourceforge.net/project/showfiles.php?group_id=3157

The vendor's advisory is available at:

http://sourceforge.net/project/shownotes.php?group_id=3157&release_id=605780

Vendor URL:  www.freetype.org/ (Links to External Site)
Cause:   Boundary error
Underlying OS:   Linux (Any), UNIX (Any)

Message History:   This archive entry has one or more follow-up message(s) listed below.
Jun 19 2008 (Sun Issues Advisory) FreeType2 Integer Overflow in Parsing PFB Font Files Lets Remote Users Execute Arbitrary Code
Sun is working on a fix for Solaris 8, 9, and 10.
Jun 20 2008 (Red Hat Issues Fix) FreeType2 Integer Overflow in Parsing PFB Font Files Lets Remote Users Execute Arbitrary Code   (bugzilla@redhat.com)
Red Hat has released a fix for Red Hat Enterprise Linux 3, 4, and 5.
Jun 20 2008 (Red Hat Issues Fix) FreeType2 Integer Overflow in Parsing PFB Font Files Lets Remote Users Execute Arbitrary Code   (bugzilla@redhat.com)
Red Hat has released a fix for Red Hat Enterprise Linux 2.1.
Sep 13 2008 (Apple Issues Fix for iPhone) FreeType2 Integer Overflow in Parsing PFB Font Files Lets Remote Users Execute Arbitrary Code   (Apple Product Security <product-security-noreply@lists.apple.com>)
Apple has released a fix for iPhone.



 Source Message Contents

Date:  Tue, 10 Jun 2008 14:23:35 -0400
Subject:  iDefense Security Advisory 06.10.08: Multiple Vendor FreeType2 PFB

iDefense Security Advisory 06.10.08
http://labs.idefense.com/intelligence/vulnerabilities/
Jun 10, 2008

I. BACKGROUND

FreeType2 is an open source library for parsing fonts that is used by
many applications. This includes projects such as X.Org, Second Life,
and the Sun Java JRE. For more information, please see the vendor's
website at the following URL.

http://freetype.sourceforge.net/freetype2/

II. DESCRIPTION

Remote exploitation of an integer overflow vulnerability in the
FreeType2 library, as included in various vendors' operating systems,
could allow an attacker to execute arbitrary code with the privileges
of the affected application.

The vulnerability exists within the code responsible for parsing Printer
Font Binary (PFB) format font files. PFB files contain a section known
as the "Private" dictionary table which is used to describe how
characters are constructed. When parsing this data structure, a series
of 16-bit length values are read in from the file. These values are
added together and used to allocate a dynamic buffer. The addition can
result in an integer overflow, which subsequently leads to a heap
overflow.

III. ANALYSIS

Exploitation of this vulnerability results in the execution of arbitrary
code with the privileges of the application using the library. Since
FreeType2 is a library and not a standalone application, the
exploitation vector will vary. iDefense Labs verified that local
privilege escalation was possible via the X.Org Xserver.

IV. DETECTION

iDefense has confirmed the existence of this vulnerability in FreeType2
version 2.3.5. Previous versions may also be affected.

V. WORKAROUND

iDefense is currently unaware of any workarounds for this issue.
Changing the permissions on the freetype.so library may not always be
effective since applications that run with root privileges are not
restricted by file permissions.

VI. VENDOR RESPONSE

The FreeType maintainers addressed this vulnerability with the release
of version 2.3.6. For more information, refer to the release notes at
the following URL.

http://sourceforge.net/project/shownotes.php?group_id=3157&release_id=605780

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2008-1806 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org/), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

06/03/2008  Initial vendor notification
06/04/2008  Initial vendor response
06/10/2008  Coordinated public disclosure

IX. CREDIT

This vulnerability was reported to iDefense by regenrecht.

Get paid for vulnerability research
http://labs.idefense.com/methodology/vulnerability/vcp.php

Free tools, research and upcoming events
http://labs.idefense.com/

X. LEGAL NOTICES

Copyright  2008 iDefense, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDefense. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically,
please e-mail customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
 There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct,
indirect, or consequential loss or damage arising from use of, or
reliance on, this information.

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2014, SecurityGlobal.net LLC