{"id":2276,"date":"2017-09-19T17:15:39","date_gmt":"2017-09-19T15:15:39","guid":{"rendered":"http:\/\/blogs.gentoo.org\/ago\/?p=2276"},"modified":"2017-09-22T08:55:59","modified_gmt":"2017-09-22T06:55:59","slug":"graphicsmagick-assertion-failure-in-pixel_cache-c","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ago\/2017\/09\/19\/graphicsmagick-assertion-failure-in-pixel_cache-c\/","title":{"rendered":"graphicsmagick: assertion failure in pixel_cache.c"},"content":{"rendered":"<p><strong>Description<\/strong>:<br \/>\n<a href=\"http:\/\/www.graphicsmagick.org\/\">graphicsmagick<\/a> is a collection of tools and libraries for many image formats.<\/p>\n<p>The complete output of the issue:<\/p>\n<pre><font size=\"2\"># gm convert $FILE null\r\ngm: magick\/pixel_cache.c:1089: const PixelPacket AcquireImagePixels(const Image , const long, const long, const unsigned long, const unsigned long, ExceptionInfo ): Assertion `image != (Image ) NULL' failed.\r\n<\/font><\/pre>\n<p><strong>Affected version:<\/strong><br \/>\n1.3.25, 1.3.26 and maybe past releases<\/p>\n<p><strong>Fixed version:<\/strong><br \/>\nN\/A<\/p>\n<p><strong>Commit fix:<\/strong><br \/>\n<a href=\"http:\/\/hg.code.sf.net\/p\/graphicsmagick\/code\/rev\/358608a46f0a\">http:\/\/hg.code.sf.net\/p\/graphicsmagick\/code\/rev\/358608a46f0a<\/a><\/p>\n<p><strong>Credit:<\/strong><br \/>\nThis bug was discovered by Agostino Sarubbo of Gentoo.<\/p>\n<p><strong>CVE:<\/strong><br \/>\nCVE-2017-14649<\/p>\n<p><strong>Reproducer:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00366-graphicsmagick_assertionfailure_pixel_cache_c\">https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00366-graphicsmagick_assertionfailure_pixel_cache_c<\/a><\/p>\n<p><strong>Timeline:<\/strong><br \/>\n2017-08-12: bug discovered and reported to upstream privately<br \/>\n2017-08-16: bug reported to the public upstream bugtracker<br \/>\n2017-08-29: upstream released a fix<br \/>\n2017-09-19: blog post about the issue<br \/>\n2017-09-21: CVE assigned<\/p>\n<p><strong>Note:<\/strong><br \/>\nThis bug was found with <a href=\"http:\/\/lcamtuf.coredump.cx\/afl\">American Fuzzy Lop<\/a>.<br \/>\nThis bug was identified with bare metal servers donated by <a href=\"https:\/\/www.packet.net\/\">Packet<\/a>. This work is also supported by the <a href=\"https:\/\/www.coreinfrastructure.org\">Core Infrastructure Initiative<\/a>.<\/p>\n<p><strong>Permalink:<\/strong><\/p>\n<blockquote data-secret=\"MYV4o3tMNn\" class=\"wp-embedded-content\"><p><a href=\"http:\/\/blogs.gentoo.org\/ago\/2017\/09\/19\/graphicsmagick-assertion-failure-in-pixel_cache-c\/\">graphicsmagick: assertion failure in pixel_cache.c<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/blogs.gentoo.org\/ago\/2017\/09\/19\/graphicsmagick-assertion-failure-in-pixel_cache-c\/embed\/#?secret=MYV4o3tMNn\" data-secret=\"MYV4o3tMNn\" width=\"600\" height=\"338\" title=\"&#8220;graphicsmagick: assertion failure in pixel_cache.c&#8221; &#8212; agostino&#039;s blog\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: graphicsmagick is a collection of tools and libraries for many image formats. The complete output of the issue: # gm convert $FILE null gm: magick\/pixel_cache.c:1089: const PixelPacket AcquireImagePixels(const Image , const long, const long, const unsigned long, const unsigned &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ago\/2017\/09\/19\/graphicsmagick-assertion-failure-in-pixel_cache-c\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":140,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[12,10],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2EaBc-AI","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/2276"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/users\/140"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/comments?post=2276"}],"version-history":[{"count":4,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/2276\/revisions"}],"predecessor-version":[{"id":2285,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/2276\/revisions\/2285"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/media?parent=2276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/categories?post=2276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/tags?post=2276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}