{"id":"CVE-2026-117557","summary":"SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader","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-11-10T20:42:19.689476859Z","published":"2026-10-27T13:07:52.419Z","related":["SUSE-SU-2026:5158-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117557.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-125"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117557.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-117557"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/sdl-image-through-3.4.8-and-2.8.12-stack-out-of-bounds-read-in-ilbm-loader"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_image/issues/769"},{"type":"FIX","url":"https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292"},{"type":"FIX","url":"https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996"},{"type":"PACKAGE","url":"https://github.com/libsdl-org/SDL_image"},{"type":"ARTICLE","url":"https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240"},{"type":"EVIDENCE","url":"https://hackmd.io/@haindpwn/sdl-image-lbm-ham-oob-read"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libsdl-org/sdl_image","events":[{"introduced":"0"},{"fixed":"5cfbe85f3a783417eec4d5aa0660b40c2cff5292"},{"fixed":"9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"2.8.12"}]},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"3.0.0"},{"last_affected":"3.4.8"}]},{"range":[{"fixed":"5cfbe85f3a783417eec4d5aa0660b40c2cff5292"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["release-3.4.8","release-3.4.6","release-3.4.4","release-3.4.2","release-3.4.0","prerelease-3.3.4","prerelease-3.3.2","release-3.2.0","prerelease-3.1.1","preview-3.1.0","release-2.6.0","prerelease-2.5.3","prerelease-2.5.2","candidate-2.5.1","release-2.0.5","release-2.0.4","release-2.0.3","release-2.0.2","release-2.0.1","release-2.0.0","release-1.2.12","release-1.2.11","release-1.2.10","release-1.2.9","release-1.2.8","release-1.2.7","release-1.2.6","release-1.2.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-117557.json","vanir_signatures":[{"digest":{"threshold":0.9,"line_hashes":["221325075238811645849850218614653359925","295361084023939563575399977817665133635","25655957711600170602952390494230673395","188204725224181800712090777317586782131"]},"id":"CVE-2026-117557-58338bf1","signature_type":"Line","signature_version":"v1","source":"https://github.com/libsdl-org/sdl_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292","target":{"file":"src/IMG_lbm.c"},"deprecated":false},{"digest":{"function_hash":"74400280707604759139102640632097563325","length":6544},"id":"CVE-2026-117557-87d43d66","signature_type":"Function","signature_version":"v1","source":"https://github.com/libsdl-org/sdl_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996","target":{"file":"src/IMG_lbm.c","function":"IMG_LoadLBM_IO"},"deprecated":false},{"digest":{"length":6544,"function_hash":"74400280707604759139102640632097563325"},"id":"CVE-2026-117557-93b9d5fc","signature_type":"Function","signature_version":"v1","source":"https://github.com/libsdl-org/sdl_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292","target":{"file":"src/IMG_lbm.c","function":"IMG_LoadLBM_IO"},"deprecated":false},{"source":"https://github.com/libsdl-org/sdl_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996","target":{"file":"src/IMG_lbm.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["221325075238811645849850218614653359925","295361084023939563575399977817665133635","25655957711600170602952390494230673395","188204725224181800712090777317586782131"]},"id":"CVE-2026-117557-caf5a5e6","signature_type":"Line","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-06T01:07:27Z"}}],"schema_version":"1.9.2","severity":[{"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"}]}