Critical Buffer Over-read Vulnerability in SDL and SDL2 Packages
Summary
ALPINE-CVE-2019-7572: SDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has a buffer over-read in IMA_ADPCM_nibble in audio/SDL_wave.c. Affects sdl versions < 1.2.15-r11. Fixed in 1.2.15-r11. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
SDL (Simple DirectMedia Layer) is a cross-platform development library designed to provide low-level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is widely used in game development and multimedia applications. The vulnerability affects versions of SDL up to 1.2.15 and SDL2 up to 2.0.9, making it crucial for developers to address this issue to maintain the integrity and security of their applications.
Vulnerability Detail
The vulnerability identified as CVE-2019-7572 is a buffer over-read in the IMA_ADPCM_nibble function located in audio/SDL_wave.c. This flaw can lead to potential information leakage and may allow an attacker to exploit the application, resulting in unauthorized access to sensitive data. The vulnerability has a CVSS score of 8.8, indicating a high severity level that necessitates immediate attention from developers and system administrators.
How To Fix
Minimum fixed version
1.2.15-r11
This is the first release that contains the fix.
sudo apk add --upgrade sdl
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate patching is not feasible, consider implementing input validation to ensure that data processed by the SDL functions is sanitized and does not lead to buffer over-reads. Additionally, review the application code to identify and mitigate any potential exploitation paths.
Conclusion
The buffer over-read vulnerability in SDL and SDL2 packages poses a significant risk to applications utilizing these libraries. It is essential for developers to update to the patched versions to mitigate potential security threats. Regular monitoring and vulnerability assessments using tools like Vulert can further enhance application security.
See every vulnerability recorded for sdl →
FAQ
CVE-2019-7572 is a buffer over-read vulnerability found in SDL and SDL2 libraries, which can lead to information leakage.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Exploitation of this vulnerability can lead to unauthorized access to sensitive data, potentially compromising the security of the application.
Use the command apk add --update sdl=1.2.15-r11 for SDL and apk add --update sdl2=2.0.10-r0 for SDL2 to update to the patched versions.
Vulert monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json, helping developers maintain secure applications.
References
Related vulnerabilities
Recent vulnerabilities recorded for sdl.