portage-ng / portage / media-libs / sdl-image / 1.2.12_p20220527-r1
portage-ng glsa
1 advisory reference media-libs/sdl-image · none place version 1.2.12_p20220527-r1 in a vulnerable range
▸ GLSA 200802-01 SDL_image: Two buffer overflow vulnerabilities this version unaffected normal remote 2008-02-06

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.

Announced
2008-02-06
Revised
2008-02-06
Access
remote
Bugs
#207933
Advisory
https://security.gentoo.org/glsa/200802-01

Affected packages

PackageArchVulnerableUnaffected
media-libs/sdl-image*< 1.2.6-r1>= 1.2.6-r1

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