A use-after-free in RenderFreetype in MagickCore/annotate.c in ImageMagick 7.0.7-4 Q16 allows attackers to crash the application via a crafted font file, because the FT_Done_Glyph function (from FreeType 2) is called at an incorrect place in the ImageMagick code.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Link | Tags |
---|---|
https://www.debian.org/security/2017/dsa-4040 | vendor advisory |
https://usn.ubuntu.com/3681-1/ | vendor advisory |
https://www.debian.org/security/2017/dsa-4032 | vendor advisory |
https://github.com/ImageMagick/ImageMagick/issues/781 | issue tracking third party advisory patch |