Bug 1182337 (CVE-2021-20246) - VUL-0: CVE-2021-20246: ImageMagick: Division by zero in ScaleResampleFilter in MagickCore/resample.c
Summary: VUL-0: CVE-2021-20246: ImageMagick: Division by zero in ScaleResampleFilter i...
Status: RESOLVED FIXED
Alias: CVE-2021-20246
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/277984/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-20246:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-16 17:09 UTC by Gianluca Gabrielli
Modified: 2024-05-22 14:37 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Gabrielli 2021-02-16 17:09:09 UTC
CVE-2021-20246

A flaw was found in ImageMagick in MagickCore/resample.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-62.

Upstream issue:

https://github.com/ImageMagick/ImageMagick/issues/3195

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1928941
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-20246
Comment 1 Gianluca Gabrielli 2021-02-16 17:10:38 UTC
Affected codestreams:

 * SUSE:SLE-11:Update
 * SUSE:SLE-12:Update
 * SUSE:SLE-15:Update
 * SUSE:SLE-15-SP2:Update

Upstream patches:

 * ImageMagick:
   - https://github.com/ImageMagick/ImageMagick/commit/8d25d94a363b104acd6ff23df7470aeedb806c51.patch

 * ImageMagick6:
   - https://github.com/ImageMagick/ImageMagick6/commit/f3190d4a6e6e8556575c84b5d976f77d111caa74.patch
Comment 3 Petr Gajdos 2021-02-23 08:26:58 UTC
There is no testcase.
Comment 4 Petr Gajdos 2021-02-23 09:39:47 UTC
Will submit for 15,12,11/ImageMagick.
Comment 5 Petr Gajdos 2021-02-23 11:29:10 UTC
Will submit for 15sp2,15,12,11/ImageMagick.
Comment 6 Petr Gajdos 2021-02-23 12:14:09 UTC
I believe all fixed.
Comment 8 Swamp Workflow Management 2021-02-25 17:17:46 UTC
SUSE-SU-2021:0600-1: An update that fixes three vulnerabilities is now available.

Category: security (moderate)
Bug References: 1182325,1182336,1182337
CVE References: CVE-2021-20243,CVE-2021-20244,CVE-2021-20246
JIRA References: 
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP5 (src):    ImageMagick-6.8.8.1-71.162.1
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    ImageMagick-6.8.8.1-71.162.1
SUSE Linux Enterprise Server 12-SP5 (src):    ImageMagick-6.8.8.1-71.162.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.
Comment 9 Swamp Workflow Management 2021-02-25 17:22:14 UTC
SUSE-SU-2021:0605-1: An update that fixes four vulnerabilities is now available.

Category: security (moderate)
Bug References: 1182325,1182335,1182336,1182337
CVE References: CVE-2021-20241,CVE-2021-20243,CVE-2021-20244,CVE-2021-20246
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for Development Tools 15-SP2 (src):    ImageMagick-7.0.7.34-10.12.1
SUSE Linux Enterprise Module for Desktop Applications 15-SP2 (src):    ImageMagick-7.0.7.34-10.12.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.
Comment 10 Swamp Workflow Management 2021-03-03 14:19:12 UTC
openSUSE-SU-2021:0377-1: An update that fixes four vulnerabilities is now available.

Category: security (moderate)
Bug References: 1182325,1182335,1182336,1182337
CVE References: CVE-2021-20241,CVE-2021-20243,CVE-2021-20244,CVE-2021-20246
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    ImageMagick-7.0.7.34-lp152.12.12.1
Comment 26 Maintenance Automation 2023-12-01 20:30:04 UTC
SUSE-SU-2023:4634-1: An update that solves 24 vulnerabilities and has one security fix can now be installed.

Category: security (important)
Bug References: 1153866, 1181836, 1182325, 1182335, 1182336, 1182337, 1184624, 1184626, 1184627, 1184628, 1195563, 1197147, 1199350, 1200387, 1200388, 1200389, 1202250, 1202800, 1207982, 1207983, 1209141, 1211791, 1213624, 1214578, 1215939
CVE References: CVE-2019-17540, CVE-2020-21679, CVE-2021-20176, CVE-2021-20224, CVE-2021-20241, CVE-2021-20243, CVE-2021-20244, CVE-2021-20246, CVE-2021-20309, CVE-2021-20311, CVE-2021-20312, CVE-2021-20313, CVE-2022-0284, CVE-2022-2719, CVE-2022-28463, CVE-2022-32545, CVE-2022-32546, CVE-2022-32547, CVE-2022-44267, CVE-2022-44268, CVE-2023-1289, CVE-2023-34151, CVE-2023-3745, CVE-2023-5341
Sources used:
SUSE CaaS Platform 4.0 (src): ImageMagick-7.0.7.34-150000.3.123.1
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): ImageMagick-7.0.7.34-150000.3.123.1
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): ImageMagick-7.0.7.34-150000.3.123.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): ImageMagick-7.0.7.34-150000.3.123.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.
Comment 27 Andrea Mattiazzo 2024-05-22 14:37:27 UTC
All done, closing.