CVE-2026-35444SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libsdl2-image | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 26.10 | libsdl3-image | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 26.10 | sdl-image1.2 | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 26.04 | libsdl2-image | Under investigation | UBUNTU-CVE-2026-35444 | |
| Ubuntu 26.04 | libsdl3-image | Under investigation | UBUNTU-CVE-2026-35444 | |
| Ubuntu 26.04 | sdl-image1.2 | Under investigation | UBUNTU-CVE-2026-35444 | |
| Ubuntu 25.10 | libsdl2-image | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-35444 | |
| Ubuntu 25.10 | libsdl3-image | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-35444 | |
| Ubuntu 25.10 | sdl-image1.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-35444 | |
| Ubuntu 24.04 | libsdl2-image | Under investigation | UBUNTU-CVE-2026-35444 | |
| Ubuntu 24.04 | sdl-image1.2 | Under investigation | UBUNTU-CVE-2026-35444 | |
| Ubuntu 22.04 | libsdl2-image | Under investigation | UBUNTU-CVE-2026-35444 | |
| Ubuntu 22.04 | sdl-image1.2 | Under investigation | UBUNTU-CVE-2026-35444 | |
| Ubuntu 20.04 | libsdl2-image | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 20.04 | sdl-image1.2 | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 18.04 | libsdl2-image | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 18.04 | sdl-image1.2 | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 16.04 | libsdl2-image | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 16.04 | sdl-image1.2 | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 14.04 | libsdl2-image | Fix pending | UBUNTU-CVE-2026-35444 | |
| Ubuntu 14.04 | sdl-image1.2 | Fix pending | UBUNTU-CVE-2026-35444 | |
| Debian 14 | libsdl2-image | Fixed | 2.8.10+dfsg-1 | DEBIAN-CVE-2026-35444 |
| Debian 14 | libsdl3-image | Fixed | 3.4.2+ds-1 | DEBIAN-CVE-2026-35444 |
| Debian 14 | sdl-image1.2 | Fix pending | DEBIAN-CVE-2026-35444 | |
| Debian 13 | libsdl2-image | Fixed | 2.8.8+dfsg-1+deb13u1 | DEBIAN-CVE-2026-35444 |
| Debian 13 | libsdl3-image | Fixed | 3.2.4+ds-1+deb13u1 | DEBIAN-CVE-2026-35444 |
| Debian 13 | sdl-image1.2 | Fix pending | DEBIAN-CVE-2026-35444 | |
| Debian 12 | libsdl2-image | Fix pending | DEBIAN-CVE-2026-35444 | |
| Debian 12 | sdl-image1.2 | Fix pending | DEBIAN-CVE-2026-35444 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libsdl-org SDL_image: affected: < 996bf12888925932daace576e09c3053410896f8
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.