Bugzilla – Bug 1026988
VUL-1: CVE-2017-6835: audiofile: divide-by-zero in BlockCodec::reset1 (BlockCodec.cpp)
Last modified: 2019-08-29 22:44:50 UTC
Ref: http://seclists.org/oss-sec/2017/q1/514 ============================================== Description: audiofile is a C-based library for reading and writing audio files in many common formats. A fuzz on it discovered a division by zero. The complete ASan output: # sfconvert @@ out.mp3 format aiff ==3538==ERROR: AddressSanitizer: FPE on unknown address 0x7f86a8cffe14 (pc 0x7f86a8cffe14 bp 0x7ffe41d2ae00 sp 0x7ffe41d2adf0 T0) #0 0x7f86a8cffe13 in BlockCodec::reset1() /tmp/portage/media-libs/audiofile-0.3.6-r1/work/audiofile-0.3.6/libaudiofile/modules/BlockCodec.cpp:74:61 #1 0x7f86a8d0b794 in ModuleState::reset(_AFfilehandle*, Track*) /tmp/portage/media-libs/audiofile-0.3.6-r1/work/audiofile-0.3.6/libaudiofile/modules/ModuleState.cpp:218:9 #2 0x7f86a8d0b794 in ModuleState::setup(_AFfilehandle*, Track*) /tmp/portage/media-libs/audiofile-0.3.6-r1/work/audiofile-0.3.6/libaudiofile/modules/ModuleState.cpp:190 #3 0x7f86a8ced43c in afGetFrameCount /tmp/portage/media-libs/audiofile-0.3.6-r1/work/audiofile-0.3.6/libaudiofile/format.cpp:205:41 #4 0x50bb5c in copyaudiodata /tmp/portage/media-libs/audiofile-0.3.6-r1/work/audiofile-0.3.6/sfcommands/sfconvert.c:329:29 #5 0x50b050 in main /tmp/portage/media-libs/audiofile-0.3.6-r1/work/audiofile-0.3.6/sfcommands/sfconvert.c:248:17 #6 0x7f86a7dbe78f in __libc_start_main /tmp/portage/sys-libs/glibc-2.23-r3/work/glibc-2.23/csu/../csu/libc-start.c:289 #7 0x419f48 in _init (/usr/bin/sfconvert+0x419f48) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: FPE /tmp/portage/media-libs/audiofile-0.3.6-r1/work/audiofile-0.3.6/libaudiofile/modules/BlockCodec.cpp:74:61 in BlockCodec::reset1() ==3538==ABORTING Affected version: 0.3.6 Fixed version: N/A Commit fix: N/A Credit: This bug was discovered by Agostino Sarubbo of Gentoo. CVE: N/A Reproducer: https://github.com/asarubbo/poc/blob/master/00189-audiofile-fpe-BlockCodec-reset1 Timeline: 2017-02-20: bug discovered and reported to upstream 2017-02-20: blog post about the issue Note: This bug was found with American Fuzzy Lop. Permalink: https://blogs.gentoo.org/ago/2017/02/20/audiofile-divide-by-zero-in-blockcodecreset1-blockcodec-cpp ============================================== https://software.opensuse.org/package/audiofile TW|42.{1,2}: 0.3.6 VUL-1 because: http://seclists.org/oss-sec/2017/q1/504 ======================================================== Hello all. I discovered multiple crashes in the audiofile library. The maintainer was informed privately, I didn't see reactions and all details are public on my blog. I posted them to the cveform too, but I didn't get response. I'll send update if something will change. -- Agostino Sarubbo Gentoo Linux Developer ========================================================
bugbot adjusting priority
The check for the number of coefficients in boo#1026978 also fixes this issue. *** This bug has been marked as a duplicate of bug 1026978 ***
SUSE-SU-2017:0940-1: An update that fixes 14 vulnerabilities is now available. Category: security (low) Bug References: 1026978,1026979,1026980,1026981,1026982,1026983,1026984,1026985,1026986,1026987,1026988,949399 CVE References: CVE-2015-7747,CVE-2017-6827,CVE-2017-6828,CVE-2017-6829,CVE-2017-6830,CVE-2017-6831,CVE-2017-6832,CVE-2017-6833,CVE-2017-6834,CVE-2017-6835,CVE-2017-6836,CVE-2017-6837,CVE-2017-6838,CVE-2017-6839 Sources used: SUSE Linux Enterprise Software Development Kit 12-SP2 (src): audiofile-0.3.6-10.1 SUSE Linux Enterprise Software Development Kit 12-SP1 (src): audiofile-0.3.6-10.1 SUSE Linux Enterprise Server for Raspberry Pi 12-SP2 (src): audiofile-0.3.6-10.1 SUSE Linux Enterprise Server 12-SP2 (src): audiofile-0.3.6-10.1 SUSE Linux Enterprise Server 12-SP1 (src): audiofile-0.3.6-10.1 SUSE Linux Enterprise Desktop 12-SP2 (src): audiofile-0.3.6-10.1 SUSE Linux Enterprise Desktop 12-SP1 (src): audiofile-0.3.6-10.1
openSUSE-SU-2017:1038-1: An update that fixes 13 vulnerabilities is now available. Category: security (low) Bug References: 1026978,1026979,1026980,1026981,1026982,1026983,1026984,1026985,1026986,1026987,1026988 CVE References: CVE-2017-6827,CVE-2017-6828,CVE-2017-6829,CVE-2017-6830,CVE-2017-6831,CVE-2017-6832,CVE-2017-6833,CVE-2017-6834,CVE-2017-6835,CVE-2017-6836,CVE-2017-6837,CVE-2017-6838,CVE-2017-6839 Sources used: openSUSE Leap 42.2 (src): audiofile-0.3.6-10.3.1 openSUSE Leap 42.1 (src): audiofile-0.3.6-12.1
SUSE-SU-2017:1182-1: An update that fixes 13 vulnerabilities is now available. Category: security (moderate) Bug References: 1026978,1026979,1026980,1026981,1026982,1026983,1026984,1026985,1026986,1026987,1026988 CVE References: CVE-2017-6827,CVE-2017-6828,CVE-2017-6829,CVE-2017-6830,CVE-2017-6831,CVE-2017-6832,CVE-2017-6833,CVE-2017-6834,CVE-2017-6835,CVE-2017-6836,CVE-2017-6837,CVE-2017-6838,CVE-2017-6839 Sources used: SUSE Linux Enterprise Software Development Kit 11-SP4 (src): audiofile-0.2.6-142.17.1 SUSE Linux Enterprise Server 11-SP4 (src): audiofile-0.2.6-142.17.1 SUSE Linux Enterprise Debuginfo 11-SP4 (src): audiofile-0.2.6-142.17.1
was released