The ReadMNGImage function in coders/png.c in GraphicsMagick 1.3.26 has an out-of-order CloseBlob call, resulting in a use-after-free via a crafted file. Upstream patch: http://hg.code.sf.net/p/graphicsmagick/code/rev/d0a76868ca37 Reproducer: https://github.com/asarubbo/poc/blob/master/00301-graphicsmagick-UAF-CloseBlob Reference: https://blogs.gentoo.org/ago/2017/07/12/graphicsmagick-use-after-free-in-closeblob-blob-c/
Created GraphicsMagick tracking bugs for this issue: Affects: epel-all [bug 1472217] Affects: fedora-all [bug 1472216]
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.