{"id":1273,"date":"2017-02-03T13:04:39","date_gmt":"2017-02-03T11:04:39","guid":{"rendered":"http:\/\/blogs.gentoo.org\/ago\/?p=1273"},"modified":"2017-02-04T14:16:00","modified_gmt":"2017-02-04T12:16:00","slug":"pax-utils-dumpelf-multiple-divide-by-zero-in-dumpelf-c","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ago\/2017\/02\/03\/pax-utils-dumpelf-multiple-divide-by-zero-in-dumpelf-c\/","title":{"rendered":"pax-utils: dumpelf: multiple divide-by-zero in dumpelf.c"},"content":{"rendered":"<p><strong>Description<\/strong>:<br \/>\n<a href=\"https:\/\/gitweb.gentoo.org\/proj\/pax-utils.git\">pax-utils<\/a> is a set of tools that check files for security relevant properties.<\/p>\n<p>A fuzz on dumpelf shows multiple divide-by-zero . They was reported to vapier which fixed the issues immediately.<br \/>\nUnfortunately I can&#8217;t get the ASan stacktrace, so I will show only the useful(not at all) part of the crash.<\/p>\n<pre><font size=\"2\"># dumpelf $FILE\r\n FPE on unknown address 0x00000051ca65 (pc 0x00000051ca65 bp 0x7ffc31bb6f80 sp 0x7ffc31bb6e40 T0)\r\n<\/font><\/pre>\n<p><strong>Reproducer:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00137-pax-utils-dumpelf-fpe1\">https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00137-pax-utils-dumpelf-fpe1<\/a><\/p>\n<pre><font size=\"2\"># dumpelf $FILE\r\n  FPE on unknown address 0x00000051d335 (pc 0x00000051d335 bp 0x7ffc17babf80 sp 0x7ffc17babe40 T0)\r\n<\/font><\/pre>\n<p><strong>Reproducer:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00138-pax-utils-dumpelf-fpe2\">https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00138-pax-utils-dumpelf-fpe2<\/a><\/p>\n<pre><font size=\"2\"># dumpelf $FILE\r\n  FPE on unknown address 0x00000051db76 (pc 0x00000051db76 bp 0x7ffdf90fff80 sp 0x7ffdf90ffe40 T0)\r\n<\/font><\/pre>\n<p><strong>Reproducer:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00139-pax-utils-dumpelf-fpe3\">https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00139-pax-utils-dumpelf-fpe3<\/a><\/p>\n<p><strong>Affected version:<\/strong><br \/>\n1.2.2<\/p>\n<p><strong>Fixed version:<\/strong><br \/>\nN\/A<\/p>\n<p><strong>Commit fix:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/gentoo\/pax-utils\/commit\/4609f57a690b4a5670baeb93167dab5300d07d4e\">https:\/\/github.com\/gentoo\/pax-utils\/commit\/4609f57a690b4a5670baeb93167dab5300d07d4e<\/a><\/p>\n<p><strong>Credit:<\/strong><br \/>\nThese bugs were discovered by Agostino Sarubbo of Gentoo.<\/p>\n<p><strong>CVE:<\/strong><br \/>\nN\/A<\/p>\n<p><strong>Timeline:<\/strong><br \/>\n2017-01-30: bug discovered and reported to upstream<br \/>\n2017-02-01: upstream released a patch<br \/>\n2017-02-04: blog post about the issue<\/p>\n<p><strong>Note:<\/strong><br \/>\nThese bugs were found with <a href=\"http:\/\/lcamtuf.coredump.cx\/afl\">American Fuzzy Lop<\/a>.<\/p>\n<p><strong>Permalink:<\/strong><br \/>\nhttps:\/\/blogs.gentoo.org\/ago\/2017\/02\/04\/pax-utils-dumpelf-multiple-divide-by-zero-in-dumpelf-c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: pax-utils is a set of tools that check files for security relevant properties. A fuzz on dumpelf shows multiple divide-by-zero . They was reported to vapier which fixed the issues immediately. Unfortunately I can&#8217;t get the ASan stacktrace, so &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ago\/2017\/02\/03\/pax-utils-dumpelf-multiple-divide-by-zero-in-dumpelf-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-kx","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1273"}],"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=1273"}],"version-history":[{"count":6,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1273\/revisions"}],"predecessor-version":[{"id":1286,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1273\/revisions\/1286"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/media?parent=1273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/categories?post=1273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/tags?post=1273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}