Heap-use-after-free in mozilla::plugins::child::_geturlnotify
Originally disclosed on Mozilla
- Fixed in 49 days
- Paid in 4 months
- Disclosed after 49 days
=================================================================
==24578== ERROR: AddressSanitizer: heap-use-after-free on address 0x600e0000f6a8 at pc 0x7fb7fe7fe517 bp 0x7fffb031f0f0 sp 0x7fffb031f0e8
WRITE of size 8 at 0x600e0000f6a8 thread T0
#0 0x7fb7fe7fe516 in mozilla::plugins::child::_geturlnotify(_NPP*, char const*, char const*, void*) src/../../../dist/include/mozilla/plugins/StreamNotifyChild.h:32
#1 0x7fb7ee257bea in
#2 0x7fb7ee11e561 in
#3 0x7fb7ee1564c2 in
#4 0x7fb7ee0ba021 in
#5 0x7fb7ee0ef4ea in
#6 0x7fb7ee0efbd9 in
#7 0x7fb7ee2ab585 in
#8 0x7fb7ee254f54 in
#9 0x7fb7f87a491a in
#10 0x7fb7f87a3d52 in
#11 0x7fb7f87a409f in
#12 0x7fb7f87a4163 in
#13 0x7fb7ff21004a in base::MessagePumpForUI::RunWithDispatcher(base::MessagePump::Delegate*, base::MessagePumpForUI::Dispatcher*) src/ipc/chromium/src/base/message_pump_glib.cc:195
#14 0x7fb7ff1d0b09 in MessageLoop::Run() src/ipc/chromium/src/base/message_loop.cc:216
#15 0x7fb7fb8c9e89 in XRE_InitChildProcess src/toolkit/xre/nsEmbedFunctions.cpp:494
#16 0x42435d in main src/ipc/app/MozillaRuntimeMain.cpp:48
#17 0x7fb7f9f2976c in
#18 0x424264 in
0x600e0000f6a8 is located 56 bytes inside of 72-byte region [0x600e0000f670,0x600e0000f6b8)
freed by thread T0 here:
#0 0x4180d2 in __interceptor_free
#1 0x7fb7fe7e5ecc in mozilla::plugins::PluginInstanceChild::DeallocPStreamNotify(mozilla::plugins::PStreamNotifyChild*) src/dom/plugins/ipc/PluginInstanceChild.cpp:2406
#2 0x7fb7fe9bf9fb in mozilla::plugins::PPluginInstanceChild::CallPStreamNotifyConstructor(mozilla::plugins::PStreamNotifyChild*, nsCString const&, nsCString const&, bool const&, nsCString const&, bool const&, short*) src/objdir-ff-asan/ipc/ipdl/PPluginInstanceChild.cpp:821
#3 0x7fb7fe7fe37b in mozilla::plugins::child::_geturlnotify(_NPP*, char const*, char const*, void*) src/dom/plugins/ipc/PluginModuleChild.cpp:1055
#4 0x7fb7ee257bea in
previously allocated by thread T0 here:
#0 0x4181b2 in __interceptor_malloc
#1 0x7fb80383e418 in moz_xmalloc src/memory/mozalloc/mozalloc.cpp:54
#2 0x7fb7ee257bea in
Shadow bytes around the buggy address:
0x0c023fff9e80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c023fff9e90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c023fff9ea0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c023fff9eb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c023fff9ec0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fd fd
=>0x0c023fff9ed0: fd fd fd fd fd[fd]fd fa fa fa fa fa 00 00 00 00
0x0c023fff9ee0: 00 00 00 00 00 fa fa fa fa fa fd fd fd fd fd fd
0x0c023fff9ef0: fd fd fd fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c023fff9f00: 00 fa fa fa fa fa 00 00 00 00 00 00 00 00 00 fa
0x0c023fff9f10: fa fa fa fa 00 00 00 00 00 00 00 00 00 fa fa fa
0x0c023fff9f20: fa fa fd fd fd fd fd fd fd fd fd 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
==24578== 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 Plug-ins. Mozilla made it public on 23 April 2013 as CVE-2013-1679.
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.