Skip to content
Memory corruption Disclosed report CVE-2016-2811

Service Worker - Use After Free in BeginReading()

Looben Yang Follow

Originally disclosed on Mozilla

  • Fixed in 21 days
  • Paid in 21 days
  • Disclosed after 21 days

Firefox version: 47.0a1 (2016-02-28)

================================================================= ==5198==ERROR: AddressSanitizer: heap-use-after-free on address 0x60b00080aea8 at pc 0x7f0b32eb6c30 bp 0x7fff95e16fc0 sp 0x7fff95e16fb8 READ of size 8 at 0x60b00080aea8 thread T0 #0 0x7f0b32eb6c2f in BeginReading /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsTSubstring.h:104 #1 0x7f0b32eb6c2f in HashString /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsHashKeys.h:41 #2 0x7f0b32eb6c2f in HashKey /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsHashKeys.h:185 #3 0x7f0b32eb6c2f in nsTHashtable<nsBaseHashtableET<nsCStringHashKey, nsAutoPtr<nsTArray<nsIInterceptedChannel*> > > >::s_HashKey(PLDHashTable*, void const*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsTHashtable.h:375 #4 0x7f0b2d56f809 in ComputeKeyHash /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/glue/PLDHashTable.cpp:504 #5 0x7f0b2d56f809 in PLDHashTable::Add(void const*, mozilla::fallible_t const&) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/glue/PLDHashTable.cpp:573 #6 0x7f0b2d56fdbe in PLDHashTable::Add(void const*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/glue/PLDHashTable.cpp:594 #7 0x7f0b32e3366f in PutEntry /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsTHashtable.h:153 #8 0x7f0b32e3366f in LookupOrAdd /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsClassHashtable.h:79 #9 0x7f0b32e3366f in mozilla::dom::workers::ServiceWorkerManager::AddNavigationInterception(nsACString_internal const&, nsIInterceptedChannel*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:4925 #10 0x7f0b32e328f7 in mozilla::dom::workers::ServiceWorkerManager::DispatchFetchEvent(mozilla::PrincipalOriginAttributes const&, nsIDocument*, nsAString_internal const&, nsIInterceptedChannel*, bool, bool, mozilla::ErrorResult&) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:3698 #11 0x7f0b3497cab5 in nsDocShell::ChannelIntercepted(nsIInterceptedChannel*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/docshell/base/nsDocShell.cpp:14266 #12 0x7f0b2daf9b36 in DoNotifyController /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/InterceptedChannel.cpp:76 #13 0x7f0b2daf9b36 in mozilla::net::InterceptedChannelChrome::NotifyController() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/InterceptedChannel.cpp:170 #14 0x7f0b2db84bcf in mozilla::net::nsHttpChannel::OpenCacheEntry(bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:3034 #15 0x7f0b2db81e27 in mozilla::net::nsHttpChannel::Connect() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:357 #16 0x7f0b2dbbd9ae in mozilla::net::nsHttpChannel::ContinueBeginConnectWithResult() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:5482 #17 0x7f0b2dbbc13f in mozilla::net::nsHttpChannel::BeginConnect() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:5385 #18 0x7f0b2dbbee32 in mozilla::net::nsHttpChannel::OnProxyAvailable(nsICancelable*, nsIChannel*, nsIProxyInfo*, nsresult) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:5552 #19 0x7f0b2d721cfc in nsAsyncResolveRequest::DoCallback() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/base/nsProtocolProxyService.cpp:277 #20 0x7f0b2d712038 in Run /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/base/nsProtocolProxyService.cpp:159 #21 0x7f0b2d712038 in nsProtocolProxyService::AsyncResolveInternal(nsIChannel*, unsigned int, nsIProtocolProxyCallback*, nsICancelable**, bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/base/nsProtocolProxyService.cpp:1294 #22 0x7f0b2dba52f5 in mozilla::net::nsHttpChannel::ResolveProxy() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:2200 #23 0x7f0b2dbb8256 in mozilla::net::nsHttpChannel::AsyncOpen(nsIStreamListener*, nsISupports*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:5092 #24 0x7f0b2ef33d14 in nsURILoader::OpenURI(nsIChannel*, unsigned int, nsIInterfaceRequestor*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/uriloader/base/nsURILoader.cpp:825 #25 0x7f0b34909997 in nsDocShell::DoChannelLoad(nsIChannel*, nsIURILoader*, bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/docshell/base/nsDocShell.cpp:11058 #26 0x7f0b34963709 in nsDocShell::DoURILoad(nsIURI*, nsIURI*, bool, nsIURI*, bool, unsigned int, nsISupports*, char const*, nsAString_internal const&, nsIInputStream*, nsIInputStream*, bool, nsIDocShell**, nsIRequest**, bool, bool, bool, nsAString_internal const&, nsIURI*, unsigned int) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/docshell/base/nsDocShell.cpp:10872 #27 0x7f0b349083ba in nsDocShell::InternalLoad(nsIURI*, nsIURI*, bool, nsIURI*, unsigned int, nsISupports*, unsigned int, char16_t const*, char const*, nsAString_internal const&, nsIInputStream*, nsIInputStream*, unsigned int, nsISHEntry*, bool, nsAString_internal const&, nsIDocShell*, nsIURI*, nsIDocShell**, nsIRequest**) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/docshell/base/nsDocShell.cpp:10389 #28 0x7f0b3490027e in nsDocShell::LoadHistoryEntry(nsISHEntry*, unsigned int) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/docshell/base/nsDocShell.cpp:12175 #29 0x7f0b34933278 in nsDocShell::Reload(unsigned int) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/docshell/base/nsDocShell.cpp:5330 #30 0x7f0b2fe0594a in nsLocation::Reload(bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/base/nsLocation.cpp:887 #31 0x7f0b303eac98 in Reload /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/base/nsLocation.h:67 #32 0x7f0b303eac98 in mozilla::dom::LocationBinding::reload(JSContext*, JS::Handle<JSObject*>, nsLocation*, JSJitMethodCallArgs const&) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dom/bindings/LocationBinding.cpp:745 #33 0x7f0b3197eb56 in mozilla::dom::GenericBindingMethod(JSContext*, unsigned int, JS::Value*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/bindings/BindingUtils.cpp:2731 #34 0x7f0b376ed3e9 in CallJSNative /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/js/src/jscntxtinlines.h:235 #35 0x7f0b376ed3e9 in js::Invoke(JSContext*, JS::CallArgs const&, js::MaybeConstruct) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/js/src/vm/Interpreter.cpp:478 #36 0x7f0b376d89b2 in Interpret(JSContext*, js::RunState&) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/js/src/vm/Interpreter.cpp:2802 #37 0x7f0b376b98ee in js::RunScript(JSContext*, js::RunState&) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/js/src/vm/Interpreter.cpp:428 #38 0x7f0b376ed9d4 in js::Invoke(JSContext*, JS::CallArgs const&, js::MaybeConstruct) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/js/src/vm/Interpreter.cpp:496 #39 0x7f0b376ee3d4 in js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value const*, JS::MutableHandleJS::Value) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/js/src/vm/Interpreter.cpp:530 #40 0x7f0b371e49ef in JS::Call(JSContext*, JS::HandleJS::Value, JS::HandleJS::Value, JS::HandleValueArray const&, JS::MutableHandleJS::Value) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/js/src/jsapi.cpp:2892 #41 0x7f0b31605372 in mozilla::dom::Function::Call(JSContext*, JS::HandleJS::Value, nsTArrayJS::Value const&, JS::MutableHandleJS::Value, mozilla::ErrorResult&) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dom/bindings/FunctionBinding.cpp:36 #42 0x7f0b2f9feae8 in Call<nsCOMPtr<nsISupports> > /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/mozilla/dom/FunctionBinding.h:58 #43 0x7f0b2f9feae8 in nsGlobalWindow::RunTimeoutHandler(nsTimeout*, nsIScriptContext*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/base/nsGlobalWindow.cpp:11933 #44 0x7f0b2f9dde8f in nsGlobalWindow::RunTimeout(nsTimeout*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/base/nsGlobalWindow.cpp:12168 #45 0x7f0b2f97dd51 in nsGlobalWindow::TimerCallback(nsITimer*, void*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/base/nsGlobalWindow.cpp:12414 #46 0x7f0b2d530bb5 in nsTimerImpl::Fire() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/threads/nsTimerImpl.cpp:526 #47 0x7f0b2d50b025 in nsTimerEvent::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/threads/TimerThread.cpp:286 #48 0x7f0b2d517440 in nsThread::ProcessNextEvent(bool, bool*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/threads/nsThread.cpp:1018 #49 0x7f0b2d590bca in NS_ProcessNextEvent(nsIThread*, bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/glue/nsThreadUtils.cpp:297 #50 0x7f0b2df32f39 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/glue/MessagePump.cpp:95 #51 0x7f0b2de9a0ac in RunInternal /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:234 #52 0x7f0b2de9a0ac in RunHandler /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:227 #53 0x7f0b2de9a0ac in MessageLoop::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:201 #54 0x7f0b333a66b7 in nsBaseAppShell::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/widget/nsBaseAppShell.cpp:156 #55 0x7f0b3521d008 in nsAppStartup::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/components/startup/nsAppStartup.cpp:281 #56 0x7f0b3531324a in XREMain::XRE_mainRun() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4281 #57 0x7f0b353144b6 in XREMain::XRE_main(int, char**, nsXREAppData const*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4378 #58 0x7f0b353152fe in XRE_main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4480 #59 0x48a793 in do_main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/browser/app/nsBrowserApp.cpp:220 #60 0x48a793 in main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/browser/app/nsBrowserApp.cpp:360 #61 0x7f0b46799ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4) #62 0x489bcc in _start (/home/parnell/FirefoxBuilds/firefox/firefox+0x489bcc)

0x60b00080aea8 is located 40 bytes inside of 104-byte region [0x60b00080ae80,0x60b00080aee8) freed by thread T0 here: #0 0x471fe1 in __interceptor_free /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64 #1 0x7f0b32eb8c5f in Release /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:453 #2 0x7f0b32eb8c5f in Release /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/mozilla/RefPtr.h:39 #3 0x7f0b32eb8c5f in Release /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/mozilla/RefPtr.h:377 #4 0x7f0b32eb8c5f in assign_assuming_AddRef /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/mozilla/RefPtr.h:64 #5 0x7f0b32eb8c5f in assign_with_AddRef /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/mozilla/RefPtr.h:55 #6 0x7f0b32eb8c5f in operator= /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/mozilla/RefPtr.h:174 #7 0x7f0b32eb8c5f in mozilla::dom::workers::ServiceWorkerJobBase::EnsureAndVerifyRegistration() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:997 #8 0x7f0b32e196a1 in mozilla::dom::workers::ServiceWorkerInstallJob::ContinueAfterInstallEvent(bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:1201 #9 0x7f0b32ee62c8 in mozilla::dom::workers::ContinueLifecycleRunnable::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:689 #10 0x7f0b2d517440 in nsThread::ProcessNextEvent(bool, bool*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/threads/nsThread.cpp:1018 #11 0x7f0b2d590bca in NS_ProcessNextEvent(nsIThread*, bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/glue/nsThreadUtils.cpp:297 #12 0x7f0b2df32f39 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/glue/MessagePump.cpp:95 #13 0x7f0b2de9a0ac in RunInternal /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:234 #14 0x7f0b2de9a0ac in RunHandler /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:227 #15 0x7f0b2de9a0ac in MessageLoop::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:201 #16 0x7f0b333a66b7 in nsBaseAppShell::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/widget/nsBaseAppShell.cpp:156 #17 0x7f0b3521d008 in nsAppStartup::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/components/startup/nsAppStartup.cpp:281 #18 0x7f0b3531324a in XREMain::XRE_mainRun() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4281 #19 0x7f0b353144b6 in XREMain::XRE_main(int, char**, nsXREAppData const*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4378 #20 0x7f0b353152fe in XRE_main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4480 #21 0x48a793 in do_main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/browser/app/nsBrowserApp.cpp:220 #22 0x48a793 in main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/browser/app/nsBrowserApp.cpp:360 #23 0x7f0b46799ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)

previously allocated by thread T0 here: #0 0x4721e1 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 #1 0x48b8dd in moz_xmalloc /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/memory/mozalloc/mozalloc.cpp:83 #2 0x7f0b32eac69d in operator new /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:186 #3 0x7f0b32eac69d in operator nsIPrincipal * /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:4304 #4 0x7f0b32eac69d in mozilla::dom::workers::ServiceWorkerRegisterJob::Start() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:1335 #5 0x7f0b32ee9408 in mozilla::dom::workers::ServiceWorkerJobQueue::Pop(mozilla::dom::workers::ServiceWorkerJobQueue::QueueData&) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/dom/workers/ServiceWorkerManager.cpp:292 #6 0x7f0b32ee20b0 in apply<mozilla::dom::workers::ServiceWorkerUnregisterJob, void (mozilla::dom::workers::ServiceWorkerUnregisterJob::)()> /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsThreadUtils.h:663 #7 0x7f0b32ee20b0 in nsRunnableMethodImpl<void (mozilla::dom::workers::ServiceWorkerUnregisterJob::)(), true>::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsThreadUtils.h:870 #8 0x7f0b2d517440 in nsThread::ProcessNextEvent(bool, bool*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/threads/nsThread.cpp:1018 #9 0x7f0b2d590bca in NS_ProcessNextEvent(nsIThread*, bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/xpcom/glue/nsThreadUtils.cpp:297 #10 0x7f0b2df32f39 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/glue/MessagePump.cpp:95 #11 0x7f0b2de9a0ac in RunInternal /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:234 #12 0x7f0b2de9a0ac in RunHandler /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:227 #13 0x7f0b2de9a0ac in MessageLoop::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/ipc/chromium/src/base/message_loop.cc:201 #14 0x7f0b333a66b7 in nsBaseAppShell::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/widget/nsBaseAppShell.cpp:156 #15 0x7f0b3521d008 in nsAppStartup::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/components/startup/nsAppStartup.cpp:281 #16 0x7f0b3531324a in XREMain::XRE_mainRun() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4281 #17 0x7f0b353144b6 in XREMain::XRE_main(int, char**, nsXREAppData const*) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4378 #18 0x7f0b353152fe in XRE_main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/toolkit/xre/nsAppRunner.cpp:4480 #19 0x48a793 in do_main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/browser/app/nsBrowserApp.cpp:220 #20 0x48a793 in main /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/browser/app/nsBrowserApp.cpp:360 #21 0x7f0b46799ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)

SUMMARY: AddressSanitizer: heap-use-after-free /builds/slave/m-cen-l64-asan-ntly-0000000000/build/src/obj-firefox/dist/include/nsTSubstring.h:104 BeginReading Shadow bytes around the buggy address: 0x0c16800f9580: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c16800f9590: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c16800f95a0: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd 0x0c16800f95b0: fd fa fa fa fa fa fa fa fa fa 00 00 00 00 00 00 0x0c16800f95c0: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa =>0x0c16800f95d0: fd fd fd fd fd[fd]fd fd fd fd fd fd fd fa fa fa 0x0c16800f95e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c16800f95f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c16800f9600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c16800f9610: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c16800f9620: fa fa fa fa fa fa fa fa fa fa fa 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 right redzone: =5198==ABORTING

The original report as published on Mozilla's Bugzilla, by Looben Yang. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 DOM: Service Workers. Mozilla made it public on 21 March 2016 as CVE-2016-2811.

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.

More by Looben Yang

View all

50 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.