Affected versions
Ubuntu20.04:LTS/libstb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/libstb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/libstb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu25.10/libstb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/libstb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/libstb
- Affected versions
- *
- Fixed version
- Not reported
Description
stb_image is a single file MIT licensed library for processing images. A crafted image file may trigger out of bounds memcpy read in stbi__gif_load_next. This happens because two_back points to a memory address lower than the start of the buffer out. This issue may be used to leak internal memory allocation information.
Links
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L6817
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_image.h#L7021-L7022
- https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/
- https://ubuntu.com/security/CVE-2023-45661
- https://www.cve.org/CVERecord?id=CVE-2023-45661

