Description
SDL_image through 3.4.8 and through 2.8.12 contains a stack out-of-bounds read vulnerability in IMG_LoadLBM_IO() in src/IMG_lbm.c that skips bitplane count validation when HAM mode is set. Attackers can supply a crafted ILBM file with more than 8 HAM bitplanes to read past the colormap stack array, causing crashes or disclosing stack memory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libsdl-org | SDL_image | ≤ 2.8.12, 3.0.0 – ≤ 3.4.8 | — |
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 | sdl-image1.2 +2 | No fix yet | — |
| Debian 13 | sdl-image1.2 +2 | No fix yet | — |
| Debian 12 | sdl-image1.2 +1 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libsdl2-image +1 | No fix yet | — |
| Ubuntu 26.04 LTS | libsdl2-image +1 | No fix yet | — |
| Ubuntu 24.04 LTS | libsdl2-image | No fix yet | — |
| Ubuntu 22.04 LTS | libsdl2-image | No fix yet | — |
| Ubuntu 20.04 LTS | libsdl2-image | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libsdl2-image | No fix yet | — |
| Ubuntu 16.04 LTS | libsdl2-image | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libsdl2-image | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | SDL2_image | 2.0.5-150300.3.3.1 | SUSE-SU-2026:5158-1 |
Advisories 1
- SUSE-SU-2026:5158-1 Security update for SDL2_image SUSE / openSUSE Security Updates · Nov 10, 2026
References
- GitHub Issue #769 issue-tracking
- https://github.com/libsdl-org/SDL_image product
- https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292 patch
- https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996 patch
- https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240 technical-description
- VulnCheck Advisory: SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader third-party-advisory