Description
An exploitable heap-based buffer overflow vulnerability exists when loading a PCX file in SDL2_image, version 2.0.4. A missing error handler 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 |
|---|---|---|---|
| — | Simple DirectMedia | Simple DirectMedia Layer SDL2_image 2.0.4 | — |
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-image | 2.0.5+dfsg1-1 | — |
| Debian 14 | sdl-image1.2 | 1.2.12-11 | — |
| Debian 13 | libsdl2-image | 2.0.5+dfsg1-1 | — |
| Debian 13 | sdl-image1.2 | 1.2.12-11 | — |
| Debian 12 | libsdl2-image | 2.0.5+dfsg1-1 | — |
| Debian 12 | sdl-image1.2 | 1.2.12-11 | — |
| Debian 8 | libsdl2-image | 2.0.0+dfsg-3+deb8u2 | DLA-1861-1 |
| Debian 8 | sdl-image1.2 | 1.2.12-5+deb8u2 | DLA-1865-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libsdl2-image | No fix yet | — |
| Ubuntu 18.04 LTS | sdl-image1.2 | 1.2.12-8ubuntu0.1 | USN-4238-1 |
| Ubuntu 16.04 LTS | libsdl2-image | No fix yet | — |
| Ubuntu 16.04 LTS | sdl-image1.2 | 1.2.12-5+deb9u1ubuntu0.16.04.1 | USN-4238-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | libsdl2-image | 2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1 | — |
| Ubuntu Pro 14.04 LTS | sdl-image1.2 | 1.2.12-5+deb9u1ubuntu0.14.04.1~esm1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | SDL2_image | 2.0.5-bp151.4.3.1 | openSUSE-SU-2019:2108-1 |
| SUSE Package Hub 15 | SDL2_image | 2.0.5-bp151.4.3.1 | openSUSE-SU-2019:2108-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.1 | SDL2_image | 2.0.5-lp151.2.5.1 | openSUSE-SU-2019:2070-1 |
| openSUSE Leap 15.0 | SDL2_image | 2.0.5-lp151.2.5.1 | openSUSE-SU-2019:2070-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.10 | sdl2_image | 2.0.5-r0 | — |
| Alpine v3.9 | sdl2_image | 2.0.5-r0 | — |
| Alpine v3.8 | sdl2_image | 2.0.5-r0 | — |
| Alpine v3.7 | sdl2_image | 2.0.5-r0 | — |
Advisories 5
- USN-4238-1 sdl-image1.2 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-1865-1 sdl-image1.2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1861-1 libsdl2-image - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2019:2108-1 Security update for SDL2_image SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:2070-1 Security update for SDL2_image SUSE / openSUSE Security Updates · Feb 4, 2026
References
- [debian-lts-announce] 20190727 [SECURITY] [DLA 1865-1] sdl-image1.2 security update mailing-list
- openSUSE-SU-2019:2070 vendor-advisory
- openSUSE-SU-2019:2108 vendor-advisory
- USN-4238-1 vendor-advisory
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0820