{"id":1159,"date":"2017-01-29T18:45:18","date_gmt":"2017-01-29T16:45:18","guid":{"rendered":"http:\/\/blogs.gentoo.org\/ago\/?p=1159"},"modified":"2017-03-24T16:11:15","modified_gmt":"2017-03-24T14:11:15","slug":"mp3splt-null-pointer-dereference-in-splt_cue_export_to_file-cue-c","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ago\/2017\/01\/29\/mp3splt-null-pointer-dereference-in-splt_cue_export_to_file-cue-c\/","title":{"rendered":"libmp3splt: NULL pointer dereference in splt_cue_export_to_file (cue.c)"},"content":{"rendered":"<p><strong>Description<\/strong>:<br \/>\n<a href=\"http:\/\/mp3splt.sourceforge.net\">libmp3splt<\/a> a library for mp3splt 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==2581==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f36fb0a159a bp 0x7ffdc2708cb0 sp 0x7ffdc2708438 T0)\r\n==2581==The signal is caused by a READ memory access.\r\n==2581==Hint: address points to the zero page.\r\n    #0 0x7f36fb0a1599 in strlen \/var\/tmp\/portage\/sys-libs\/glibc-2.22-r4\/work\/glibc-2.22\/string\/..\/sysdeps\/x86_64\/strlen.S:76\r\n    #1 0x47a571 in __interceptor_fopen64 \/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:5167\r\n    #2 0x7f36fbf0d27e in splt_cue_export_to_file \/tmp\/portage\/media-libs\/libmp3splt-0.9.2\/work\/libmp3splt-0.9.2\/src\/cue.c:725\r\n    #3 0x7f36fbf0911b in mp3splt_export \/tmp\/portage\/media-libs\/libmp3splt-0.9.2\/work\/libmp3splt-0.9.2\/src\/mp3splt.c:1665\r\n    #4 0x51d5f0 in main \/tmp\/portage\/media-sound\/mp3splt-2.6.2\/work\/mp3splt-2.6.2\/src\/mp3splt.c:901:13\r\n    #5 0x7f36fb04061f in __libc_start_main \/var\/tmp\/portage\/sys-libs\/glibc-2.22-r4\/work\/glibc-2.22\/csu\/libc-start.c:289\r\n    #6 0x41ad08 in _init (\/usr\/bin\/mp3splt+0x41ad08)\r\n\r\nAddressSanitizer can not provide additional info.\r\nSUMMARY: AddressSanitizer: SEGV \/var\/tmp\/portage\/sys-libs\/glibc-2.22-r4\/work\/glibc-2.22\/string\/..\/sysdeps\/x86_64\/strlen.S:76 in strlen\r\n==2581==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 \/>\nCVE-2017-5665<\/p>\n<p><strong>Reproducer:<\/strong><br \/>\n<a href=\"https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00129-mp3splt-nullptr-splt_cue_export_to_file\">https:\/\/github.com\/asarubbo\/poc\/blob\/master\/00129-mp3splt-nullptr-splt_cue_export_to_file<\/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<br \/>\n2017-01-31: 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>.<\/p>\n<p><strong>Permalink:<\/strong><\/p>\n<blockquote data-secret=\"RPWovsnIYa\" class=\"wp-embedded-content\"><p><a href=\"http:\/\/blogs.gentoo.org\/ago\/2017\/01\/29\/mp3splt-null-pointer-dereference-in-splt_cue_export_to_file-cue-c\/\">libmp3splt: NULL pointer dereference in splt_cue_export_to_file (cue.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\/01\/29\/mp3splt-null-pointer-dereference-in-splt_cue_export_to_file-cue-c\/embed\/#?secret=RPWovsnIYa\" data-secret=\"RPWovsnIYa\" width=\"600\" height=\"338\" title=\"&#8220;libmp3splt: NULL pointer dereference in splt_cue_export_to_file (cue.c)&#8221; &#8212; agostino&#039;s blog\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: libmp3splt a library for mp3splt 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 ==2581==ERROR: AddressSanitizer: SEGV on unknown &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ago\/2017\/01\/29\/mp3splt-null-pointer-dereference-in-splt_cue_export_to_file-cue-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-iH","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1159"}],"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=1159"}],"version-history":[{"count":7,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1159\/revisions"}],"predecessor-version":[{"id":1516,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/1159\/revisions\/1516"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/media?parent=1159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/categories?post=1159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/tags?post=1159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}