__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN "libgd" Integer Overflows [DSA-589-1 and DSA-591-1] November 9, 2004 19:00 GMT Number P-033 [REVISED 01 Dec 2004] [REVISED 20 Dec 2004] [REVISED 18 Jan 2005] [REVISED 23 Jun 2005] ______________________________________________________________________________ PROBLEM: Vulnerabilities were discovered in libgd1 and libgd2 packages. PLATFORM: Debian GNU/Linux 3.0 (woody) Red Hat Enterprise Linux AS, ES, and WS (all v.3) Red Hat Enterprise Linux AS, ES, and WS (all v.2.1) SGI ProPack 3 Service Pack 3 for SGI Altix family of systems SGI ProPack 3 Service Pack 5 for SGI Altix family of systems DAMAGE: Several integer overflows in the PNG image decoding routines of GD graphics library were found. SOLUTION: Install updated packages. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. An attacker could carefully craft a PNG ASSESSMENT: image file in such a way that it would cause an application linked to libgd to execute arbitrary code when opened by a victim. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/p-033.shtml ORIGINAL BULLETIN: http://www.debian.org/security/2004/dsa-589 http://www.debian.org/security/2004/dsa-591 ADDITIONAL LINK: - Debian Security Advisory DSA-601-1 http://www.debian.org/security/2004/dsa-601 - Debian Security Advisory DSA-602-1 http://www.debian.org/security/2004/dsa-602 - Red Hat RHSA-2004:638-09 (See also CIAC Bulletin P-071) https://rhn.redhat.com/errata/RHSA-2004-638.html - SGI Security Advisory Number 20050101-01-U ftp://patches.sgi.com/support/free/security/advisories/ 20050101-01-U.asc - SGI Security Advisory Number 20050602-01-U ftp://patches.sgi.com/support/free/security/advisories/ 20050602-01-U.asc CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0990 ______________________________________________________________________________ REVISION HISTORY: 12/01/2004 - revised to add a link to Debian Security Advisory DSA-601-1 and DSA-602-1. 12/20/2004 - added link information to Red Hat's Advisory RHSA-2004:638-09 for fixes to these "libgd" vulnerabilities. (See also CIAC Bulletin P-071). 01/18/2005 - added link to updated php packages for SGI ProPack 3 Service Pack 3 for SGI Altix family of systems available in SGI Security Advisory Number 20050101-01-U. 06/23/2005 - added link to SGI Advanced Linux Environment security update #39, Number: 20050602-01-U that provides patches for SGI ProPack 3 Service Pack 5 for SGI Altix family of systems. [***** Start DSA-589-1 libgd1 -- integer overflows *****} Debian Security Advisory DSA-589-1 libgd1 -- integer overflows Date Reported: 09 Nov 2004 Affected Packages: libgd Vulnerable: Yes Security database references: In the Bugtraq database (at SecurityFocus): BugTraq ID 11523. In Mitre's CVE dictionary: CAN-2004-0990. More information: "infamous41md" discovered several integer overflows in the PNG image decoding routines of the GD graphics library. This could lead to the execution of arbitrary code on the victim's machine. For the stable distribution (woody) these problems have been fixed in version 1.8.4-17.woody3 of libgd1 and in version 2.0.1-10woody1 of libgd2. For the unstable distribution (sid) these problems will be fixed soon. We recommend that you upgrade your libgd1 packages. Fixed in: Debian GNU/Linux 3.0 (woody) Source: http://security.debian.org/pool/updates/main/libg/libgd/libgd_1.8.4-17. woody3.dsc http://security.debian.org/pool/updates/main/libg/libgd/libgd_1.8.4-17.woody3. diff.gz http://security.debian.org/pool/updates/main/libg/libgd/libgd_1.8.4.orig.tar.gz Alpha: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17.woody3_ alpha.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_alpha.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_alpha.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_alpha.deb ARM: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_arm.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_arm.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17.woody3_arm.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_arm.deb Intel IA-32: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_i386.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_i386.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_i386.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_i386.deb Intel IA-64: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_ia64.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_ia64.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_ia64.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_ia64.deb HPPA: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_hppa.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_hppa.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_hppa.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_hppa.deb Motorola 680x0: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_m68k.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_m68k.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_m68k.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_m68k.deb Big endian MIPS: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_mips.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_mips.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_mips.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_mips.deb Little endian MIPS: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_mipsel.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_mipsel.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_mipsel.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_mipsel.deb PowerPC: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_powerpc.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_1.8.4-17. woody3_powerpc.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_powerpc.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_1.8.4-17. woody3_powerpc.deb IBM S/390: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_s390.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_ 1.8.4-17.woody3_s390.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_s390.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_ 1.8.4-17.woody3_s390.deb Sun Sparc: http://security.debian.org/pool/updates/main/libg/libgd/libgd-dev_1.8.4-17. woody3_sparc.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd-noxpm-dev_ 1.8.4-17.woody3_sparc.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1_1.8.4-17. woody3_sparc.deb http://security.debian.org/pool/updates/main/libg/libgd/libgd1-noxpm_ 1.8.4-17.woody3_sparc.deb MD5 checksums of the listed files are available in the original advisory. [***** End DSA-589-1 *****] [***** Start DSA-591-1 libgd2 -- integer overflows*****] Debian Security Advisory DSA-591-1 libgd2 -- integer overflows Date Reported: 09 Nov 2004 Affected Packages: libgd2 Vulnerable: Yes Security database references: In the Bugtraq database (at SecurityFocus): BugTraq ID 11523. In Mitre's CVE dictionary: CAN-2004-0990. More information: "infamous41md" discovered several integer overflows in the PNG image decoding routines of the GD graphics library. This could lead to the execution of arbitrary code on the victim's machine. For the stable distribution (woody) these problems have been fixed in version 1.8.4-17.woody3 of libgd1 and in version 2.0.1-10woody1 of libgd2. For the unstable distribution (sid) these problems will be fixed soon. We recommend that you upgrade your libgd2 packages. Fixed in: Debian GNU/Linux 3.0 (woody) Source: http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1- 10woody1.dsc http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1.diff.gz http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1. orig.tar.gz Alpha: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_2.0.1-10 woody1_alpha.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_alpha.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2- dev_2.0.1-10woody1_alpha.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2- noxpm_2.0.1-10woody1_alpha.deb ARM: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_ 2.0.1-10woody1_arm.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_ 2.0.1-10woody1_arm.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_ 2.0.1-10woody1_arm.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2- noxpm_2.0.1-10woody1_arm.deb Intel IA-32: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_ 2.0.1-10woody1_i386.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_i386.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2- dev_2.0.1-10woody1_i386.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_ 2.0.1-10woody1_i386.deb Intel IA-64: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_ 2.0.1-10woody1_ia64.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_ia64.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_ia64.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_ 2.0.1-10woody1_ia64.deb HPPA: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_ 2.0.1-10woody1_hppa.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_hppa.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_hppa.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_2.0.1-10 woody1_hppa.deb Motorola 680x0: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_2.0.1-10 woody1_m68k.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_m68k.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_m68k.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_2.0.1-10 woody1_m68k.deb Big endian MIPS: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_2.0.1-10 woody1_mips.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_mips.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_mips.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_2.0.1-10 woody1_mips.deb Little endian MIPS: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_2.0.1-10 woody1_mipsel.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_mipsel.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_mipsel.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_2.0.1-10 woody1_mipsel.deb PowerPC: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_2.0.1-10 woody1_powerpc.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_powerpc.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_powerpc.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_2.0.1-10 woody1_powerpc.deb IBM S/390: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_2.0.1-10 woody1_s390.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 oody1_s390.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_s390.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_2.0.1-10 woody1_s390.deb Sun Sparc: http://security.debian.org/pool/updates/main/libg/libgd2/libgd-tools_2.0.1-10 woody1_sparc.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2_2.0.1-10 woody1_sparc.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-dev_2.0.1-10 woody1_sparc.deb http://security.debian.org/pool/updates/main/libg/libgd2/libgd2-noxpm_2.0.1-10 woody1_sparc.deb MD5 checksums of the listed files are available in the original advisory. [***** End DSA-591-1 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Debian for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) P-023: RealPlayer Vulnerability P-024: Apple Remote Desktop Vulnerability P-025: Apache HTTP Server 1.3.33 Released P-026: "iptables" Packages Updated P-027: Sun Java System Web Proxy Server Buffer Overflow Vulnerability P-028: Cisco Vulnerability in Cisco Secure Access Control Server (ACS) EAP-TLS Authentication P-029: libxml and libxml2 Buffer Overflow P-030: Local Volume Manager (LVM) Vulnerability P-031: HP OpenView Operations (OVO) Remote Privilege Elevation Vulnerability P-032: GZIP Insecure Temporary Files