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

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
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

Sign Up!





Category:  Application (Generic)  >  LessTif Vendors:  lesstif.org
(Gentoo Issues Fix for LessTif) libXpm Integer and Stack Overflows May Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1011600
SecurityTracker URL:  http://securitytracker.com/id?1011600
CVE Reference:  CAN-2004-0687   (Links to External Site)
Date:  Oct 11 2004
Impact:  Execution of arbitrary code via network, User access via network
Fix Available:  Yes   Vendor Confirmed:  Yes  
Version(s): prior to 0.93.96
Description:  Some vulnerabilities were reported in libXpm. A remote user may be able to execute arbitrary code on applications that use libXpm. LessTif is affected.

The vendor reported that there are some integer overflows [CVE: CAN-2004-0687] and stack overflows [CVE: CAN-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 LessTif users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=x11-libs/lesstif-0.93.97"
# emerge ">=x11-libs/lesstif-0.93.97"

Cause:  Boundary error
Underlying OS:  Linux (Gentoo)
Reported By:  Luke Macken <lewk@gentoo.org>
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

Date:  Sat, 09 Oct 2004 18:39:22 -0400
From:  Luke Macken <lewk@gentoo.org>
Subject:  [gentoo-announce] [ GLSA 200410-09 ] LessTif: Integer and stack overflows in libXpm

 


--=-QacTAejWMa4aK3TLBHk1
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200410-09
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: LessTif: Integer and stack overflows in libXpm
      Date: October 09, 2004
      Bugs: #66647
        ID: 200410-09

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

Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D

Multiple vulnerabilities have been discovered in libXpm, which is
included in LessTif, that can potentially lead to remote code
execution.

Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

LessTif is a clone of OSF/Motif, which is the standard user interface
toolkit available on Unix and Linux.

Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    -------------------------------------------------------------------
     Package           /  Vulnerable  /                     Unaffected
    -------------------------------------------------------------------
  1  x11-libs/lesstif      < 0.93.97                        >=3D 0.93.97

Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Chris Evans has discovered various integer and stack overflows in
libXpm, which is shipped as a part of the X Window System. LessTif, an
application that includes this library, is susceptible to the same
issues.

Impact
=3D=3D=3D=3D=3D=3D

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

Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

There is no known workaround at this time.

Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

All LessTif users should upgrade to the latest version:

    # emerge sync

    # emerge -pv ">=3Dx11-libs/lesstif-0.93.97"
    # emerge ">=3Dx11-libs/lesstif-0.93.97"

References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

  [ 1 ] CAN-2004-0687
        http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0687
  [ 2 ] CAN-2004-0688
        http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0688
  [ 3 ] GLSA-200409-34
        http://www.gentoo.org/security/en/glsa/glsa-200409-34.xml
  [ 4 ] LessTif Release Notes
        http://www.lesstif.org/ReleaseNotes.html

Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

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

  http://security.gentoo.org/glsa/glsa-200410-09.xml

Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D

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
=3D=3D=3D=3D=3D=3D=3D

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

--=-QacTAejWMa4aK3TLBHk1
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

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

iD8DBQBBaGiZRsm3eDkOu7kRAofcAJ4/pA58CCIymoAp5XN02uGlviHi3wCfQM1B
hcle//8VOLqDi0UffowA7wo=
=2JGH
-----END PGP SIGNATURE-----

--=-QacTAejWMa4aK3TLBHk1--

 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2004, SecurityGlobal.net LLC