Heap-buffer-overflow in soundtouch::TDStretchSSE::calcCrossCorr
Originally disclosed on Mozilla
- Fixed in 11 days
- Paid in 4 months
- Disclosed after 11 days
==6341== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60720003ee10 at pc 0x7f7360156c1d bp 0x7f7339f8aa10 sp 0x7f7339f8aa08
READ of size 16 at 0x60720003ee10 thread T23
#0 0x7f7360156c1c in soundtouch::TDStretchSSE::calcCrossCorr(float const*, float const*) const src/media/libsoundtouch/src/sse_optimized.cpp:125
#1 0x7f7360155727 in soundtouch::TDStretch::seekBestOverlapPositionFull(float const*) src/media/libsoundtouch/src/TDStretch.cpp:301
#2 0x7f7360155d1b in soundtouch::TDStretch::processSamples() src/media/libsoundtouch/src/TDStretch.cpp:259
#3 0x7f7360152d4a in soundtouch::SoundTouch::putSamples(float const*, unsigned int) src/media/libsoundtouch/src/FIFOSamplePipe.h:88
#4 0x7f735dcd7a39 in mozilla::BufferedAudioStream::GetTimeStretched(void*, long) src/content/media/AudioStream.cpp:1038
#5 0x7f735dcd7d55 in mozilla::BufferedAudioStream::DataCallback(void*, long) src/content/media/AudioStream.cpp:1063
#6 0x7f7360158f3f in cubeb_run_thread src/media/libcubeb/src/cubeb_alsa.c:301
#7 0x418f1a in __asan::AsanThread::ThreadStart()
#8 0x7f7366958e99 in start_thread
#9 0x7f7365c6fcbc in
0x60720003ee10 is located 0 bytes to the right of 3088-byte region [0x60720003e200,0x60720003ee10)
allocated by thread T22 (Media Audio) here:
#0 0x413bc2 in malloc
#1 0x7f7363e591e8 in moz_xmalloc src/memory/mozalloc/mozalloc.cpp:54
Thread T23 created by T22 (Media Audio) here:
#0 0x4113d4 in __interceptor_pthread_create
#1 0x7f7360157875 in cubeb_init src/media/libcubeb/src/cubeb_alsa.c:685
#2 0x7f735dcd56fd in mozilla::BufferedAudioStream::Init(int, int, mozilla::dom::AudioChannelType) src/content/media/AudioStream.cpp:144
#3 0x7f735dcacacf in mozilla::MediaDecoderStateMachine::AudioLoop() src/content/media/MediaDecoderStateMachine.cpp:1011
Thread T22 (Media Audio) created by T21 (Media Decode) here:
#0 0x4113d4 in __interceptor_pthread_create
#1 0x7f73659450ef in _PR_CreateThread src/nsprpub/pr/src/pthreads/ptthread.c:393
#2 0x7f7365944b4a in PR_CreateThread src/nsprpub/pr/src/pthreads/ptthread.c:476
#3 0x7f735f8c1554 in nsThread::Init() src/xpcom/threads/nsThread.cpp:331
Thread T21 (Media Decode) created by T20 (Media State) here:
#0 0x4113d4 in __interceptor_pthread_create
#1 0x7f73659450ef in _PR_CreateThread src/nsprpub/pr/src/pthreads/ptthread.c:393
#2 0x7f7365944b4a in PR_CreateThread src/nsprpub/pr/src/pthreads/ptthread.c:476
#3 0x7f735f8c1554 in nsThread::Init() src/xpcom/threads/nsThread.cpp:331
Thread T20 (Media State) created by T0 here:
#0 0x4113d4 in __interceptor_pthread_create
#1 0x7f73659450ef in _PR_CreateThread src/nsprpub/pr/src/pthreads/ptthread.c:393
#2 0x7f7365944b4a in PR_CreateThread src/nsprpub/pr/src/pthreads/ptthread.c:476
#3 0x7f735f8c1554 in nsThread::Init() src/xpcom/threads/nsThread.cpp:331
Shadow bytes around the buggy address:
0x1c0e40007d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1c0e40007d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1c0e40007d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1c0e40007da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1c0e40007db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x1c0e40007dc0: 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x1c0e40007dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x1c0e40007de0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x1c0e40007df0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x1c0e40007e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x1c0e40007e10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap righ redzone: fb
Freed Heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
ASan internal: fe
==6341== ABORTING
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A critical-severity memory corruption bug in Audio/Video. Mozilla made it public on 12 March 2013.
About Memory corruption
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.