Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 153990 - libXpm CAN-2005-0605
Summary: libXpm CAN-2005-0605
Status: CLOSED DUPLICATE of bug 168264
Alias: None
Product: Fedora Legacy
Classification: Retired
Component: XFree86
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Fedora Legacy Bugs
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-04-06 14:34 UTC by Dominic Hargreaves
Modified: 2007-04-18 17:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-02-16 05:16:57 UTC

Attachments (Terms of Use)

Description Dominic Hargreaves 2005-04-06 14:34:13 UTC
+++ This bug was initially created as a clone of Bug #152923 +++

05.10.14 CVE: CAN-2005-0665
Platform: Unix
Title: xv Remote Format String Vulnerability
Description: xv is an image manipulation utility for the X Window
System. It is vulnerable to a remote format string vulnerability due
to improper sanitization of user input and can be exploited by an
attacker to execute arbitrary code. xv versions 3.10a and earlier are

05.10.15 CVE: CAN-2005-0605
Platform: Unix
Title: libXpm Bitmap_unit Integer Overflow
Description: libXpm is a graphics library that is shipped with the
XOrg and XFree86 projects. libXpm is affected by an integer overflow
vulnerability. There is no known workaround at this time.

05.10.16 CVE: CAN-2005-0639
Platform: Unix
Title: xli and xloadimage Multiple Vulnerabilities
Description: xli and xloadimage are X11 utilities for displaying and
manipulating a wide range of image formats. xli and xloadimage are
vulnerable to multiple security issues such as buffer overflows and
input validation errors, potentially leading to the execution of
arbitrary code. The fixes for these issues have been released in their
cvs tree.

UNIX Image Processing Utilities Multiple Vulnerabilities
Affected packages:
libXpm included in X11R6 version prior to 6.8.1
xli version 1.17 and prior
xloadimage version 4.1 and prior
xv version 3.10a and possibly prior

Description: Multiple image manipulation utilities and the libXpm
library contain vulnerabilities that may be exploited to compromise a
UNIX client.

(a) X PixMap (XPM) is an ASCII image format popularly used by the X
Windows on UNIX systems. The libXpm library provides various functions
to store and read XPM image files. The library contains an integer
overflow that can be triggered by specifying a negative "bitmap_unit"
value in a XPM image, and possibly exploited to execute arbitrary code.
In order to exploit the flaw, an attacker has to entice a user (via
email or another webpage) to view a malicious XPM file. The technical
details can be obtained by examining the Gentoo Linux bug entries and
the fixes.

(b) The image loading and manipulation utilities - xli, xloadimage and
xv contain vulnerabilities that may be exploited to execute arbitrary
commands/code on a UNIX client via a specially crafted image. One of the
flaws in xli is a well known vulnerability since 2001 for which exploit
code is available. Note that these utilities may be linked with browsers
such as Mozilla. Hence, a specially crafted webpage or an HTML email may
exploit these flaws.

Status: Gentoo has released updates for all the flaws.

Council Site Actions:  Most of the council sites are not using the
affected software.  One site has a very small number of affected
systems. However, their UNIX systems are not used for graphics work,
thus they have no plans for further action.  A second site notified
their system support group; they don't plan any further action as well.

libXpm Integer Overflow
Gentoo Advisory and Bug Information 
XPM File Format  
xv, xloadimage and xli Vulnerabilities
Exploit Code (xloadimage flaw discovered in 2001) 
Gentoo Advisories  
SecurityFocus BID

------- Additional Comments From 2005-03-16 15:01:27 ----

This seems to be a bunch of different problems folded into one report
thus making this hard to read, uderstand and follow up.

In any case I do not recall xv beeing shipped in any of distributions
of interest.  Still the patch in question appears to be this one:

--- xv.c        2005-03-01 15:20:50.153871368 +0000
+++ xv.c        2005-03-01 15:20:39.241530296 +0000
@@ -2249,7 +2249,7 @@
          (filenum==DFLTPIC || filenum==GRABBED || frompipe)
          ? "<none>" : basefname);
This assumes that whomever is using xv has older problems already fixed.

xloadimage is indeed all over the place.  xloadimageexp.c left me scratching
my head. Not sure if xli was ever shipped.

libXpm looks like yet another generic issue in an xpm code.  Sigh!

------- Additional Comments From 2005-03-17 09:09:44 ----

Ubuntu packages are much easier to deal with than Gentoo 'portage-<something>.bz2'
which later unpack to something like 500 Megs of stuff from which one has to
fish out one or two lines of code.  Here are some relevant references:
Ubuntu USN-97-1  (libXpm)
Ubuntu USN-92-1  (lesstif)

------- Additional Comments From 2005-03-20 07:04:53 ----

xloadimage-4.1-34.FC3.src.rpm update with Build Date "Fri 18 Mar 2005" recompiles
on RH7.3 without any changes (save identifier string in specs) although a problem
quoted by a number in a changelog is CAN-2005-0638.

------- Bug moved to this database by 2005-03-30 18:32 -------

This bug previously known as bug 2454 at
Originally filed under the Fedora Legacy product and Package request component.

Unknown priority P2. Setting to default priority "normal".
Unknown platform PC. Setting to default platform "All".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Pekka Savola 2005-05-16 12:09:31 UTC
See #152923.  I wonder which is the right place to track this.

Comment 2 Mike A. Harris 2005-09-28 02:24:46 UTC
Is Fedora Legacy project going to actually include this fix, or can
we just close the bug report "WONTFIX" with explanation to upgrade
to FC4?

Comment 3 David Eisenstein 2005-09-29 14:58:00 UTC
I have opened bug 168264 for the CAN-2005-2495 multiple integer overflows issue.  

I suggest we close this bug as a DUPLICATE of bug 168264, so we can work on both
XFree86 issues there.  Updated RHEL packages have been issued that fix both
CVE's, as is detailed there.

Comment 4 David Eisenstein 2006-02-16 05:08:00 UTC
CAN-2005-0665 is for the program /usr/X11R6/bin/xv, which is part of the
xv-3.10a-23.i386.rpm (from xv-3.10a-23.src.rpm) package.  The latest version
of this package was supplied as part of the Powertools of Red Hat Linux 7.0,
and appears to have never been distributed in any later Red Hat or Fedora Core
distribution.  Therefore CAN-2005-0665 is not an issue that Fedora Legacy will
deal with.

Comment 5 David Eisenstein 2006-02-16 05:14:59 UTC
CAN-2005-0639 is a bug for xli / xloadimage *package), and is not a bug in 
XFree86/Xorg.  Removing this CVE from the title.

Comment 6 David Eisenstein 2006-02-16 05:16:57 UTC
CAN-2005-0605 is being handled in Bug 168264.  Closing this bug as a DUPE.

*** This bug has been marked as a duplicate of 168264 ***

Note You need to log in before you can comment on or make changes to this bug.