Bugzilla – Bug 1073687
VUL-0: CVE-2017-17783: GraphicsMagick: Buffer over-read in ReadPALMImage incoders/palm.c when QuantumDepth is 8
Last modified: 2018-02-02 09:29:43 UTC
CVE-2017-17783 In GraphicsMagick 1.3.27a, there is a buffer over-read in ReadPALMImage in coders/palm.c when QuantumDepth is 8. Fixed by http://hg.graphicsmagick.org/hg/GraphicsMagick?cmd=changeset;node=60932931559a References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-17783 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17783 https://sourceforge.net/p/graphicsmagick/bugs/529/
We use following quantum depths: 12/ImageMagick: 16 (explicitly) 11/ImageMagick: 16 (by using default) 11/GraphicsMagick: 8 (explicitly) 42.3/GraphicsMagick: 16 (explicitly) So only 11/GraphicsMagick is suspected to be affected.
(And it will not to be changed in 16 -> 8 way in future for released products, as that could cause regressions.)
Will submit for: 12/ImageMagick and 11/ImageMagick
(In reply to Petr Gajdos from comment #3) > Will submit for: 12/ImageMagick and 11/ImageMagick Bad window.
Via testcase: 12/ImageMagick $ valgrind -q mogrify 3RdlNUpKUwgTWSwLU6D4juiH11gePOhJ.palm $ 11/ImageMagick $ valgrind -q mogrify 3RdlNUpKUwgTWSwLU6D4juiH11gePOhJ.palm $ 11/GraphicsMagick $ valgrind -q gm mogrify 3RdlNUpKUwgTWSwLU6D4juiH11gePOhJ.palm gm mogrify: Memory allocation failed (3RdlNUpKUwgTWSwLU6D4juiH11gePOhJ.palm). $ 42.3/GraphicsMagick $ valgrind -q gm mogrify 3RdlNUpKUwgTWSwLU6D4juiH11gePOhJ.palm Depth 1 Depth 2 Depth 4 Depth 8 $ HG/GraphicsMagick: does not write PALM
11/GraphicsMagick does not have the code. According to comment 1, we are not affected.