Executive Summary

Summary
Title SDL_image: Two buffer overflow vulnerabilities
Informations
Name GLSA-200802-01 First vendor Publication 2008-02-06
Vendor Gentoo Last vendor Modification 2008-02-06
Severity (Vendor) Normal Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:C/I:C/A:C)
Cvss Base Score 10 Attack Range Network
Cvss Impact Score 10 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

Two boundary errors have been identified in SDL_image allowing for the remote execution of arbitrary code or the crash of the application using the library.

Background

SDL_image is an image file library that loads images as SDL surfaces, and supports various formats like BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, XCF, XPM, and XV.

Description

The LWZReadByte() function in file IMG_gif.c and the IMG_LoadLBM_RW()
function in file IMG_lbm.c each contain a boundary error that can be triggered to cause a static buffer overflow and a heap-based buffer overflow. The first boundary error comes from some old vulnerable GD PHP code (CVE-2006-4484).

Impact

A remote attacker can make an application using the SDL_image library to process a specially crafted GIF file or IFF ILBM file that will trigger a buffer overflow, resulting in the execution of arbitrary code with the permissions of the application or the application crash.

Workaround

There is no known workaround at this time.

Resolution

All SDL_image users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/sdl-image-1.2.6-r1"

References

[ 1 ] SA28640
http://secunia.com/advisories/28640/
[ 2 ] CVE-2007-6697 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6697
[ 3 ] CVE-2008-0544 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0544

Availability

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

http://security.gentoo.org/glsa/glsa-200802-01.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200802-01.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-119 Failure to Constrain Operations within the Bounds of a Memory Buffer

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:17568
 
Oval ID: oval:org.mitre.oval:def:17568
Title: USN-595-1 -- sdl-image1.2 vulnerabilities
Description: Michael Skladnikiewicz discovered that SDL_image did not correctly load GIF images.
Family: unix Class: patch
Reference(s): USN-595-1
CVE-2007-6697
CVE-2008-0544
Version: 7
Platform(s): Ubuntu 6.06
Ubuntu 6.10
Ubuntu 7.04
Ubuntu 7.10
Product(s): sdl-image1.2
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:17777
 
Oval ID: oval:org.mitre.oval:def:17777
Title: DSA-1493-2 sdl-image1.2 - arbitrary code execution
Description: Several local/remote vulnerabilities have been discovered in the image loading library for the Simple DirectMedia Layer 1.2.
Family: unix Class: patch
Reference(s): DSA-1493-2
CVE-2007-6697
CVE-2008-0544
Version: 7
Platform(s): Debian GNU/Linux 4.0
Product(s): sdl-image1.2
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:18763
 
Oval ID: oval:org.mitre.oval:def:18763
Title: DSA-1493-1 sdl-image1.2
Description: Several local/remote vulnerabilities have been discovered in the image loading library for the Simple DirectMedia Layer 1.2.
Family: unix Class: patch
Reference(s): DSA-1493-1
CVE-2007-6697
CVE-2008-0544
Version: 7
Platform(s): Debian GNU/Linux 4.0
Product(s): sdl-image1.2
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:7785
 
Oval ID: oval:org.mitre.oval:def:7785
Title: DSA-1493 sdl-image1.2 -- buffer overflows
Description: Several local/remote vulnerabilities have been discovered in the image loading library for the Simple DirectMedia Layer 1.2. The Common Vulnerabilities and Exposures project identifies the following problems: Gynvael Coldwind discovered a buffer overflow in GIF image parsing, which could result in denial of service and potentially the execution of arbitrary code. It was discovered that a buffer overflow in IFF ILBM image parsing could result in denial of service and potentially the execution of arbitrary code.
Family: unix Class: patch
Reference(s): DSA-1493
CVE-2007-6697
CVE-2008-0544
Version: 3
Platform(s): Debian GNU/Linux 4.0
Debian GNU/Linux 3.1
Product(s): sdl-image1.2
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:9004
 
Oval ID: oval:org.mitre.oval:def:9004
Title: Buffer overflow in the LWZReadByte_ function in ext/gd/libgd/gd_gif_in.c in the GD extension in PHP before 5.1.5 allows remote attackers to have an unknown impact via a GIF file with input_code_size greater than MAX_LWZ_BITS, which triggers an overflow when initializing the table array.
Description: Buffer overflow in the LWZReadByte_ function in ext/gd/libgd/gd_gif_in.c in the GD extension in PHP before 5.1.5 allows remote attackers to have an unknown impact via a GIF file with input_code_size greater than MAX_LWZ_BITS, which triggers an overflow when initializing the table array.
Family: unix Class: vulnerability
Reference(s): CVE-2006-4484
Version: 5
Platform(s): Red Hat Enterprise Linux 3
CentOS Linux 3
Red Hat Enterprise Linux 4
CentOS Linux 4
Oracle Linux 4
Red Hat Enterprise Linux 5
CentOS Linux 5
Oracle Linux 5
Product(s):
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 4
Application 1

OpenVAS Exploits

Date Description
2012-06-21 Name : PHP 5.1.x < 5.1.5
File : nvt/nopsec_php_5_1_5.nasl
2009-10-13 Name : SLES10: Security update for perl-Tk
File : nvt/sles10_perl-Tk.nasl
2009-10-10 Name : SLES9: Security update for perl-Tk
File : nvt/sles9p5021923.nasl
2009-04-09 Name : Mandriva Update for perl-Tk MDVSA-2008:077 (perl-Tk)
File : nvt/gb_mandriva_MDVSA_2008_077.nasl
2009-04-09 Name : Mandriva Update for SDL_image MDVSA-2008:040 (SDL_image)
File : nvt/gb_mandriva_MDVSA_2008_040.nasl
2009-04-09 Name : Mandriva Update for gd MDVSA-2008:038 (gd)
File : nvt/gb_mandriva_MDVSA_2008_038.nasl
2009-03-23 Name : Ubuntu Update for sdl-image1.2 vulnerabilities USN-595-1
File : nvt/gb_ubuntu_USN_595_1.nasl
2009-03-06 Name : RedHat Update for gd RHSA-2008:0146-01
File : nvt/gb_RHSA-2008_0146-01_gd.nasl
2009-02-27 Name : CentOS Update for gd CESA-2008:0146 centos4 i386
File : nvt/gb_CESA-2008_0146_gd_centos4_i386.nasl
2009-02-27 Name : CentOS Update for gd CESA-2008:0146 centos4 x86_64
File : nvt/gb_CESA-2008_0146_gd_centos4_x86_64.nasl
2009-02-16 Name : Fedora Update for SDL_image FEDORA-2008-1231
File : nvt/gb_fedora_2008_1231_SDL_image_fc7.nasl
2009-02-16 Name : Fedora Update for graphviz FEDORA-2008-1643
File : nvt/gb_fedora_2008_1643_graphviz_fc7.nasl
2009-02-16 Name : Fedora Update for SDL_image FEDORA-2008-1208
File : nvt/gb_fedora_2008_1208_SDL_image_fc8.nasl
2009-02-13 Name : Fedora Update for tk FEDORA-2008-1131
File : nvt/gb_fedora_2008_1131_tk_fc7.nasl
2009-02-13 Name : Fedora Update for tk FEDORA-2008-1122
File : nvt/gb_fedora_2008_1122_tk_fc8.nasl
2008-09-24 Name : Gentoo Security Advisory GLSA 200802-01 (sdl-image)
File : nvt/glsa_200802_01.nasl
2008-09-04 Name : FreeBSD Ports: sdl_image
File : nvt/freebsd_sdl_image.nasl
2008-09-04 Name : FreeBSD Ports: php4, php5
File : nvt/freebsd_php40.nasl
2008-03-19 Name : Debian Security Advisory DSA 1493-2 (sdl-image1.2)
File : nvt/deb_1493_2.nasl
2008-02-15 Name : Debian Security Advisory DSA 1493-1 (sdl-image1.2)
File : nvt/deb_1493_1.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
42375 SDL_image IMG_lbm.c IMG_LoadLBM_RW Function Crafted IFF ILBM File Handling Re...

42374 SDL_image IMG_gif.c LWZReadByte Function Crafted GIF File Handling Remote Ove...

28002 PHP GD Extension GIF Processing Overflow

Nessus® Vulnerability Scanner

Date Description
2013-07-12 Name : The remote Oracle Linux host is missing one or more security updates.
File : oraclelinux_ELSA-2008-0146.nasl - Type : ACT_GATHER_INFO
2013-07-12 Name : The remote Oracle Linux host is missing a security update.
File : oraclelinux_ELSA-2006-0730.nasl - Type : ACT_GATHER_INFO
2012-08-01 Name : The remote Scientific Linux host is missing one or more security updates.
File : sl_20080228_gd_on_SL4_x.nasl - Type : ACT_GATHER_INFO
2011-11-18 Name : The remote web server uses a version of PHP that is affected by multiple vuln...
File : php_5_1_5.nasl - Type : ACT_GATHER_INFO
2009-09-24 Name : The remote SuSE 9 host is missing a security-related patch.
File : suse9_12093.nasl - Type : ACT_GATHER_INFO
2009-04-23 Name : The remote Mandriva Linux host is missing one or more security updates.
File : mandriva_MDVSA-2008-077.nasl - Type : ACT_GATHER_INFO
2009-04-23 Name : The remote Mandriva Linux host is missing one or more security updates.
File : mandriva_MDVSA-2008-040.nasl - Type : ACT_GATHER_INFO
2009-04-23 Name : The remote Mandriva Linux host is missing one or more security updates.
File : mandriva_MDVSA-2008-038.nasl - Type : ACT_GATHER_INFO
2008-06-09 Name : The remote openSUSE host is missing a security update.
File : suse_tkimg-5328.nasl - Type : ACT_GATHER_INFO
2008-06-09 Name : The remote openSUSE host is missing a security update.
File : suse_tkimg-5320.nasl - Type : ACT_GATHER_INFO
2008-05-09 Name : The remote FreeBSD host is missing a security-related update.
File : freebsd_pkg_b1bcab7d188011dda9140016179b2dd5.nasl - Type : ACT_GATHER_INFO
2008-03-28 Name : The remote Ubuntu host is missing one or more security-related patches.
File : ubuntu_USN-595-1.nasl - Type : ACT_GATHER_INFO
2008-03-04 Name : The remote SuSE 10 host is missing a security-related patch.
File : suse_perl-Tk-5034.nasl - Type : ACT_GATHER_INFO
2008-03-04 Name : The remote openSUSE host is missing a security update.
File : suse_perl-Tk-5035.nasl - Type : ACT_GATHER_INFO
2008-02-29 Name : The remote CentOS host is missing one or more security updates.
File : centos_RHSA-2008-0146.nasl - Type : ACT_GATHER_INFO
2008-02-28 Name : The remote Red Hat host is missing one or more security updates.
File : redhat-RHSA-2008-0146.nasl - Type : ACT_GATHER_INFO
2008-02-14 Name : The remote Fedora host is missing a security update.
File : fedora_2008-1643.nasl - Type : ACT_GATHER_INFO
2008-02-11 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200802-01.nasl - Type : ACT_GATHER_INFO
2008-02-11 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1493.nasl - Type : ACT_GATHER_INFO
2008-02-05 Name : The remote Fedora host is missing a security update.
File : fedora_2008-1231.nasl - Type : ACT_GATHER_INFO
2008-02-05 Name : The remote Fedora host is missing a security update.
File : fedora_2008-1208.nasl - Type : ACT_GATHER_INFO
2008-02-01 Name : The remote openSUSE host is missing a security update.
File : suse_SDL_image-4956.nasl - Type : ACT_GATHER_INFO
2007-11-10 Name : The remote Ubuntu host is missing one or more security-related patches.
File : ubuntu_USN-342-1.nasl - Type : ACT_GATHER_INFO
2007-02-18 Name : The remote host is missing a vendor-supplied security patch
File : suse_SA_2006_052.nasl - Type : ACT_GATHER_INFO
2007-01-17 Name : The remote Fedora Core host is missing a security update.
File : fedora_2006-1024.nasl - Type : ACT_GATHER_INFO
2006-12-16 Name : The remote Mandrake Linux host is missing one or more security updates.
File : mandrake_MDKSA-2006-162.nasl - Type : ACT_GATHER_INFO
2006-09-22 Name : The remote Red Hat host is missing one or more security updates.
File : redhat-RHSA-2006-0669.nasl - Type : ACT_GATHER_INFO
2006-09-22 Name : The remote CentOS host is missing one or more security updates.
File : centos_RHSA-2006-0669.nasl - Type : ACT_GATHER_INFO
2006-09-14 Name : The remote FreeBSD host is missing one or more security-related updates.
File : freebsd_pkg_ea09c5df436211db81e1000e0c2e438a.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
1
Date Informations
2014-02-17 11:35:32
  • Multiple Updates
2013-05-11 00:44:38
  • Multiple Updates