{"id":"UBUNTU-CVE-2026-35444","details":"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.","modified":"2026-05-20T16:25:37.369964981Z","published":"2026-04-06T22:16:00Z","upstream":["CVE-2026-35444"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-35444"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-35444"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/security/advisories/GHSA-gq8w-x74c-h6p7"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/commit/996bf12888925932daace576e09c3053410896f8"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/commit/a1a06276a51ca7e6e63908b200df8a278d8c5039"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/commit/678ac6a4c6021853485050926f45db08ba6aec48"}],"affected":[{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+dfsg-2","2.0.0+dfsg-3","2.0.0+dfsg-3build2","2.0.0+dfsg-3+deb8u1build0.14.04.1","2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-4ubuntu1","1.2.12-5","1.2.12-5build2","1.2.12-5+deb9u1build0.14.04.1","1.2.12-5+deb9u1ubuntu0.14.04.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.2.12-5+deb9u1ubuntu0.14.04.1~esm1","binary_name":"libsdl-image1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+dfsg-3build2","2.0.1+dfsg-1","2.0.1+dfsg-2","2.0.1+dfsg-2+deb9u1build0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.0.1+dfsg-2+deb9u1build0.16.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-5build2","1.2.12-5+deb9u1build0.16.04.1","1.2.12-5+deb9u1ubuntu0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl-image1.2","binary_version":"1.2.12-5+deb9u1ubuntu0.16.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1+dfsg-3","2.0.1+dfsg-4","2.0.2+dfsg1-1","2.0.3+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.0.3+dfsg1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-6","1.2.12-7","1.2.12-8","1.2.12-8ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.2.12-8ubuntu0.1","binary_name":"libsdl-image1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.5+dfsg1-1","2.0.5+dfsg1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.5+dfsg1-2","binary_name":"libsdl2-image-2.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-12"],"ecosystem_specific":{"binaries":[{"binary_version":"1.2.12-12","binary_name":"libsdl-image1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.5+dfsg1-2","2.0.5+dfsg1-3","2.0.5+dfsg1-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.0.5+dfsg1-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-12","1.2.12-13","1.2.12-13build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl-image1.2","binary_version":"1.2.12-13build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.3+dfsg-2","2.8.0+dfsg-1","2.8.1+dfsg-1","2.8.2+dfsg-1","2.8.2+dfsg-1build1","2.8.2+dfsg-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.8.2+dfsg-1build2"},{"binary_version":"2.8.2+dfsg-1build2","binary_name":"libsdl2-image-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-13build2","1.2.12-13build3","1.2.12-13build4"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl-image1.2","binary_version":"1.2.12-13build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.8+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.8.8+dfsg-1"},{"binary_version":"2.8.8+dfsg-1","binary_name":"libsdl2-image-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl3-image","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libsdl3-image?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.4+ds-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl3-image-tests","binary_version":"3.2.4+ds-1"},{"binary_name":"libsdl3-image0","binary_version":"3.2.4+ds-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-14"],"ecosystem_specific":{"binaries":[{"binary_version":"1.2.12-14","binary_name":"libsdl-image1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.8+dfsg-1","2.8.8+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.8.8+dfsg-2"},{"binary_name":"libsdl2-image-tests","binary_version":"2.8.8+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"libsdl3-image","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libsdl3-image?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.4+ds-1","3.4.0+ds-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl3-image-tests","binary_version":"3.4.0+ds-1"},{"binary_name":"libsdl3-image0","binary_version":"3.4.0+ds-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.12-14","1.2.12-14build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl-image1.2","binary_version":"1.2.12-14build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35444.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}