GTK+ and GdkPixbuf XPM loader xpm_extract_color buffer overflow
| gtk-xpm-xpmextractcolor-bo (17385) |
Description:
GTK+ and GdkPixbuf are vulnerable to a stack-based buffer overflow in the xpm_extract_color function. By creating a specially-crafted XPM file, a remote attacker could cause a program using the vulnerable image loader to crash or possibly execute arbitrary code on the victim's system.
Consequences:
Gain Access
Remedy:
For Red Hat Linux containing the gtk2 package:
Upgrade to the latest gtk2 package, as listed below. Refer to RHSA-2004:466-12 for more information. See References.
Red Hat Enterprise Linux AS (v. 3), ES (v. 3), WS (v. 3), Desktop: 2.2.4-8.1 or later
Red Hat Enterprise Linux AS (v. 2.1), ES (v. 2.1), WS (v. 2.1), Advanced Workstation (v.2.1): 2.2.4-8.1 or later
For Red Hat Linux containing the gdk-pixbuf package:
Upgrade to the latest gdk-pixbuf package, as listed below. Refer to RHSA-2004:447-17 for more information. See References.
Red Hat Enterprise Linux AS (v. 3), ES (v. 3), WS (v. 3), Desktop: 0.22.0-11.2.2E or later
Red Hat Enterprise Linux AS (v. 2.1), ES (v. 2.1), WS (v. 2.1), Advanced Workstation (v.2.1): 0.22.0-11.2.2E or later
For Debian GNU/Linux 3.0 (alias woody):
Upgrade to the latest gdk-pixbuf package (0.17.0-2woody2 or later), as listed in DSA-546-1. See References.
Upgrade to the latest gdk-pixbuf package (2.0.2-5woody2 or later), as listed in DSA-549-1. See References.
For SuSE Linux:
Upgrade to the latest gtk2, gdk-pixbuf package, as listed below. Refer to SuSE Security Announcement SUSE-SA:2004:033 for more information. See References.
SuSE Linux 9.1: 2.2.4-125.4 or later
SuSE Linux 9.0: 2.2.3-54 or later
SuSE Linux 8.2: 2.2.1-102 or later
SuSE Linux 8.1: 2.0.6-154 or later
For Mandrake Linux:
Upgrade to the latest gdk-pixbuf/gtk+2 package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:095-1 : gdk-pixbuf/gtk+2 for more information. See References.
Mandrake Linux 9.2: 0.22.0-2.2.92mdk or later
Mandrake Linux 10.0: 0.22.0-2.2.100mdk or later
For Gentoo Linux:
Upgrade to the latest version of GTK+ 2, and gdk-pixbuf, as listed in GLSA 200409-28. See References.
For Conectiva Linux:
Upgrade to the latest GTK+ 2, and gdk-pixbuf package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:875 for more information. See References.
Gdk-pixbuf:
Conectiva Linux 10: 0.22.0-49324U10_2cl or later
Conectiva Linux 9: 0.22.0-22265U90_2cl or later
GTK+ 2:
Conectiva Linux 10:2.4.1-60034U10_1cl or later
Conectiva Linux 9: 2.2.1-25016U90_2cl or later
For SUSE Linux:
Apply the appropriate fixed packages via the SUSE FTP server or the YaST Online Update, as listed in SUSE Security Summary Report SUSE-SR:2004:003. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- CIAC Information Bulletin 0-216: "gtk2" Package Vulnerability.
- CIAC Information Bulletin 0-217: "gdk-pixbuf" Package vulnerability.
- Conectiva Linux Security Announcement CLSA-2004:875: Fixes for image loading vulnerabilities.
- GTK+ Web site: GTK+ - The GIMP Toolkit.
- Scary Beasts Security Advisory CESA-2004-005: gtk+-2.4.4 XPM image decoder parsing flaws.
- BID-11195: GDK-Pixbuf Multiple Vulnerabilities
- CVE-2004-0782: Integer overflow in pixbuf_create_from_xpm (io-xpm.c) in the XPM image decoder for gtk+ 2.4.4 (gtk2) and earlier, and gdk-pixbuf before 0.22, allows remote attackers to execute arbitrary code via certain n_col and cpp values that enable a heap-based buffer overflow. NOTE: this identifier is ONLY for gtk+. It was incorrectly referenced in an advisory for a different issue (CVE-2004-0687).
- DSA-546: gdk-pixbuf -- several vulnerabilities
- DSA-549: gtk+ -- several vulnerabilities
- GLSA-200409-28: GTK+ 2, gdk-pixbuf: Multiple image decoding vulnerabilities
- MDKSA-2004:095: Updated gdk-pixbuf packages fix image loading vulnerabilities
- MDKSA-2004:095-1: Updated gdk-pixbuf and gtk+2 packages fix image loading vulnerabilities
- MDKSA-2005:214: Updated gdk-pixbuf/gtk+2.0 packages fix vulnerability
- RHSA-2004-447: gdk-pixbuf security update
- RHSA-2004-466: gtk2 security update
- SUSE-SA:2004:032: apache2: remote denial-of-service
- SUSE-SA:2004:033: gtk2 gdk-pixbuf: remote code execution
- SUSE-SR:2004:003: SUSE Security Summary Report
- US-CERT VU#729894: GdkPixbuf XPM parser contains a heap overflow vulnerability
Platforms Affected:
- Conectiva Linux 10
- Conectiva Linux 9.0
- Debian Debian Linux 3.0
- GdkPixbuf GdkPixbuf
- Gentoo Linux
- GTK GTK+ 2.4.4
- MandrakeSoft Mandrake Linux 10.0 AMD64
- MandrakeSoft Mandrake Linux 10.0
- MandrakeSoft Mandrake Linux 2006
- MandrakeSoft Mandrake Linux 2006 X86_64
- MandrakeSoft Mandrake Linux 9.2
- MandrakeSoft Mandrake Linux 9.2 AMD64
- MandrakeSoft Mandrake Linux LE2005
- MandrakeSoft Mandrake Linux LE2005 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 2.1
- MandrakeSoft Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- RedHat Enterprise Linux 2.1 AW
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 2.1 AS
- RedHat Enterprise Linux 3 Desktop
- RedHat Enterprise Linux 3 AS
- RedHat Enterprise Linux 3 ES
- RedHat Enterprise Linux 3 WS
- RedHat Linux Advanced Workstation 2.1 Itanium
- SuSE Linux Enterprise Server 8
- SuSE Linux Enterprise Server 9
- SUSE SuSE Linux 8.1
- SUSE SuSE Linux 8.2
- SUSE SuSE Linux 9.0
- SUSE SuSE Linux 9.1
- SUSE SuSE Linux
- SuSE SuSE Linux Desktop 1.0
- SuSE SuSE SLES 9
Reported:
Sep 15, 2004
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
