Resource Management Errors
Use-after-free vulnerability in the GIFReadNextExtension function in lib/pngxtern/gif/gifread.c in OptiPNG 0.6.2 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a crafted GIF image that causes the realloc function to return a new pointer, which triggers memory corruption when the old pointer is accessed.
CWE-399 - Resource Management Errors
Resource management errors is not a weakness in and of itself, rather it is a category of weaknesses related to improper management of system resources. If not addressed, the weaknesses in this category can lead to unexpected software behavior, loss of access, file modification, sensitive information disclosure, system crash, denial of service, and code execution.