Use After Free
ImageMagick before 7.0.8-55 and ImageMagick6 before 6.9.10-55 has a use-after-free in DestroyStringInfo in "MagickCore/string.c" because the error manager is mishandled in "coders/jpeg.c".
CWE-416 - Use After Free
Use-after-free (UaF) vulnerability occurs when the application is using a pointer to memory that has been freed. Any attempt to read/write to a buffer after it is de-allocated allows memory corruption, sensitive information exposure, and can potentially lead to arbitrary code execution.