Buffer overflow in Simple DirectMedia Layer - CVE-2019-12221
Published: July 22, 2019 / Updated: March 7, 2023
Vulnerability details
The vulnerability allows a remote attacker to crash the application.
The vulnerability exists due to a boundary error when processing images in the SDL_free_REAL() function at stdlib/SDL_malloc.c. A remote attacker can create a specially crafted image, trick the victim into opening it, trigger memory corruption and perform a denial of service (DoS) attack.
Affected software
Opensuse
SUSE Linux
Ubuntu
Fedora
sdl2_image (Alpine package)
libsdl-image1.2 (Ubuntu package)
SDL2_image
mingw-SDL2
How to mitigate CVE-2019-12221
libsdl-image1.2 (Ubuntu package) - addressed in versions 1.2.12-5+deb9u1ubuntu0.16.04.1, 1.2.12-8ubuntu0.1
SDL2_image - update to 2.0.5-2.fc29
mingw-SDL2 - update to 2.0.10-1.fc31