Heap-buffer-overflow in mozilla::dom::OfflineDestinationNodeEngine::ProduceAudioBlock
Originally disclosed on Mozilla
- Fixed in 29 hours
- Paid in 12 days
- Disclosed after 29 hours
Created attachment 755290
Repro-file
Tested on:
OS: Ubuntu 12.04
Firefox:
ASAN opt-build https://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-central-linux64-asan/1369790612/
ASAN bebug-build https://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-central-linux64-dbg-asan/1369811142/
ASAN-report:(opt-build)
==31180== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7f5b0d2405d0 at pc 0x7f5b27169492 bp 0x7f5b017a1330 sp 0x7f5b017a1328
READ of size 8 at 0x7f5b0d2405d0 thread T67
#0 0x7f5b27169491 in mozilla::dom::OfflineDestinationNodeEngine::ProduceAudioBlock(mozilla::AudioNodeStream*, mozilla::AudioChunk const&, mozilla::AudioChunk*, bool*) /builds/slave/m-cen-l64-asan-000000000000000/build/content/media/webaudio/AudioDestinationNode.cpp:67
0x7f5b0d2405d0 is located 0 bytes to the right of 16-byte region [0x7f5b0d2405c0,0x7f5b0d2405d0)
allocated by thread T67 here:
#0 0x441520 in __interceptor_malloc ??:0
#1 0x7f5b2e38d3a8 in moz_xmalloc /builds/slave/m-cen-l64-asan-000000000000000/build/memory/mozalloc/mozalloc.cpp:54
.
.
.
ASAN-report: (debug-build)
Assertion failure: i < Length() (invalid array index), at ../../dist/include/nsTArray.h:734
ASAN:SIGSEGV
=================================================================
==31638== ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fe6a24dec7e sp 0x7fe673fe7d40 bp 0x7fe673fe7d50 T26)
AddressSanitizer can not provide additional info.
#0 0x7fe6a24dec7d in nsTArray_Impl<void const*, nsTArrayInfallibleAllocator>::ElementAt(unsigned int) const /builds/slave/m-cen-l64-dbg-asan-00000000000/build/../../dist/include/nsTArray.h:734
#1 0x7fe6a256f05d in mozilla::dom::OfflineDestinationNodeEngine::ProduceAudioBlock(mozilla::AudioNodeStream*, mozilla::AudioChunk const&, mozilla::AudioChunk*, bool*) /builds/slave/m-cen-l64-dbg-asan-00000000000/build/content/media/webaudio/AudioDestinationNode.cpp:67
#2 0x7fe6a24da4c8 in mozilla::AudioNodeStream::ProduceOutput(long, long) /builds/slave/m-cen-l64-dbg-asan-00000000000/build/content/media/AudioNodeStream.cpp:425
#3 0x7fe6a2541222 in mozilla::MediaStreamGraphImpl::ProduceDataForStreamsBlockByBlock(unsigned int, int, long, long) /builds/slave/m-cen-l64-dbg-asan-00000000000/build/content/media/MediaStreamGraph.cpp:937
#4 0x7fe6a2541c6a in mozilla::MediaStreamGraphImpl::RunThread() /builds/slave/m-cen-l64-dbg-asan-00000000000/build/content/media/MediaStreamGraph.cpp:1038
#5 0x7fe6a2550748 in mozilla::(anonymous namespace)::MediaStreamGraphThreadRunnable::Run() /builds/slave/m-cen-l64-dbg-asan-00000000000/build/content/media/MediaStreamGraph.cpp:1184
.
.
.
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 Web Audio. Mozilla made it public on 30 May 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.