heap-use-after-free at assign_assuming_AddRef
- Fixed in 3 days
- Paid in 3 months
- Disclosed after 3 days
Created attachment 8592628
ff-uaf-assign_assuming_AddRef.xhtml
ASan spots a use after free at least in current tinderbox builds when the attached page is opened. Filing under XPCOM, since that's where the memory is touched erroneously, but also sounds like a DOM node event being handled after it got deleted.
==5661==ERROR: AddressSanitizer: heap-use-after-free on address 0x611000182f80 at pc 0x7fe623afbdc8 bp 0x7ffef0d49f70 sp 0x7ffef0d49f68
READ of size 8 at 0x611000182f80 thread T0 (Web Content)
#0 0x7fe623afbdc7 in assign_assuming_AddRef /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/build/../glue/nsCOMPtr.h:336
#1 0x7fe623c0fa28 in operator= /builds/slave/m-cen-l64-asan-000000000000000/build/src/obj-firefox/netwerk/base/../../dist/include/nsCOMPtr.h:850
#2 0x7fe623c0fbfc in non-virtual thunk to nsBaseChannel::OnStopRequest(nsIRequest*, nsISupports*, nsresult) /builds/slave/m-cen-l64-asan-000000000000000/build/src/obj-firefox/netwerk/base/Unified_cpp_netwerk_base1.cpp:785
#3 0x7fe623c4f15d in OnStateStop /builds/slave/m-cen-l64-asan-000000000000000/build/src/netwerk/base/nsInputStreamPump.cpp:721
#4 0x7fe623c4d2e9 in OnInputStreamReady /builds/slave/m-cen-l64-asan-000000000000000/build/src/netwerk/base/nsInputStreamPump.cpp:440
#5 0x7fe623a727c9 in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/io/nsStreamUtils.cpp:91
#6 0x7fe623aaec74 in ProcessNextEvent /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/threads/nsThread.cpp:866
#7 0x7fe623b10c0a in NS_ProcessNextEvent /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/glue/nsThreadUtils.cpp:265
#8 0x7fe624368da9 in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessagePump.cpp:99
#9 0x7fe6242f6aec in RunInternal /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:233
#10 0x7fe628dc44b7 in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/widget/nsBaseAppShell.cpp:164
#11 0x7fe62a953872 in XRE_RunAppShell /builds/slave/m-cen-l64-asan-000000000000000/build/src/toolkit/xre/nsEmbedFunctions.cpp:738
#12 0x7fe6242f6aec in RunInternal /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:233
#13 0x7fe62a952ee2 in XRE_InitChildProcess /builds/slave/m-cen-l64-asan-000000000000000/build/src/toolkit/xre/nsEmbedFunctions.cpp:575
#14 0x48d252 in content_process_main /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/app/../contentproc/plugin-container.cpp:236
#15 0x7fe6216bdeac in ?? ??:0
#16 0x48c5ac in _start ??:0
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 DOM: Core & HTML. Mozilla made it public on 17 April 2015.
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.