Use after free in Extensions (CVE-2026-19558)
A use-after-free occurs in Chrome's extension event dispatch when a listener throws and accessing exception.stack re-enters JavaScript, tearing down the extension context while dispatch continues with stale state. An attacker could crash the sandboxed extension renderer and potentially reuse freed memory with controlled data.
- Fix shipped in 23 days
Report description
Extension UAF due to reentrant exception.stack access during event dispatch
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
The problem
Please describe the technical details of the vulnerability
VULNERABILITY DETAILS
Summary
A renderer use-after-free occurs in EventEmitter::DispatchSync() when an extension event listener throws and triggers reentrant JS execution through exception.stack access. The reentrancy can tear down the extension context, clear per-context runner state, and then DispatchSync() continues execution using stale state, leading to a crash in a sandboxed extension renderer process.
Details
There are two PoC variants. One demonstrates a deterministic UAF, and the other demonstrates controllable memory reuse after reclaim.
-
event_stack_getter(UAF)chrome.storage.onChangeddispatch entersEventEmitter::DispatchSync()and snapshots listener state. When a listener throws,ExceptionHandler::HandleException()readsexception.stack. Thestackgetter reenters JS during dispatch. The reentrant execution removes the extension iframe, triggering context teardown. During teardown, the context runner (JSRunner) is cleared from per-context storage, but the event-dispatch flow continues and still uses stale dispatch state (EventEmitter,JSRunner), resulting in a use-after-free during dispatch. The UAF is observed at the synchronous dispatch call path that runs callbacks throughJSRunnerinEventEmitter::DispatchSync(). -
event_stack_getter_webrequest_reclaim(reclaim)Before staring this version, set
ASAN_OPTIONS="quarantine_size_mb=0:...". In the reclaim variant, an accessor-bearingextraInfoarray is used inchrome.webRequest.onBeforeRequest.addListener(...). Controlled reads of those accessors provide attacker-controlledArrayBufferdata.V8ValueConverterconversion materializes this into nativebase::BlobStorageobjects, allowing predictable native allocation behavior. After the stale-state UAF condition is triggered, this setup just shows reuse of the freed slot with controlled native data.
VERSION
Chromium: Tested on asan-linux-release-1664338, 152.0.7958.0
REPRODUCTION CASE
The following steps can be fully automated via the extension background service worker.
Run Chrome (for the second variant, add quarantine_size_mb=0:):
ASAN_OPTIONS="symbolize=1:print_stacktrace=1:halt_on_error=1:abort_on_error=0:detect_leaks=0:external_symbolizer_path=/path/to/llvm-symbolizer" \
/path/to/chrome \
--user-data-dir=/tmp/poc1 \
--load-extension=/path/to/extension/ \
about:blank
Open chrome://newtab to load top.html in the extension context
Open DevTools on the parent frame and run window.TRIGGER()
Without --no-sandbox, ASAN symbols were not fully resolved, so I used:
python3 /path/to/chromium/src/tools/valgrind/asan/asan_symbolize.py < /path/to/asan.log
Attached as poc.mov which shows the full repro steps.
Impact analysis
This demonstrates controlled native memory reuseof a stale object allocation after UAF. By itself, it does not yet establish full AAR/AAW.
The cause
What version of Chrome have you found the security issue in?
Chromium: Tested on asan-linux-release-1664338, 152.0.7958.0
Is the security issue related to a crash?
Yes, it is related to a crash.
Choose the type of vulnerability
Memory Corruption (in a sandboxed process)
How would you like to be publicly acknowledged for your report?
@bean5oup
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the event dispatcher does not expect reentrant JavaScript execution during exception handling and continues using state that has been freed by context teardown.
Impact
The vulnerability causes a crash in the sandboxed extension renderer and allows controlled native memory reuse, but does not yet establish full arbitrary read/write.
What the attacker needed
Victim installs a malicious extension; victim opens a page in the extension context
How it was found
- Load a malicious extension and open a page in its context.
- Trigger the extension's event dispatch via a JavaScript call.
- The listener throws, causing exception.stack to be read and re-entering JavaScript.
- The reentrant code removes the extension iframe, tearing down the context.
- Dispatch continues with stale state, causing a use-after-free crash.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When an extension event fires, Chrome runs the listener's code. If that code throws an error, Chrome reads the error's stack property, which can run more JavaScript. That extra code can remove the extension's page, freeing memory that the event dispatcher still uses, causing a crash.
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.