SDL_Image GIF file buffer overflow

sdlimage-gif-bo (39865) The risk level is classified as HighHigh Risk

Description:

SDL_Image is vulnerable to a buffer overflow, caused by improper bounds checking by the LWZReadByte() function in IMG_gif.c. By sending specially-crafted GIF files, a remote attacker could overflow a buffer and possibly execute arbitrary code on the system or cause the application to crash.

Platforms Affected:

  • Canonical, Ubuntu 6.06 LTS
  • Canonical, Ubuntu 6.10
  • Canonical, Ubuntu 7.04
  • Canonical, Ubuntu 7.10
  • Debian, Debian Linux 3.1
  • Debian, Debian Linux 4.0
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 2007 X86_64
  • MandrakeSoft, Mandrake Linux 2007
  • MandrakeSoft, Mandrake Linux 2007.1
  • MandrakeSoft, Mandrake Linux 2007.1 X86_64
  • MandrakeSoft, Mandrake Linux 2008.0
  • MandrakeSoft, Mandrake Linux 2008.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • SDL_image, SDL_image 1.2.6 and prior

Remedy:

Upgrade to the latest version of SDL_Image (1.2.7 or later), available from the SDL_Image Web site. See References.

Consequences:

Gain Access

References:

  • BugTraq Mailing List, Wed Jan 23 2008 - 02:20:30 CST , SDL_Image 1.2.6 and prior GIF handling buffer overflow at http://archives.neohapsis.com/archives/bugtraq/2008-01/0333.html.
  • SDL_Image Web site, SDL_Image at http://www.libsdl.org/projects/SDL_image/.
  • BID-27417: SDL_image Invalid GIF File LWZ Minimum Code Size Remote Buffer Overflow Vulnerability
  • CVE-2007-6697: Buffer overflow in the LWZReadByte function in IMG_gif.c in SDL_image before 1.2.7 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted GIF file, a similar issue to CVE-2006-4484. NOTE: some of these details are obtained from third party information.
  • DSA-1493: sdl-image1.2 -- buffer overflows
  • FrSIRT/ADV-2008-0266: SDL_image LWZReadByte() and IMG_LoadLBM_RW() Buffer Overflows
  • GLSA-200802-01: SDL_image: Two buffer overflow vulnerabilities
  • MDVSA-2008:040: Updated SDL_image packages fix vulnerabilities
  • SA28640: SDL_image Two Buffer Overflow Vulnerabilities
  • USN-595-1: SDL_image vulnerabilities

Reported:

Jan 23, 2008

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 (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.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page