heap-use-after-free at AppendElements
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3 months
Created attachment 8530914
ff-uaf-AppendElements.mp3
ASan spots a heap use after free whenever the attached page, which plays an mp3 file, is opened. This happens at least in Linux when using recent tinderbox builds.
To reproduce, download ff-uaf-AppendElements.{html,mp3} and $ firefox ff-uaf-AppendElements.html.
==3278==ERROR: AddressSanitizer: heap-use-after-free on address 0x6210006b7cff at pc 0x7f83ba18da6e bp 0x7f837e9f15b0 sp 0x7f837e9f15a8
READ of size 9216 at 0x6210006b7cff thread T58 (Media Audio)
#0 0x7f83ba18da6d in AppendElements /builds/slave/m-cen-l64-asan-000000000000000/build/src/dom/media/AudioStream.h:119
#1 0x7f83ba18a951 in PlayFromAudioQueue /builds/slave/m-cen-l64-asan-000000000000000/build/src/dom/media/AudioSink.cpp:323
#2 0x7f83ba18886b in AudioLoop /builds/slave/m-cen-l64-asan-000000000000000/build/src/dom/media/AudioSink.cpp:193
#3 0x7f83ba1ae020 in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/obj-firefox/dom/media/../../dist/include/nsThreadUtils.h:388
#4 0x7f83b62b0804 in ProcessNextEvent /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/threads/nsThread.cpp:830
#5 0x7f83b630f83a in NS_ProcessNextEvent /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/glue/nsThreadUtils.cpp:265
#6 0x7f83b6b2b089 in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessagePump.cpp:339
#7 0x7f83b6ad82dc in RunInternal /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:233
#8 0x7f83b62ad295 in ThreadFunc /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/threads/nsThread.cpp:350
#9 0x7f83c3948405 in _pt_root /builds/slave/m-cen-l64-asan-000000000000000/build/src/nsprpub/pr/src/pthreads/ptthread.c:212
#10 0x7f83c6e80181 in start_thread /build/buildd/eglibc-2.19/nptl/pthread_create.c:312 (discriminator 2)
#11 0x7f83c5f72fbc in clone /build/buildd/eglibc-2.19/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:111
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 15 February 2015 as CVE-2015-0813.
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.