{"id":1599,"date":"2017-04-05T17:48:03","date_gmt":"2017-04-05T15:48:03","guid":{"rendered":"http:\/\/blogs.gentoo.org\/ago\/?p=1599"},"modified":"2017-04-10T09:47:00","modified_gmt":"2017-04-10T07:47:00","slug":"binutils-two-null-pointer-dereference-in-elflink-c","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ago\/2017\/04\/05\/binutils-two-null-pointer-dereference-in-elflink-c\/","title":{"rendered":"binutils: two NULL pointer dereference in elflink.c"},"content":{"rendered":"<p><strong>Description<\/strong>:<br \/>\n<a href=\"\">binutils<\/a> are a collection of binary tools necessary to build programs.<\/p>\n<p>An updated clang version were able to discover two null pointer dereference in the following simple way:<\/p>\n<pre><font size=\"2\"># echo \"int main () { return 0; }\" &gt; test.c\r\n# cc test.c -o test\r\n\/tmp\/portage\/sys-devel\/binutils-2.28\/work\/binutils-2.28\/bfd\/elflink.c:124:12: runtime error: member access within null pointer of type 'struct elf_link_hash_entry'                            \r\n\r\n\/tmp\/portage\/sys-devel\/binutils-2.28\/work\/binutils-2.28\/bfd\/elflink.c:11979:58: runtime error: member access within null pointer of type 'elf_section_list' (aka 'struct elf_section_list')  \r\n<\/font><\/pre>\n<p><strong>Affected version:<\/strong><br \/>\n2.28<\/p>\n<p><strong>Fixed version:<\/strong><br \/>\nN\/A<\/p>\n<p><strong>Commit fix:<\/strong><br \/>\n<a href=\"https:\/\/sourceware.org\/git\/gitweb.cgi?p=binutils-gdb.git;h=ad32986fdf9da1c8748e47b8b45100398223dba8\">https:\/\/sourceware.org\/git\/gitweb.cgi?p=binutils-gdb.git;h=ad32986fdf9da1c8748e47b8b45100398223dba8<\/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-7614<\/p>\n<p><strong>Timeline:<\/strong><br \/>\n2017-04-01: bug discovered and reported to upstream<br \/>\n2017-04-04: upstream released a patch<br \/>\n2017-04-05: blog post about the issue<br \/>\n2017-04-09: CVE assigned<\/p>\n<p><strong>Note:<\/strong><br \/>\nThis bug was found with clang&#8217;s <a href=\"https:\/\/github.com\/google\/sanitizers\">Undefined Behavior Sanitizer<\/a>.<\/p>\n<p><strong>Permalink:<\/strong><\/p>\n<blockquote data-secret=\"PCf0YrWe9r\" class=\"wp-embedded-content\"><p><a href=\"http:\/\/blogs.gentoo.org\/ago\/2017\/04\/05\/binutils-two-null-pointer-dereference-in-elflink-c\/\">binutils: two NULL pointer dereference in elflink.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\/04\/05\/binutils-two-null-pointer-dereference-in-elflink-c\/embed\/#?secret=PCf0YrWe9r\" data-secret=\"PCf0YrWe9r\" width=\"600\" height=\"338\" title=\"&#8220;binutils: two NULL pointer dereference in elflink.c&#8221; &#8212; agostino&#039;s blog\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: binutils are a collection of binary tools necessary to build programs. An updated clang version were able to discover two null pointer dereference in the following simple way: # echo &#8220;int main () { return 0; }&#8221; &gt; test.c &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ago\/2017\/04\/05\/binutils-two-null-pointer-dereference-in-elflink-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-pN","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1599"}],"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=1599"}],"version-history":[{"count":6,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1599\/revisions"}],"predecessor-version":[{"id":1630,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1599\/revisions\/1630"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/media?parent=1599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/categories?post=1599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/tags?post=1599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}