Affected versions
Ubuntu16.04:LTS/libsdl2-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu18.04:LTS/libsdl2-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/libsdl2-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/libsdl2-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/libsdl2-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/libsdl2-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/libsdl3-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/libsdl2-image
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/libsdl3-image
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
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.
Links
- https://github.com/libsdl-org/SDL_image
- https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240
- https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292
- https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996
- https://github.com/libsdl-org/SDL_image/issues/769
- https://ubuntu.com/security/CVE-2026-117557
- https://www.cve.org/CVERecord?id=CVE-2026-117557
- https://www.vulncheck.com/advisories/sdl-image-through-3.4.8-and-2.8.12-stack-out-of-bounds-read-in-ilbm-loader

