CVE-2023-45666Double Free in STB Image.h

CWE-415Double Free4 documents4 sources
Severity
9.8CRITICALNVD
CNA7.3
EPSS
0.2%
top 61.16%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 21

Description

stb_image is a single file MIT licensed library for processing images. It may look like `stbi__load_gif_main` doesn’t give guarantees about the content of output value `*delays` upon failure. Although it sets `*delays` to zero at the beginning, it doesn’t do it in case the image is not recognized as GIF and a call to `stbi__load_gif_main_outofmem` only frees possibly allocated memory in `*delays` without resetting it to zero. Thus it would be fair to say the caller of `stbi__load_gif_main` is re

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages2 packages

CVEListV5nothings/stb2.28

🔴Vulnerability Details

2
OSV
CVE-2023-45666: stb_image is a single file MIT licensed library for processing images2023-10-21
CVEList
Possible double-free or memory leak in stbi__load_gif_main in stb_image2023-10-20

📋Vendor Advisories

1
Debian
CVE-2023-45666: libstb - stb_image is a single file MIT licensed library for processing images. It may l...2023
CVE-2023-45666 — Double Free in Nothings STB Image.h | cvebase