Description
An exploitable integer overflow vulnerability exists when creating a new RGB Surface in SDL 2.0.5. A specially crafted file can cause an integer overflow resulting in too little memory being allocated which can lead to a buffer overflow and potential code execution. An attacker can provide a specially crafted image file to trigger this vulnerability.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Talos | Simple Direct Media | Simple DirectMedia Layer 2.0.5 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libsdl2 | 2.0.6+dfsg1-4 | — |
| Debian 13 | libsdl2 | 2.0.6+dfsg1-4 | — |
| Debian 12 | libsdl2 | 2.0.6+dfsg1-4 | — |
| Debian 9 | libsdl2 | 2.0.5+dfsg1-2+deb9u2 | DLA-2803-1 |
| Debian 8 | libsdl2 | 2.0.2+dfsg1-6+deb8u2 | DLA-1714-2 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libsdl2 | 2.0.8+dfsg1-1ubuntu1.18.04.4 | USN-4143-1 |
| Ubuntu 16.04 LTS | libsdl2 | 2.0.4+dfsg1-2ubuntu2.16.04.2 | USN-4143-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 12 | SDL2 | 2.0.5-7.1 | openSUSE-SU-2017:2895-1, openSUSE-SU-2017:2893-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | SDL2 | 2.0.16-2.3 | openSUSE-SU-2025:15206-1, openSUSE-SU-2024:10607-1 |
Advisories 7
- USN-4143-1 SDL 2.0 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2025:15206-1 SDL2-2.32.8-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-2803-1 libsdl2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1714-2 libsdl2 - regression update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2017:2895-1 Security update for SDL2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10607-1 libSDL2-2_0-0-2.0.16-2.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2017:2893-1 Security update for SDL2 SUSE / openSUSE Security Updates · May 7, 2025
References
- 101215 vdb-entry
- USN-4143-1 vendor-advisory
- [debian-lts-announce] 20211031 [SECURITY] [DLA 2803-1] libsdl2 security update mailing-list
- https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0395