Gentoo: KOffice shared libraries Heap corruption
Posted by Benjamin D. Thomas   
Gentoo An integer overflow in koffice-libs allows for a Denial of Service and possibly the execution of arbitrary code when viewing malicious PowerPoint files.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200612-05
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: KOffice shared libraries: Heap corruption
      Date: December 10, 2006
      Bugs: #155914
        ID: 200612-05

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

Synopsis
========

An integer overflow in koffice-libs allows for a Denial of Service and
possibly the execution of arbitrary code when viewing malicious
PowerPoint files.

Background
==========

KOffice is an integrated office suite for KDE. koffice-libs is a
package containing shared librares used by KOffice programs.

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

    -------------------------------------------------------------------
     Package                  /  Vulnerable  /              Unaffected
    -------------------------------------------------------------------
  1  app-office/koffice-libs       < 1.5.0                    >= 1.5.0

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

Kees Cook of Ubuntu discovered that 'KLaola::readBigBlockDepot()' in
klaola.cc fills 'num_of_bbd_blocks' while reading a .ppt (PowerPoint)
file without proper sanitizing, resulting in an integer overflow
subsequently overwriting the heap with parts of the file being read.

Impact
======

By enticing a user to open a specially crafted PowerPoint file, an
attacker could crash the application and possibly execute arbitrary
code with the rights of the user running KOffice.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All koffice-libs users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=app-office/koffice-libs-1.5.0"

References
==========

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

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

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

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