{"id":"UBUNTU-CVE-2026-117557","details":"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.","modified":"2026-10-28T20:17:46.297225539Z","published":"2026-10-27T14:16:00Z","upstream":["CVE-2026-117557"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-117557"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-117557"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/issues/769"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/sdl-image-through-3.4.8-and-2.8.12-stack-out-of-bounds-read-in-ilbm-loader"}],"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-117557.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-117557.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_version":"2.0.3+dfsg1-1","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-117557.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-117557.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-117557.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-117557.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/libsdl2-image?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.8+dfsg-2","2.8.12+dfsg-1","2.8.12+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.8.12+dfsg-2"},{"binary_name":"libsdl2-image-tests","binary_version":"2.8.12+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-117557.json"}},{"package":{"name":"libsdl3-image","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/libsdl3-image?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0+ds-1","3.4.4+ds-1","3.4.4+ds-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl3-image-tests","binary_version":"3.4.4+ds-2"},{"binary_name":"libsdl3-image0","binary_version":"3.4.4+ds-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-117557.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_version":"2.8.8+dfsg-2","binary_name":"libsdl2-image-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-117557.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_version":"3.4.0+ds-1","binary_name":"libsdl3-image-tests"},{"binary_version":"3.4.0+ds-1","binary_name":"libsdl3-image0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-117557.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}