SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   libXpm Vendors:   X.org
(Gentoo Issues Fix) libXpm Integer and Stack Overflows May Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1011423
SecurityTracker URL:  http://securitytracker.com/id/1011423
CVE Reference:   CVE-2004-0687, CVE-2004-0688   (Links to External Site)
Date:  Sep 27 2004
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): X11 R6.8.0
Description:   Some vulnerabilities were reported in libXpm. A remote user may be able to execute arbitrary code on applications that use libXpm.

The vendor reported that there are some integer overflows [CVE: CVE-2004-0687] and stack overflows [CVE: CVE-2004-0688] in the libXpm X Pixmap library, shipped as part of the X Window System.

A stack overflow is reported in xpmParseColors() in 'parse.c' that can be triggered by a specially crafted XPMv1 and XPMv2/3 file. A demonstration exploit file is available at:

http://scary.beasts.org/misc/doom.xpm

A stack overflow is reported in the reading of pixel values in the ParseAndPutPixels() function in 'create.c' and in the ParsePixels() function in 'parse.c'. A demonstration exploit file is available at:

http://scary.beasts.org/misc/doom2.xpm

An integer overflow is reported in the colorTable allocation in xpmParseColors() in 'parse.c'. The XpmCreateImageFromXpmImage, CreateXImage, ParsePixels, ParseAndPutPixels, and ParsePixels are affected.

The vendor credits Chris Evans with reporting these flaws. The advisory from Chris Evans is available at:

http://scary.beasts.org/security/CESA-2004-003.txt

Impact:   A remote user can create a specially crafted image file that, when processed by an application using libXpm, will execute arbitrary code on the target system with the privileges of the target application.
Solution:   Gentoo has released a fix and indicates that all X.org users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=x11-base/xorg-x11-6.7.0-r2"
# emerge ">=x11-base/xorg-x11-6.7.0-r2"

All XFree86 users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=x11-base/xfree-4.3.0-r7"
# emerge ">=x11-base/xfree-4.3.0-r7"

Vendor URL:  www.x.org/pub/X11R6.8.0/patches/README.xorg-CVE-2004-0687-0688.patch (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Gentoo)

Message History:   This archive entry is a follow-up to the message listed below.
Sep 16 2004 libXpm Integer and Stack Overflows May Let Remote Users Execute Arbitrary Code



 Source Message Contents

Subject:  [gentoo-announce] [ GLSA 200409-34 ] X.org, XFree86: Integer and stack overflows in


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigEA6620FABBD9968E5B2250AD
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200409-34
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: X.org, XFree86: Integer and stack overflows in libXpm
      Date: September 27, 2004
      Bugs: #64152
        ID: 200409-34

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

Synopsis
========

libXpm, the X Pixmap library that is a part of the X Window System,
contains multiple stack and integer overflows that may allow a
carefully-crafted XPM file to crash applications linked against
libXpm, potentially allowing the execution of arbitrary code.

Background
==========

XFree86 and X.org are both implementations of the X Window System.

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

    -------------------------------------------------------------------
     Package            /  Vulnerable  /                    Unaffected
    -------------------------------------------------------------------
  1  x11-base/xorg-x11     < 6.7.0-r2                     *>= 6.7.0-r2
                            == 6.8.0                       >= 6.8.0-r1
  2  x11-base/xfree        < 4.3.0-r7                      >= 4.3.0-r7
    -------------------------------------------------------------------
     # Package 2 [x11-base/xfree] only applies to ALPHA and x86 users.

     NOTE: Any packages listed without architecture tags apply to all
           architectures...
    -------------------------------------------------------------------
     NOTE: Usage of XFree86 is deprecated on the AMD64, HPPA, IA64,
           MIPS, PPC and SPARC architectures: XFree86 users on those
           architectures should switch to X.org rather than upgrading
           XFree86.
    -------------------------------------------------------------------
     2 affected packages
    -------------------------------------------------------------------

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

Chris Evans has discovered multiple integer and stack overflow
vulnerabilities in the X Pixmap library, libXpm, which is a part of the
X Window System. These overflows can be exploited by the execution of a
malicious XPM file, which can crash applications that are dependent on
libXpm.

Impact
======

A carefully-crafted XPM file could crash applications that are linked
against libXpm, potentially allowing the execution of arbitrary code
with the privileges of the user running the application.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All X.org users should upgrade to the latest version:

    # emerge sync

    # emerge -pv ">=x11-base/xorg-x11-6.7.0-r2"
    # emerge ">=x11-base/xorg-x11-6.7.0-r2"

All XFree86 users should upgrade to the latest version:

    # emerge sync

    # emerge -pv ">=x11-base/xfree-4.3.0-r7"
    # emerge ">=x11-base/xfree-4.3.0-r7"

Note: Usage of XFree86 is deprecated on the AMD64, HPPA, IA64, MIPS,
PPC and SPARC architectures: XFree86 users on those architectures
should switch to X.org rather than upgrading XFree86.

References
==========

  [ 1 ] X.org Security Advisory
        http://freedesktop.org/pipermail/xorg/2004-September/003196.html
  [ 2 ] X11R6.8.1 Release Notes
        http://freedesktop.org/pipermail/xorg/2004-September/003172.html
  [ 3 ] CAN-2004-0687
        http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0687
  [ 4 ] CAN-2004-0688
        http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0688

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

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

  http://security.gentoo.org/glsa/glsa-200409-34.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 2004 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/1.0


--------------enigEA6620FABBD9968E5B2250AD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBV+EAvcL1obalX08RAus+AJ9Og0NSi/Uf/i3Rw0656rai7fKZMwCeJVWS
oxM9KaPNaz3q7G2WAXIvbrg=
=OQU0
-----END PGP SIGNATURE-----

--------------enigEA6620FABBD9968E5B2250AD--

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC