Bug 1040306 - (CVE-2017-9143) VUL-1: CVE-2017-9143: GraphicsMagick,ImageMagick: possible DoS via crafted .art file in ReadARTImage function in coders/art.c
(CVE-2017-9143)
VUL-1: CVE-2017-9143: GraphicsMagick,ImageMagick: possible DoS via crafted .a...
Status: RESOLVED FIXED
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P4 - Low : Minor
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/185680/
CVSSv3:SUSE:CVE-2017-9143:4.0:(AV:L/A...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-23 08:17 UTC by Alexander Bergmann
Modified: 2017-08-23 15:24 UTC (History)
2 users (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 Alexander Bergmann 2017-05-23 08:17:45 UTC
CVE-2017-9143

In ImageMagick 7.0.5-5, the ReadARTImage function in coders/art.c allows
attackers to cause a denial of service (memory leak) via a crafted .art file.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-9143
http://www.cvedetails.com/cve/CVE-2017-9143/
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9143
https://github.com/ImageMagick/ImageMagick/issues/456
https://github.com/ImageMagick/ImageMagick/commit/7b8c1df65b25d6671f113e2306982eded44ce3b4
Comment 2 Petr Gajdos 2017-05-30 10:19:37 UTC
For 12/ImageMagick:

BEFORE

$ valgrind --leak-check=full convert memory-leak-in-ReadARTImage-17.art foo.bmp
[..]
==30628== 203,040 (152 direct, 202,888 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 13
==30628==    at 0x4C29110: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30628==    by 0x4F8B7B7: AcquireQuantumInfo (quantum.c:123)
==30628==    by 0x8418AA2: ???
==30628==    by 0x4EBF2BA: ReadImage (constitute.c:601)
==30628==    by 0x4EC037A: ReadImages (constitute.c:907)
==30628==    by 0x5319BAE: ConvertImageCommand (convert.c:617)
==30628==    by 0x5385C72: MagickCommandGenesis (mogrify.c:166)
==30628==    by 0x400906: ConvertMain (convert.c:81)
==30628==    by 0x400906: main (convert.c:92)
==30628== 
[..]
==30628== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
$

Similarly for 11/ImageMagick. No errors for 11/GraphicsMagick and 42.2/GraphicsMagick. 11/GraphicsMagick does not have the check and 42.2/GraphicsMagick has the check, but it breaks the loop (instead of throwing the exception) and frees the buffer later.

AFTER

$ valgrind --leak-check=full convert memory-leak-in-ReadARTImage-17.art foo.bmp
[..]
==23455== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
$

For 11/ImageMagick, the report is not clean, but there is one error less.
Comment 3 Petr Gajdos 2017-05-30 10:20:30 UTC
Considering affected: 11/ImageMagick and 12/ImageMagick
Comment 4 Petr Gajdos 2017-05-31 14:12:26 UTC
I believe all fixed.
Comment 6 Swamp Workflow Management 2017-06-06 16:14:42 UTC
SUSE-SU-2017:1489-1: An update that fixes 27 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1028075,1033091,1034870,1034872,1034876,1036976,1036977,1036978,1036980,1036981,1036982,1036983,1036984,1036985,1036986,1036987,1036988,1036989,1036990,1036991,1037527,1038000,1040025,1040303,1040304,1040306,1040332
CVE References: CVE-2017-6502,CVE-2017-7606,CVE-2017-7941,CVE-2017-7942,CVE-2017-7943,CVE-2017-8343,CVE-2017-8344,CVE-2017-8345,CVE-2017-8346,CVE-2017-8347,CVE-2017-8348,CVE-2017-8349,CVE-2017-8350,CVE-2017-8351,CVE-2017-8352,CVE-2017-8353,CVE-2017-8354,CVE-2017-8355,CVE-2017-8356,CVE-2017-8357,CVE-2017-8765,CVE-2017-8830,CVE-2017-9098,CVE-2017-9141,CVE-2017-9142,CVE-2017-9143,CVE-2017-9144
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP2 (src):    ImageMagick-6.8.8.1-70.1
SUSE Linux Enterprise Software Development Kit 12-SP2 (src):    ImageMagick-6.8.8.1-70.1
SUSE Linux Enterprise Server for Raspberry Pi 12-SP2 (src):    ImageMagick-6.8.8.1-70.1
SUSE Linux Enterprise Server 12-SP2 (src):    ImageMagick-6.8.8.1-70.1
SUSE Linux Enterprise Desktop 12-SP2 (src):    ImageMagick-6.8.8.1-70.1
Comment 7 Swamp Workflow Management 2017-06-14 13:14:43 UTC
openSUSE-SU-2017:1560-1: An update that fixes 27 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1028075,1033091,1034870,1034872,1034876,1036976,1036977,1036978,1036980,1036981,1036982,1036983,1036984,1036985,1036986,1036987,1036988,1036989,1036990,1036991,1037527,1038000,1040025,1040303,1040304,1040306,1040332
CVE References: CVE-2017-6502,CVE-2017-7606,CVE-2017-7941,CVE-2017-7942,CVE-2017-7943,CVE-2017-8343,CVE-2017-8344,CVE-2017-8345,CVE-2017-8346,CVE-2017-8347,CVE-2017-8348,CVE-2017-8349,CVE-2017-8350,CVE-2017-8351,CVE-2017-8352,CVE-2017-8353,CVE-2017-8354,CVE-2017-8355,CVE-2017-8356,CVE-2017-8357,CVE-2017-8765,CVE-2017-8830,CVE-2017-9098,CVE-2017-9141,CVE-2017-9142,CVE-2017-9143,CVE-2017-9144
Sources used:
openSUSE Leap 42.2 (src):    ImageMagick-6.8.8.1-30.3.1
Comment 8 Swamp Workflow Management 2017-06-19 10:13:09 UTC
SUSE-SU-2017:1599-1: An update that fixes 25 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1033091,1034870,1034872,1034876,1036976,1036978,1036980,1036981,1036983,1036984,1036985,1036986,1036987,1036988,1036989,1036990,1037527,1038000,1040025,1040303,1040304,1040306,1040332
CVE References: CVE-2014-9846,CVE-2016-10050,CVE-2017-7606,CVE-2017-7941,CVE-2017-7942,CVE-2017-7943,CVE-2017-8344,CVE-2017-8345,CVE-2017-8346,CVE-2017-8348,CVE-2017-8349,CVE-2017-8350,CVE-2017-8351,CVE-2017-8352,CVE-2017-8353,CVE-2017-8354,CVE-2017-8355,CVE-2017-8357,CVE-2017-8765,CVE-2017-8830,CVE-2017-9098,CVE-2017-9141,CVE-2017-9142,CVE-2017-9143,CVE-2017-9144
Sources used:
SUSE Linux Enterprise Software Development Kit 11-SP4 (src):    ImageMagick-6.4.3.6-7.77.1
SUSE Linux Enterprise Server 11-SP4 (src):    ImageMagick-6.4.3.6-7.77.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    ImageMagick-6.4.3.6-7.77.1
Comment 9 Marcus Meissner 2017-08-23 15:24:50 UTC
released