Missing Release of Resource after Effective Lifetime
The ReadMATImage function in coders\mat.c in ImageMagick versions prior to 7.0.5-6 and ImageMagick6 prior to 6.9.8-5 has a memory leak vulnerability that can cause memory exhaustion via a crafted MAT file, related to incorrect ordering of a SetImageExtent call.
CWE-772 - Missing Release Of Resource After Effective Lifetime
'Missing release of resource after effective lifetime' is a weakness that occurs when software doesn't sufficiently release a resource (e.g. memory, CPU, disk space, etc.) after it is used. If not addressed, attackers can launch a denial of service attack (by allocating a resource and not releasing it).