Heap-based buffer overflow in the CalcMinMax function in coders/mat.c in ImageMagick before 6.9.4-0 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted mat file.
https://github.com/ImageMagick/ImageMagick/commit/b173a352397877775c51c9a0e9d59eb6ce24c455
https://github.com/ImageMagick/ImageMagick/commit/a6240a163cb787909703d9fc649cf861f60ddd7c
https://bugzilla.redhat.com/show_bug.cgi?id=1410510
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1545366
http://www.securityfocus.com/bid/95221
http://www.openwall.com/lists/oss-security/2016/12/26/9
http://lists.opensuse.org/opensuse-updates/2017-02/msg00031.html
http://lists.opensuse.org/opensuse-updates/2017-02/msg00028.html