OESA-2023-1866
Dashboard / Vulnerabilities / OESA-2023-1866
Summary: stb security update
Details: Single-file public domain libraries for C/C++. Security Fix(es): 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.(CVE-2023-45661) stb_image is a single file MIT licensed library for processing images. A crafted image file can trigger `stbi__load_gif_main_outofmem` attempt to double-free the out variable. This happens in `stbi__load_gif_main` because when the `layers * stride` value is zero the behavior is implementation defined, but common that realloc frees the old memory and returns null pointer. Since it attempts to double-free the memory a few lines below the first “free”, the issue can be potentially exploited only in a multi-threaded environment. In the worst case this may lead to code execution.(CVE-2023-45664)
References: https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1866, https://nvd.nist.gov/vuln/detail/CVE-2023-45661, https://nvd.nist.gov/vuln/detail/CVE-2023-45664
Affected packages
Package
Name: stb
Purl: pkg:rpm/openEuler/stb&distro=openEuler-22.03-LTS-SP2
Affected ranges
Type: ECOSYSTEM
Events:
