Gentoo: libgsf Buffer overflow
Posted by Benjamin D. Thomas   
Gentoo libgsf improperly allocates memory allowing for a heap overflow and possibly the execution of arbitrary code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200612-13
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: libgsf: Buffer overflow
      Date: December 12, 2006
      Bugs: #156693
        ID: 200612-13

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

Synopsis
========

libgsf improperly allocates memory allowing for a heap overflow and
possibly the execution of arbitrary code.

Background
==========

The GNOME Structured File Library is an I/O library that can read and
write common file types and handle structured formats that provide
file-system-in-a-file semantics.

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

    -------------------------------------------------------------------
     Package             /  Vulnerable  /                   Unaffected
    -------------------------------------------------------------------
  1  gnome-extra/libgsf      < 1.14.2                        >= 1.14.2

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

"infamous41md" has discovered that the "ole_init_info" function may
allocate too little memory for storing the contents of an OLE document,
resulting in a heap buffer overflow.

Impact
======

An attacker could entice a user to open a specially crafted OLE
document, and possibly execute arbitrary code with the rights of the
user opening the document.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All libgsf users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=gnome-extra/libgsf-1.14.2"

References
==========

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

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

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

  http://security.gentoo.org/glsa/glsa-200612-13.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 2006 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