Stack-based buffer overflow in Simple DirectMedia Layer - CVE-2017-2887

 

Stack-based buffer overflow in Simple DirectMedia Layer - CVE-2017-2887

Published: October 10, 2017 / Updated: October 11, 2017


Vulnerability identifier: #VU8789
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-2887
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists in the XCF property handling function of Simple DirectMedia Layer SDL_image due to stack-based buffer overflow. A remote attacker can send a specially crafted xcf file, trick the victim into opening it, trigger memory corruption and execute arbitrary code with privileges of the current user.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Simple DirectMedia Layer
Debian Linux
Fedora
sdl2_image (Alpine package)
SDL2_gfx
SDL2_image
SDL2_mixer
mingw-SDL2_image
mingw-SDL2_mixer
SDL2
mingw-SDL2

How to mitigate CVE-2017-2887

Update to version 2.0.6.

sdl2_image (Alpine package) - update to 2.0.1-r2
SDL2_gfx - update to 1.0.3-1.el7
SDL2_image - addressed in versions 2.0.1-8.fc25, 2.0.1-8.fc26, 2.0.1-8.fc27, 2.0.3-1.el7, 2.0.4-1.el7, 2.0.4-1.fc28, 2.0.4-1.fc29
SDL2_mixer - update to 2.0.2-2.el7
mingw-SDL2_image - addressed in versions 2.0.4-1.el7, 2.0.4-1.fc28, 2.0.4-1.fc29
mingw-SDL2_mixer - update to 2.0.4-1.el7
SDL2 - update to 2.0.8-5.el7
mingw-SDL2 - update to 2.0.9-1.el7

External References

Related Security Bulletins