A flaw was found in ImageMagick in MagickCore/visual-effects.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior.
In MagickCore/visual-effects.c, routine ImplodeImage(), there are fives lines of code which could trigger a divide-by-zero if a crafted image is processed by ImageMagick which sets the image's rows, columns, or several other attributes to 0. These division operations were replaced with the PerceptibleReciprocal() routine in the upstream patch to avoid the problem.
Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/329dd528ab79531d884c0ba131e97d43f872ab5d
This flaw is out of support scope for Red Hat Enterprise Linux 6 and 7. To learn more about Red Hat Enterprise Linux support scope, please see https://access.redhat.com/support/policy/updates/errata/ .
Created ImageMagick tracking bugs for this issue:
Affects: epel-8 [bug 1929932]
Affects: fedora-all [bug 1929933]
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):