CVE-2026-35444 SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
SDL_image is a library to load images of various formats as SDL surfaces. In do_layer_surface() in src/IMG_xcf.c, pixel index values from decoded XCF tile data are used directly as colormap indices without validating them against the colormap size (cm_num). A crafted .xcf file with a small colormap and out-of-range pixel indices causes heap out-of-bounds reads of up to 762 bytes past the colormap allocation. Both IMAGE_INDEXED code paths are affected (bpp=1 and bpp=2). The leaked heap bytes are written into the output surface pixel data, making them potentially observable in the rendered image. This vulnerability is fixed with commit 996bf12888925932daace576e09c3053410896f8.
Upgrade path
20 packages: 5 fixed, 14 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libsdl2-image(Debian 12) | = 2.6.3+dfsg-1; = 2.6.3+dfsg-2; = 2.8.0+dfsg-1; = 2.8.1+dfsg-1 +11 more | No fix listed | No fix yet |
| debian/sdl-image1.2(Debian 12) | = 1.2.12-13; = 1.2.12-14; All versions | No fix listed | No fix yet |
| debian/sdl-image1.2(Debian 13) | = 1.2.12-14; All versions | No fix listed | No fix yet |
| debian/sdl-image1.2(Debian 14) | = 1.2.12-14; All versions | No fix listed | No fix yet |
| ubuntu/libsdl2-image(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsdl2-image(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsdl2-image(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsdl2-image(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/libsdl3-image(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsdl3-image(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/sdl-image1.2(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/sdl-image1.2(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/sdl-image1.2(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/sdl-image1.2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/libsdl2-image(Debian 13) | < 2.8.8+dfsg-1+deb13u1; = 2.8.8+dfsg-1 | 2.8.8+dfsg-1+deb13u1 | Fixed |
| debian/libsdl2-image(Debian 14) | < 2.8.10+dfsg-1; = 2.8.8+dfsg-1; = 2.8.8+dfsg-2 | 2.8.10+dfsg-1 | Fixed |
| debian/libsdl3-image(Debian 13) | < 3.2.4+ds-1+deb13u1; = 3.2.4+ds-1 | 3.2.4+ds-1+deb13u1 | Fixed |
| debian/libsdl3-image(Debian 14) | < 3.4.2+ds-1; = 3.2.4+ds-1; = 3.2.6+ds-1; = 3.3.4+ds-1 +2 more | 3.4.2+ds-1 | Fixed |
| libsdl sdl image | < 2026-04-02 | 2026-04-02 | Fixed |
| libsdl-org SDL_image | = < 996bf12888925932daace576e09c3053410896f8 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libsdl-org SDL_image | = < 996bf12888925932daace576e09c3053410896f8 | No fix listed |
| debian/libsdl2-image(Debian:12) | All versions | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.6.3+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.6.3+dfsg-2 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.0+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.1+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.10+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.12+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.12+dfsg-2 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.2+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.4+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.5+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.6+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.6+dfsg-2 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.8+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:12) | = 2.8.8+dfsg-2 | No fix listed |
| debian/libsdl2-image(Debian:13) | < 2.8.8+dfsg-1+deb13u1 | 2.8.8+dfsg-1+deb13u1 |
| debian/libsdl2-image(Debian:13) | = 2.8.8+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:14) | < 2.8.10+dfsg-1 | 2.8.10+dfsg-1 |
| debian/libsdl2-image(Debian:14) | = 2.8.8+dfsg-1 | No fix listed |
| debian/libsdl2-image(Debian:14) | = 2.8.8+dfsg-2 | No fix listed |
| debian/libsdl3-image(Debian:13) | < 3.2.4+ds-1+deb13u1 | 3.2.4+ds-1+deb13u1 |
| debian/libsdl3-image(Debian:13) | = 3.2.4+ds-1 | No fix listed |
| debian/libsdl3-image(Debian:14) | < 3.4.2+ds-1 | 3.4.2+ds-1 |
| debian/libsdl3-image(Debian:14) | = 3.2.4+ds-1 | No fix listed |
Show 22 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libsdl3-image(Debian:14) | = 3.2.6+ds-1 | No fix listed |
| debian/libsdl3-image(Debian:14) | = 3.3.4+ds-1 | No fix listed |
| debian/libsdl3-image(Debian:14) | = 3.3.4+ds-2 | No fix listed |
| debian/libsdl3-image(Debian:14) | = 3.4.0+ds-1 | No fix listed |
| debian/sdl-image1.2(Debian:12) | All versions | No fix listed |
| debian/sdl-image1.2(Debian:12) | = 1.2.12-13 | No fix listed |
| debian/sdl-image1.2(Debian:12) | = 1.2.12-14 | No fix listed |
| debian/sdl-image1.2(Debian:13) | All versions | No fix listed |
| debian/sdl-image1.2(Debian:13) | = 1.2.12-14 | No fix listed |
| debian/sdl-image1.2(Debian:14) | All versions | No fix listed |
| debian/sdl-image1.2(Debian:14) | = 1.2.12-14 | No fix listed |
| ubuntu/libsdl2-image(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/sdl-image1.2(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libsdl2-image(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/sdl-image1.2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libsdl2-image(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libsdl3-image(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/sdl-image1.2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libsdl2-image(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/libsdl3-image(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/sdl-image1.2(Ubuntu:26.10) | All versions | No fix listed |
| libsdl sdl image | < 2026-04-02 | 2026-04-02 |
References
- https://github.com/libsdl-org/SDL_image/security/advisories/GHSA-gq8w-x74c-h6p7 patch vendor-advisory
- Debian Security Tracker CVE-2026-35444 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking