AddressSanitizer: heap-buffer-overflow (READ of size 8) ipc/ipdl/PContentParent.cpp:3724
Originally disclosed on Mozilla
- Fixed in 53 days
- Paid in 58 days
- Disclosed after 53 days
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Steps to reproduce:
I'm trying to reproduce again, if anyone wants to check it out (tested in firefox-47.0a1). Thank you!
Actual results:
================================================================= ==9358==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60c000bdcac0 at pc 0x7f1593bac50f bp 0x7ffd5d2ab330 sp 0x7ffd5d2ab328 READ of size 8 at 0x60c000bdcac0 thread T0 #0 0x7f1593bac50e in mozilla::dom::PContentParent::OnMessageReceived(IPC::Message const&) /builds/slave/m-cen-l64-asan-000000000000000/build/src/obj-firefox/ipc/ipdl/PContentParent.cpp:3724 #1 0x7f15933270fc in mozilla::ipc::MessageChannel::DispatchAsyncMessage(IPC::Message const&) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessageChannel.cpp:1477 #2 0x7f15933246dc in mozilla::ipc::MessageChannel::DispatchMessage(IPC::Message const&) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessageChannel.cpp:1412 #3 0x7f1593314542 in mozilla::ipc::MessageChannel::OnMaybeDequeueOne() /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessageChannel.cpp:1381 #4 0x7f1593299f44 in RunTask /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:364 #5 0x7f1593299f44 in MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask const&) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:372 #6 0x7f159329aff7 in MessageLoop::DoWork() /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:459 #7 0x7f159332ed32 in mozilla::ipc::DoWorkRunnable::Run() /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessagePump.cpp:220 #8 0x7f159290751f in nsThread::ProcessNextEvent(bool, bool*) /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/threads/nsThread.cpp:995 #9 0x7f159298281a in NS_ProcessNextEvent(nsIThread*, bool) /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/glue/nsThreadUtils.cpp:297 #10 0x7f159332e369 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessagePump.cpp:95 #11 0x7f1593298acc in RunInternal /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:234 #12 0x7f1593298acc in RunHandler /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:227 #13 0x7f1593298acc in MessageLoop::Run() /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:201 #14 0x7f15986a0857 in nsBaseAppShell::Run() /builds/slave/m-cen-l64-asan-000000000000000/build/src/widget/nsBaseAppShell.cpp:156 #15 0x7f159a4de078 in nsAppStartup::Run() /builds/slave/m-cen-l64-asan-000000000000000/build/src/toolkit/components/startup/nsAppStartup.cpp:281 #16 0x7f159a5e0b3a in XREMain::XRE_mainRun() /builds/slave/m-cen-l64-asan-000000000000000/build/src/toolkit/xre/nsAppRunner.cpp:4278 #17 0x7f159a5e1da6 in XREMain::XRE_main(int, char**, nsXREAppData const*) /builds/slave/m-cen-l64-asan-000000000000000/build/src/toolkit/xre/nsAppRunner.cpp:4375 #18 0x7f159a5e2bee in XRE_main /builds/slave/m-cen-l64-asan-000000000000000/build/src/toolkit/xre/nsAppRunner.cpp:4477 #19 0x48a6c9 in do_main /builds/slave/m-cen-l64-asan-000000000000000/build/src/browser/app/nsBrowserApp.cpp:212 #20 0x48a6c9 in main /builds/slave/m-cen-l64-asan-000000000000000/build/src/browser/app/nsBrowserApp.cpp:352 #21 0x7f15c19456ff in __libc_start_main (/lib64/libc.so.6+0x206ff) #22 0x489c3c in _start (/home/revskillz/browsers/firefox/firefox-bin+0x489c3c)
AddressSanitizer can not describe address in more detail (wild memory access suspected). SUMMARY: AddressSanitizer: heap-buffer-overflow /builds/slave/m-cen-l64-asan-000000000000000/build/src/obj-firefox/ipc/ipdl/PContentParent.cpp:3724 mozilla::dom::PContentParent::OnMessageReceived(IPC::Message const&) Shadow bytes around the buggy address: 0x0c1880173900: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c1880173910: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c1880173920: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c1880173930: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x0c1880173940: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c1880173950: fa fa fa fa fa fa fa fa[fa]fa fa fa fa fa fa fa 0x0c1880173960: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c1880173970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa 0x0c1880173980: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c1880173990: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x0c18801739a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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 right 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 Contiguous container OOB:fc ASan internal: fe ==9358==ABORTING [Child 9779] ###!!! ABORT: Aborting on channel error.: file /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 1857 [Child 9779] ###!!! ABORT: Aborting on channel error.: file /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 1857 ASAN:SIGSEGV
==9779==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000048e1de sp 0x7f6b0f85bcc0 bp 0x7f6b0f85bcd0 T2) ==9779==AddressSanitizer: while reporting a bug found another one.Ignoring. #0 0x48e1dd in mozalloc_abort(char const*) /builds/slave/m-cen-l64-asan-000000000000000/build/src/memory/mozalloc/mozalloc_abort.cpp:33 #1 0x7f6b2ffb9c75 in Abort(char const*) /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/base/nsDebugImpl.cpp:452 #2 0x7f6b2ffb993e in NS_DebugBreak /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/base/nsDebugImpl.cpp:404 #3 0x7f6b30b11bc1 in mozilla::ipc::MessageChannel::OnChannelErrorFromLink() /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessageChannel.cpp:1857 #4 0x7f6b30b16be0 in OnChannelError /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessageLink.cpp:429 #5 0x7f6b30b16be0 in non-virtual thunk to mozilla::ipc::ProcessLink::OnChannelError() /builds/slave/m-cen-l64-asan-000000000000000/build/src/obj-firefox/ipc/glue/Unified_cpp_ipc_glue0.cpp:430 #6 0x7f6b30ad8492 in event_process_active_single_queue /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/third_party/libevent/event.c:1350 #7 0x7f6b30ad8492 in event_process_active /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/third_party/libevent/event.c:1420 #8 0x7f6b30ad8492 in event_base_loop /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/third_party/libevent/event.c:1621 #9 0x7f6b30a86f5c in base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_pump_libevent.cc:362 #10 0x7f6b30a81acc in RunInternal /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:234 #11 0x7f6b30a81acc in RunHandler /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:227 #12 0x7f6b30a81acc in MessageLoop::Run() /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:201 #13 0x7f6b30a99a73 in base::Thread::ThreadMain() /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/thread.cc:172 #14 0x7f6b30a9b32c in ThreadFunc(void*) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/platform_thread_posix.cc:36 #15 0x7f6b3e620554 in start_thread (/lib64/libpthread.so.0+0x7554) #16 0x7f6b2d9ffb9c in __clone (/lib64/libc.so.6+0x102b9c)
AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /builds/slave/m-cen-l64-asan-000000000000000/build/src/memory/mozalloc/mozalloc_abort.cpp:33 mozalloc_abort(char const*) Thread T2 (Chrome_ChildThr) created by T0 (Web Content) here: #0 0x461945 in pthread_create /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:175 #1 0x7f6b30a99654 in CreateThread /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/platform_thread_posix.cc:135 #2 0x7f6b30a99654 in Create /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/platform_thread_posix.cc:146 #3 0x7f6b30a99654 in base::Thread::StartWithOptions(base::Thread::Options const&) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/thread.cc:94 #4 0x7f6b30b1886b in mozilla::ipc::ProcessChild::ProcessChild(int) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/ProcessChild.cpp:22 #5 0x7f6b37dd0349 in operator new /builds/slave/m-cen-l64-asan-000000000000000/build/src/obj-firefox/dist/include/mozilla/dom/ContentProcess.h:28 #6 0x7f6b37dd0349 in XRE_InitChildProcess /builds/slave/m-cen-l64-asan-000000000000000/build/src/toolkit/xre/nsEmbedFunctions.cpp:574 #7 0x48d760 in content_process_main(int, char**) /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/app/../contentproc/plugin-container.cpp:237 #8 0x7f6b2d91d6ff in __libc_start_main (/lib64/libc.so.6+0x206ff)
==9779==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 high-severity memory corruption bug in IPC. Mozilla made it public on 23 March 2016.
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.