{"id":1158,"date":"2017-01-29T18:44:27","date_gmt":"2017-01-29T16:44:27","guid":{"rendered":"http:\/\/blogs.gentoo.org\/ago\/?p=1158"},"modified":"2017-01-29T18:44:27","modified_gmt":"2017-01-29T16:44:27","slug":"mp3splt-null-pointer-dereference-in-main-mp3splt-c","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ago\/2017\/01\/29\/mp3splt-null-pointer-dereference-in-main-mp3splt-c\/","title":{"rendered":"mp3splt: NULL pointer dereference in  main (mp3splt.c)"},"content":{"rendered":"<p><strong>Description<\/strong>:<br \/>\n<a href=\"http:\/\/mp3splt.sourceforge.net\">mp3splt<\/a> is a command line utility to split mp3 and ogg files without decoding.<\/p>\n<p>A fuzz on it discovered a NULL pointer access.<\/p>\n<p>The complete ASan output:<\/p>\n<pre><font size=\"2\"># mp3splt -P -f -t 0.1 -a $FILE\r\n==3081==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000046dbd9 bp 0x7ffc4cdabdb0 sp 0x7ffc4cdab520 T0)\r\n==3081==The signal is caused by a READ memory access.\r\n==3081==Hint: address points to the zero page.\r\n    #0 0x46dbd8 in __interceptor_strncmp \/tmp\/portage\/sys-devel\/llvm-3.9.0-r1\/work\/llvm-3.9.0.src\/projects\/compiler-rt\/lib\/asan\/..\/sanitizer_common\/sanitizer_common_interceptors.inc:302\r\n    #1 0x51d727 in main \/tmp\/portage\/media-sound\/mp3splt-2.6.2\/work\/mp3splt-2.6.2\/src\/mp3splt.c:906:11\r\n    #2 0x7f8512cf061f in __libc_start_main \/var\/tmp\/portage\/sys-libs\/glibc-2.22-r4\/work\/glibc-2.22\/csu\/libc-start.c:289\r\n    #3 0x41ad08 in _init (\/usr\/bin\/mp3splt+0x41ad08)\r\n\r\nAddressSanitizer can not provide additional info.\r\nSUMMARY: AddressSanitizer: SEGV \/tmp\/portage\/sys-devel\/llvm-3.9.0-r1\/work\/llvm-3.9.0.src\/projects\/compiler-rt\/lib\/asan\/..\/sanitizer_common\/sanitizer_common_interceptors.inc:302 in __interceptor_strncmp\r\n==3081==ABORTING\r\n<\/font><\/pre>\n<p><strong>Affected version:<\/strong><br \/>\n0.9.2<\/p>\n<p><strong>Fixed version:<\/strong><br \/>\nN\/A<\/p>\n<p><strong>Commit fix:<\/strong><br \/>\nN\/A<\/p>\n<p><strong>Credit:<\/strong><br \/>\nThis bug was discovered by Agostino Sarubbo of Gentoo.<\/p>\n<p><strong>CVE:<\/strong><br \/>\nN\/A<\/p>\n<p><strong>Reproducer:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00128-mp3splt-nullptr-main\">https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00128-mp3splt-nullptr-main<\/a><\/p>\n<p><strong>Timeline:<\/strong><br \/>\n2017-01-01: private report to upstream via mail<br \/>\n2017-01-29: public upstream report on sourceforge<br \/>\n2017-01-29: blog post about the issue<\/p>\n<p><strong>Note:<\/strong><br \/>\nThis bug was 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\/01\/29\/mp3splt-null-pointer-dereference-in-mp3splt-c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: mp3splt is a command line utility to split mp3 and ogg files without decoding. A fuzz on it discovered a NULL pointer access. The complete ASan output: # mp3splt -P -f -t 0.1 -a $FILE ==3081==ERROR: AddressSanitizer: SEGV on &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ago\/2017\/01\/29\/mp3splt-null-pointer-dereference-in-main-mp3splt-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-iG","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1158"}],"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=1158"}],"version-history":[{"count":4,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1158\/revisions"}],"predecessor-version":[{"id":1190,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1158\/revisions\/1190"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/media?parent=1158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/categories?post=1158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/tags?post=1158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}