Bugzilla – Bug 1181836
VUL-0: CVE-2021-20176: ImageMagick: processing crafted file leads to division by zero
Last modified: 2022-09-08 11:20:02 UTC
CVE-2021-20176 A flaw was found in ImageMagick in MagickCore/gem.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. This flaw affects ImageMagick versions prior to 7.0.10-56. References: https://github.com/ImageMagick/ImageMagick/issues/3077 References: https://bugzilla.redhat.com/show_bug.cgi?id=1916610 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-20176
_Affected codestreams_: * SUSE:SLE-12:Update * SUSE:SLE-15:Update * SUSE:SLE-15-SP2:Update _Upstream patches_: * ImageMagick: - https://github.com/ImageMagick/ImageMagick/commit/fbd9a963db1ae5551c45dc8af57db0abd7695774.patch - https://github.com/ImageMagick/ImageMagick/commit/9c06496defe3e28e90da780f09baeb40f7d496ae.patch * ImageMagick6: - https://github.com/ImageMagick/ImageMagick6/commit/90255f0834eead08d59f46b0bda7b1580451cc0f.patch - https://github.com/ImageMagick/ImageMagick6/commit/d348259b3bffa12d6aeb308fffd6e572c4d62786.patch
There's no testcase.
Submitted for 15,12,11/ImageMagick.
Hi Petr, can you please also check SUSE:SLE-15-SP2:Update?
Two CVEs have been assigned to the same vulnerability (CVE-2021-20176, CVE-2021-20242) as explained here [0]. [0] https://github.com/ImageMagick/ImageMagick/pull/3192#issuecomment-779925131
SUSE-SU-2021:0528-1: An update that fixes two vulnerabilities is now available. Category: security (moderate) Bug References: 1179322,1181836 CVE References: CVE-2020-27767,CVE-2021-20176 JIRA References: Sources used: SUSE Linux Enterprise Workstation Extension 12-SP5 (src): ImageMagick-6.8.8.1-71.159.2 SUSE Linux Enterprise Software Development Kit 12-SP5 (src): ImageMagick-6.8.8.1-71.159.2 SUSE Linux Enterprise Server 12-SP5 (src): ImageMagick-6.8.8.1-71.159.2 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
*** Bug 1182326 has been marked as a duplicate of this bug. ***
Hi Petr, I think we have a missing submission for SUSE:SLE-15-SP2:Update.
This is now submitted also for 15sp2/ImageMagick.
SUSE-SU-2021:3996-1: An update that fixes one vulnerability is now available. Category: security (moderate) Bug References: 1181836 CVE References: CVE-2021-20176 JIRA References: Sources used: SUSE Linux Enterprise Module for Development Tools 15-SP3 (src): ImageMagick-7.0.7.34-10.18.1 SUSE Linux Enterprise Module for Development Tools 15-SP2 (src): ImageMagick-7.0.7.34-10.18.1 SUSE Linux Enterprise Module for Desktop Applications 15-SP3 (src): ImageMagick-7.0.7.34-10.18.1 SUSE Linux Enterprise Module for Desktop Applications 15-SP2 (src): ImageMagick-7.0.7.34-10.18.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
openSUSE-SU-2021:3996-1: An update that fixes one vulnerability is now available. Category: security (moderate) Bug References: 1181836 CVE References: CVE-2021-20176 JIRA References: Sources used: openSUSE Leap 15.3 (src): ImageMagick-7.0.7.34-10.18.1
openSUSE-SU-2021:1583-1: An update that fixes one vulnerability is now available. Category: security (moderate) Bug References: 1181836 CVE References: CVE-2021-20176 JIRA References: Sources used: openSUSE Leap 15.2 (src): ImageMagick-7.0.7.34-lp152.12.18.1