Stack out-of-bounds read in SDL_image ILBM loader
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
SDL_image through 2.8.12 and from 3.0.0 through 3.4.8 is affected. The ILBM loader in IMG_LoadLBM_IO() skips bitplane count validation when HAM mode is set, which leads to an out-of-bounds read (CWE-125). If a user opens a crafted ILBM file with more than 8 HAM bitplanes, the read goes past the colormap stack array, causing crashes or disclosing stack memory.
Written with Claude Haiku 5.5 from the sources below · 2026-11-04
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| libsdl-org | SDL_image | up to 2.8.12; 3.0.0 – 3.4.8 | — | No fix listed | CNA |
- SDL_image Vendorlibsdl-org Affected up to 2.8.12; 3.0.0 – 3.4.8 Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for SDL_image.
Written with Claude Haiku 5.5 from the sources below · 2026-11-04
Vendor assessments
Timeline
- 2026-10-27 Threatist record created from CVE-2026-117557
- 2026-10-27 Alias added: GHSA-m3v7-j67w-q2pr
- 2026-10-28 Priority changed: MEDIUM → LOW
- 2026-10-29 Affected versions changed · Red Hat
- 2026-10-29 CVSS score added · Red Hat
- 2026-11-04 CISA SSVC decision points changed
- 2026-11-04 Priority changed: LOW → MEDIUM
References
Patch 2
More libsdl-org vulnerabilities
- TI-2026-85474 Stack-based buffer overflow in SDL_mixer AIFF decoder CVSS 4.0HIGH 8.5
- TI-2026-85473 Stack-based buffer overflow in SDL_mixer WAV decoder CVSS 4.0HIGH 8.5
Sources
- CVE-2026-117557 · CVE Program
- CVE-2026-117557 · NVD
- FIRST EPSS
- GHSA-m3v7-j67w-q2pr · GitHub Advisory Database · CC BY 4.0
- CVE-2026-117557 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences