Use after free in Extensions (CVE-2026-3919)
A use-after-free occurs in Chrome's extension bindings when a context is invalidated during extension unload, because a callback is destroyed before its listener. An attacker could potentially exploit this to crash the browser or execute arbitrary code.
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
Steps to reproduce the problem
- load extension poc.zip. (**disable --no-sandbox **; If it does not crash, try several times.)
Problem Description
In the process of UnloadExtension when extensions::APIBindingsSystem::WillReleaseContext(v8::Local<v8::Context>) triggers context invalidation. During context invalidation, a ContextInvalidationListener attempts to access its base::OnceClosure callback after the callback has already been destroyed, resulting in a use-after-poison error when checking the callback's validity in OnInvalidated().
This indicates a lifetime management issue where the callback object is destroyed before its associated ContextInvalidationListener, possibly due to incorrect destruction ordering or missing cleanup mechanisms during context release.
fix: Ensure ContextInvalidationListener unregisters itself or uses weak pointers to handle callback invalidation safely.
Summary
use-after-poison in ContextInvalidationListener
Custom Questions
Crash state:
=================================================================
==3775476==ERROR: AddressSanitizer: use-after-poison on address 0x7eac00559a58 at pc 0x615e5703021b bp 0x7ffe2d0cbbb0 sp 0x7ffe2d0cbba8
READ of size 8 at 0x7eac00559a58 thread T0 (chrome)
#0 0x615e5703021a in operator bool base/memory/scoped_refptr.h:319:43
#1 0x615e5703021a in is_null base/functional/callback_internal.h:140:34
#2 0x615e5703021a in operator bool base/functional/callback_internal.h:141:44
#3 0x615e5703021a in operator bool base/functional/callback.h:110:45
#4 0x615e5703021a in OnInvalidated extensions/renderer/bindings/api_binding_util.cc:167:3
#5 0x615e5703021a in extensions::binding::ContextInvalidationData::Invalidate() extensions/renderer/bindings/api_binding_util.cc:84:14
#6 0x615e57036bb7 in extensions::APIBindingsSystem::WillReleaseContext(v8::Local<v8::Context>) extensions/renderer/bindings/api_bindings_system.cc:159:3
#7 0x615e57138587 in extensions::NativeExtensionBindingsSystem::WillReleaseScriptContext(extensions::ScriptContext*) extensions/renderer/native_extension_bindings_system.cc:525:15
#8 0x615e570c3ebf in Invoke<void (extensions::NativeExtensionBindingsSystem::*)(extensions::ScriptContext *), extensions::NativeExtensionBindingsSystem *, extensions::ScriptContext *> base/functional/bind_internal.h:730:12
#9 0x615e570c3ebf in MakeItSo<void (extensions::NativeExtensionBindingsSystem::*const &)(extensions::ScriptContext *), const std::__Cr::tuple<base::internal::UnretainedWrapper<extensions::NativeExtensionBindingsSystem, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &, extensions::ScriptContext *> base/functional/bind_internal.h:922:12
#10 0x615e570c3ebf in RunImpl<void (extensions::NativeExtensionBindingsSystem::*const &)(extensions::ScriptContext *), const std::__Cr::tuple<base::internal::UnretainedWrapper<extensions::NativeExtensionBindingsSystem, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &, 0UL> base/functional/bind_internal.h:1059:14
#11 0x615e570c3ebf in base::internal::Invoker<base::internal::FunctorTraits<void (extensions::NativeExtensionBindingsSystem::* const&)(extensions::ScriptContext*), extensions::NativeExtensionBindingsSystem*>, base::internal::BindState<true, true, false, void (extensions::NativeExtensionBindingsSystem::*)(extensions::ScriptContext*), base::internal::UnretainedWrapper<extensions::NativeExtensionBindingsSystem, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void (extensions::ScriptContext*)>::Run(base::internal::BindStateBase*, extensions::ScriptContext*) base/functional/bind_internal.h:979:12
#12 0x615e57175949 in base::RepeatingCallback<void (extensions::ScriptContext*)>::Run(extensions::ScriptContext*) const & base/functional/callback.h:343:12
#13 0x615e5717520b in ExecuteCallbackWithContext extensions/renderer/script_context_set.cc:202:14
#14 0x615e5717520b in extensions::ScriptContextSet::ForEach(extensions::mojom::HostID const&, content::RenderFrame*, base::RepeatingCallback<void (extensions::ScriptContext*)> const&) extensions/renderer/script_context_set.cc:175:11
#15 0x615e570b59a6 in extensions::Dispatcher::UnloadExtension(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&) extensions/renderer/dispatcher.cc:1185:24
#16 0x615e4e2f1377 in extensions::mojom::RendererStubDispatch::Accept(extensions::mojom::Renderer*, mojo::Message*) gen/extensions/common/mojom/renderer.mojom.cc:2779:13
#17 0x615e58c0e8a2 in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:1059:54
#18 0x615e58c38fbb in mojo::MessageDispatcher::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/message_dispatcher.cc:43:19
#19 0x615e58c15d88 in mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:731:20
#20 0x615e5db96a4f in IPC::ChannelAssociatedGroupController::AcceptOnEndpointThread(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification) ipc/ipc_mojo_bootstrap.cc:1202:24
#21 0x615e5db9978c in Invoke<void (IPC::ChannelAssociatedGroupController::*)(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification), scoped_refptr<IPC::ChannelAssociatedGroupController>, mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification> base/functional/bind_internal.h:730:12
#22 0x615e5db9978c in MakeItSo<void (IPC::ChannelAssociatedGroupController::*)(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification), std::__Cr::tuple<scoped_refptr<IPC::ChannelAssociatedGroupController>, mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification> > base/functional/bind_internal.h:922:12
#23 0x615e5db9978c in RunImpl<void (IPC::ChannelAssociatedGroupController::*)(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification), std::__Cr::tuple<scoped_refptr<IPC::ChannelAssociatedGroupController>, mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification>, 0UL, 1UL, 2UL> base/functional/bind_internal.h:1059:14
#24 0x615e5db9978c in base::internal::Invoker<base::internal::FunctorTraits<void (IPC::ChannelAssociatedGroupController::*&&)(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification), IPC::ChannelAssociatedGroupController*&&, mojo::Message&&, IPC::(anonymous namespace)::ScopedUrgentMessageNotification&&>, base::internal::BindState<true, true, false, void (IPC::ChannelAssociatedGroupController::*)(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification), scoped_refptr<IPC::ChannelAssociatedGroupController>, mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification>, void ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:972:12
#25 0x615e3a86dbe9 in base::OnceCallback<void ()>::Run() && base/functional/callback.h:155:12
#26 0x615e58f1a527 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&) base/task/common/task_annotator.cc:207:34
#27 0x615e58fd8838 in RunTask<(lambda at ../../base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:474:11)> base/task/common/task_annotator.h:104:5
#28 0x615e58fd8838 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:472:23
#29 0x615e58fd6756 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:346:40
#30 0x615e58fd978a in non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc
#31 0x615e58d60e8b in base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:42:55
#32 0x615e58fdacad in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:647:12
#33 0x615e58e61f2b in base::RunLoop::Run(base::Location const&) base/run_loop.cc:134:14
#34 0x615e676787af in content::RendererMain(content::MainFunctionParams) content/renderer/renderer_main.cc:355:16
#35 0x615e540becda in content::RunZygote(content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:669:14
#36 0x615e540c0e4d in content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&, content::MainFunctionParams, content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:772:12
#37 0x615e540c468b in content::ContentMainRunnerImpl::Run() content/app/content_main_runner_impl.cc:1129:10
#38 0x615e540bc3a4 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) content/app/content_main.cc:346:36
#39 0x615e540bc93c in content::ContentMain(content::ContentMainParams) content/app/content_main.cc:359:10
#40 0x615e3a157258 in ChromeMain chrome/app/chrome_main.cc:228:12
#41 0x704becc2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#42 0x704becc2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
#43 0x615e3a07a029 in _start (/home/xx/xx/src/chrome/chromium/src/out/asan/chrome+0x27d2d029) (BuildId: 2120e3b077da9166)
Address 0x7eac00559a58 is a wild pointer inside of access range of size 0x000000000008.
SUMMARY: AddressSanitizer: use-after-poison base/memory/scoped_refptr.h:319:43 in operator bool
Shadow bytes around the buggy address:
0x7eac00559780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x7eac00559800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x7eac00559880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x7eac00559900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x7eac00559980: 00 00 00 00 00 00 00 00 00 00 00 00 00 f7 f7 f7
=>0x7eac00559a00: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7[f7]f7 f7 f7 f7
0x7eac00559a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x7eac00559b00: 00 00 00 00 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
0x7eac00559b80: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
0x7eac00559c00: f7 f7 f7 f7 f7 f7 00 00 00 00 00 00 00 00 00 00
0x7eac00559c80: 00 00 00 00 00 00 00 00 00 00 f7 f7 f7 f7 f7 f7
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
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
NOTE: the stack trace above identifies the code that *accessed* the poisoned memory.
To identify the code that *poisoned* the memory, try the experimental setting ASAN_OPTIONS=poison_history_size=<size>.
==3775476==ADDITIONAL INFO
==3775476==Note: Please include this section with the ASan report.
Task trace:
#0 0x615e5db8084c in IPC::ChannelAssociatedGroupController::Accept(mojo::Message*) ipc/ipc_mojo_bootstrap.cc:1141:13
Additional Data
Category: Security
Chrome Channel: Not sure
Regression: N/A \
Context
This report covers a use-after-free in Google Chrome's extension bindings layer, tracked as CVE-2026-3919 and rated high severity. The affected component is Extensions, specifically the renderer-side API bindings system that keeps JavaScript extension contexts wired to the browser's extension APIs.
When an extension is unloaded, the renderer tears down the script contexts associated with it. Part of that teardown is context invalidation: the bindings system notifies listeners that their V8 context is going away so they can drop references to it. One of those listeners, ContextInvalidationListener, holds a base::OnceClosure callback and checks it in OnInvalidated(). The bug is that the callback can already be destroyed by the time that check runs, so the listener reads freed (poisoned) memory.
The researcher is Huinian Yang (@vmth6) of Amber Security Lab, OPPO Mobile Telecommunications Corp. Ltd. The issue was handled through the Chrome VRP and paid a bounty of 2000.00 USD. It was disclosed on 2026-03-10.
Setup
The only precondition stated in the report is an extension package, poc.zip, which has to be loaded into the browser. The report also notes that --no-sandbox should be disabled, that is, the sandbox turned off, and that if the crash does not appear on the first attempt it should be tried several times. No Chrome version, channel or build configuration beyond that is given; the crash was captured on an AddressSanitizer build, as the stack trace shows.
Finding it
The researcher traced the failure to the unload path. During UnloadExtension, the call to extensions::APIBindingsSystem::WillReleaseContext(v8::Local<v8::Context>) triggers context invalidation. Inside that invalidation, a ContextInvalidationListener tries to access its base::OnceClosure callback after the callback has already been destroyed. The result is a use-after-poison error when the callback's validity is checked in OnInvalidated().
The researcher's reading is a lifetime management problem: the callback object is destroyed before its associated ContextInvalidationListener, which points to incorrect destruction ordering or a missing cleanup mechanism during context release. The report links two source locations as the relevant code, api_binding_util.h line 55 and api_binding_util.cc line 84.
Exploitation
Step 1: load the proof-of-concept extension
1. load extension poc.zip. (**disable --no-sandbox **; If it does not crash, try several times.)
Loading the extension is what puts the renderer into the state where an unload triggers context invalidation. The instruction to retry suggests the crash does not appear on every run. The contents of poc.zip are not described in the report.
Step 2: observe the crash
The crash state is an AddressSanitizer report. The key frames, read from the top down, show the check on the callback and the path that reaches it:
==3775476==ERROR: AddressSanitizer: use-after-poison on address 0x7eac00559a58 at pc 0x615e5703021b bp 0x7ffe2d0cbbb0 sp 0x7ffe2d0cbba8
READ of size 8 at 0x7eac00559a58 thread T0 (chrome)
#0 0x615e5703021a in operator bool base/memory/scoped_refptr.h:319:43
#1 0x615e5703021a in is_null base/functional/callback_internal.h:140:34
#2 0x615e5703021a in operator bool base/functional/callback_internal.h:141:44
#3 0x615e5703021a in operator bool base/functional/callback.h:110:45
#4 0x615e5703021a in OnInvalidated extensions/renderer/bindings/api_binding_util.cc:167:3
#5 0x615e5703021a in extensions::binding::ContextInvalidationData::Invalidate() extensions/renderer/bindings/api_binding_util.cc:84:14
#6 0x615e57036bb7 in extensions::APIBindingsSystem::WillReleaseContext(v8::Local<v8::Context>) extensions/renderer/bindings/api_bindings_system.cc:159:3
#7 0x615e57138587 in extensions::NativeExtensionBindingsSystem::WillReleaseScriptContext(extensions::ScriptContext*) extensions/renderer/native_extension_bindings_system.cc:525:15
The read of size 8 is the callback's internal pointer being tested for null. Frames #4 and #5 place the access in OnInvalidated() called from ContextInvalidationData::Invalidate(), and frames #6 and #7 show that this happens while the bindings system is being told the script context is about to be released.
The lower part of the stack shows how the unload arrives in the renderer: a Mojo message dispatched to extensions::Dispatcher::UnloadExtension, which iterates script contexts through extensions::ScriptContextSet::ForEach and runs the callback in ExecuteCallbackWithContext:
#12 0x615e57175949 in base::RepeatingCallback<void (extensions::ScriptContext*)>::Run(extensions::ScriptContext*) const & base/functional/callback.h:343:12
#13 0x615e5717520b in ExecuteCallbackWithContext extensions/renderer/script_context_set.cc:202:14
#14 0x615e5717520b in extensions::ScriptContextSet::ForEach(extensions::mojom::HostID const&, content::RenderFrame*, base::RepeatingCallback<void (extensions::ScriptContext*)> const&) extensions/renderer/script_context_set.cc:175:11
#15 0x615e570b59a6 in extensions::Dispatcher::UnloadExtension(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&) extensions/renderer/dispatcher.cc:1185:24
#16 0x615e4e2f1377 in extensions::mojom::RendererStubDispatch::Accept(extensions::mojom::Renderer*, mojo::Message*) gen/extensions/common/mojom/renderer.mojom.cc:2779:13
ASan classifies the address as a wild pointer inside an 8-byte access range, and the shadow bytes around it are marked f7, the legend's value for memory poisoned by the user:
Address 0x7eac00559a58 is a wild pointer inside of access range of size 0x000000000008.
SUMMARY: AddressSanitizer: use-after-poison base/memory/scoped_refptr.h:319:43 in operator bool
The report also includes the task trace that identifies the IPC entry point for the message:
Task trace:
#0 0x615e5db8084c in IPC::ChannelAssociatedGroupController::Accept(mojo::Message*) ipc/ipc_mojo_bootstrap.cc:1141:13
Root cause
The ContextInvalidationListener keeps a base::OnceClosure callback and tests it in OnInvalidated(). The callback is destroyed before the listener that owns or references it, so the validity check dereferences memory that has already been poisoned. The report frames this as a lifetime management issue, with incorrect destruction ordering or a missing cleanup mechanism during context release as the likely cause.
Why the existing lifetime defences did not catch it is not spelled out in the report. The stack shows the access happening synchronously inside WillReleaseContext during UnloadExtension, so the ordering problem is reached through the normal unload path rather than an unusual one.
Impact
The report classifies the issue as a use-after-free in Extensions and the platform rates it high severity. The crash occurs in the renderer process during extension unload. The report does not describe a path from this bug to code execution, nor does it state what an attacker would need to control to trigger it beyond loading the extension package. Any stronger impact claim would go beyond what is written here.
Fix
The report proposes the fix rather than describing a landed change: ensure ContextInvalidationListener unregisters itself or uses weak pointers so that callback invalidation is handled safely. In other words, the listener should not hold a raw expectation that its callback outlives it; either it should detach when the callback goes away, or it should reference the callback weakly and tolerate it being gone.
Variants to test
- Other listeners registered for context invalidation in the bindings layer. A positive result is the same ASan use-after-poison pattern in a different
OnInvalidated()-style callback during context release. - Other teardown paths that release a script context, not only
UnloadExtension. A positive result is the same stack shape with a different entry point aboveWillReleaseContext. - Repeated load and unload cycles of an extension. A positive result is a crash that appears intermittently, matching the report's note that several attempts may be needed.
- Callback ownership patterns elsewhere in the extension renderer where a
base::OnceClosureis stored next to an object with a separate lifetime. A positive result is a validity check on a callback that has already been destroyed.
Hunting notes
This kind of bug tends to sit in teardown code: unload, context release and invalidation paths where several objects with independent lifetimes are torn down together. The signal in this report is a validity check on a callback (operator bool on a base::OnceClosure) reached from an invalidation notification, which is exactly where a destroyed callback and a live listener can meet.
The report says to try several times if it does not crash. Running an AddressSanitizer build is what turned the stale read into a clear report with a full stack.
What happened, in plain words
Google Chrome lets you add extra features to the browser through small add-on programs called extensions. Each extension runs its own JavaScript code, and Chrome gives that code access to special functions (the browser's extension APIs) so it can do things like read tabs or store settings. The part of Chrome that connects an extension's JavaScript to those special functions is called the bindings layer, and it lives inside the renderer, the part of the browser that runs web page and extension code.
When you remove or disable an extension, Chrome has to shut down the extension's JavaScript environment cleanly. As part of that shutdown, it tells the code that its environment is going away, so the code can stop using it. The bug in this report is that during that shutdown, one of the objects doing the telling (a ContextInvalidationListener) tries to check a piece of saved work (a callback) that has already been thrown away. Reading something after it has been thrown away is called a use-after-free. In this case the memory had been deliberately marked as off-limits by a debugging tool, so the error is reported as a use-after-poison.
The report was filed by Huinian Yang (@vmth6) of Amber Security Lab, OPPO Mobile Telecommunications Corp. Ltd. It went through the Chrome VRP (Chrome's Vulnerability Reward Program, which pays people for reporting security bugs), was rated high severity, paid a bounty of 2000.00 USD, and was disclosed on 2026-03-10. It is tracked as CVE-2026-3919. A CVE is a public catalogue number given to a known security flaw so people can refer to it unambiguously.
Background you need first
A few ideas come up again and again below, so here they are from zero.
- Extension: a small add-on installed into Chrome that adds features. It is a bundle of files, usually packaged as a zip archive.
- Renderer: Chrome splits its work across several processes. The renderer is the process that runs page and extension JavaScript. A crash in the renderer takes down that process, not the whole browser.
- API: an agreed set of functions one piece of software offers to another. Think of a restaurant menu: you do not go into the kitchen, you order from the menu. The extension's JavaScript orders from Chrome's extension API menu.
- V8 context: V8 is the JavaScript engine inside Chrome. A context is the isolated little world in which one piece of JavaScript runs, with its own variables and objects. When an extension is unloaded, its context is torn down.
- Callback: a piece of code you hand to someone else and say "run this later, when the right moment comes". Like leaving your phone number at a repair shop: they call you when the job is done. Here the callback is a
base::OnceClosure, a Chrome helper that wraps a piece of code meant to run exactly once. - Listener: an object that has signed up to be told when something happens. Here, a
ContextInvalidationListenersigns up to be told when a context is being invalidated (torn down). - Use-after-free: using memory after the program has given it back. Like reading a letter after you shredded it: the paper may still be there for a moment, but you are not allowed to rely on it. A use-after-poison is the same idea, except a debugging tool has filled the freed memory with a marker value so that any read is caught immediately.
- AddressSanitizer (ASan): a tool built into special debug versions of programs that watches memory and shouts the moment code touches memory it should not. It produces the long report shown later.
- Mojo: Chrome's internal messaging system that lets its separate processes talk to each other. A message arriving over Mojo is how the browser tells the renderer to unload an extension.
Context
This report covers a use-after-free in Google Chrome's extension bindings layer, tracked as CVE-2026-3919 and rated high severity. The affected component is Extensions, specifically the renderer-side API bindings system that keeps JavaScript extension contexts wired to the browser's extension APIs.
When an extension is unloaded, the renderer tears down the script contexts associated with it. Part of that teardown is context invalidation: the bindings system notifies listeners that their V8 context is going away so they can drop references to it. One of those listeners, ContextInvalidationListener, holds a base::OnceClosure callback and checks it in OnInvalidated(). The bug is that the callback can already be destroyed by the time that check runs, so the listener reads freed (poisoned) memory.
The researcher is Huinian Yang (@vmth6) of Amber Security Lab, OPPO Mobile Telecommunications Corp. Ltd. The issue was handled through the Chrome VRP and paid a bounty of 2000.00 USD. It was disclosed on 2026-03-10.
Setup
The only precondition stated in the report is an extension package, poc.zip, which has to be loaded into the browser. "poc" stands for proof of concept: a minimal example built to demonstrate that a bug is real. The report also notes that --no-sandbox should be disabled, and that if the crash does not appear on the first attempt it should be tried several times. No Chrome version, channel or build configuration beyond that is given; the crash was captured on an AddressSanitizer build, as the stack trace shows.
Finding it
The researcher traced the failure to the unload path. During UnloadExtension, the call to extensions::APIBindingsSystem::WillReleaseContext(v8::Local<v8::Context>) triggers context invalidation. Inside that invalidation, a ContextInvalidationListener tries to access its base::OnceClosure callback after the callback has already been destroyed. The result is a use-after-poison error when the callback's validity is checked in OnInvalidated().
The researcher's reading is a lifetime management problem: the callback object is destroyed before its associated ContextInvalidationListener, which points to incorrect destruction ordering or a missing cleanup mechanism during context release. The report links two source locations as the relevant code, api_binding_util.h line 55 and api_binding_util.cc line 84.
Exploitation
Step 1: load the proof-of-concept extension
1. load extension poc.zip. (**disable --no-sandbox **; If it does not crash, try several times.)
Line by line:
1. load extension poc.zip.This is the whole action: install and load the prepared extension package into Chrome. Loading the extension is what puts the renderer into the state where an unload triggers context invalidation. The contents ofpoc.zipare not described in the report.(**disable --no-sandbox **; ...)The--no-sandboxflag is a Chrome command-line switch that turns off the browser's process sandbox, an isolation layer that limits what a process can touch. The bold formatting is the researcher's emphasis.If it does not crash, try several times.This tells you the crash is not guaranteed on every run, so a single attempt that does nothing does not mean the bug is absent.
Step 2: observe the crash
The crash state is an AddressSanitizer report. The key frames, read from the top down, show the check on the callback and the path that reaches it:
==3775476==ERROR: AddressSanitizer: use-after-poison on address 0x7eac00559a58 at pc 0x615e5703021b bp 0x7ffe2d0cbbb0 sp 0x7ffe2d0cbba8
READ of size 8 at 0x7eac00559a58 thread T0 (chrome)
#0 0x615e5703021a in operator bool base/memory/scoped_refptr.h:319:43
#1 0x615e5703021a in is_null base/functional/callback_internal.h:140:34
#2 0x615e5703021a in operator bool base/functional/callback_internal.h:141:44
#3 0x615e5703021a in operator bool base/functional/callback.h:110:45
#4 0x615e5703021a in OnInvalidated extensions/renderer/bindings/api_binding_util.cc:167:3
#5 0x615e5703021a in extensions::binding::ContextInvalidationData::Invalidate() extensions/renderer/bindings/api_binding_util.cc:84:14
#6 0x615e57036bb7 in extensions::APIBindingsSystem::WillReleaseContext(v8::Local<v8::Context>) extensions/renderer/bindings/api_bindings_system.cc:159:3
#7 0x615e57138587 in extensions::NativeExtensionBindingsSystem::WillReleaseScriptContext(extensions::ScriptContext*) extensions/renderer/native_extension_bindings_system.cc:525:15
Line by line:
- The first line is ASan announcing the problem: a use-after-poison at a particular memory address.
pc,bpandspare processor registers (program counter, base pointer, stack pointer) recorded at the moment of the fault; they are diagnostic detail, not something you need to act on. READ of size 8means the program tried to read 8 bytes at once, on the main thread (T0) of the Chrome process. Eight bytes is the size of a pointer on a 64-bit machine.#0to#3are the innermost steps:operator boolandis_nullare the code that asks "is this callback empty or does it hold something?". The read of size 8 is the callback's internal pointer being tested for null.#5showsOnInvalidatedwas called fromContextInvalidationData::Invalidate(), the code that sends the invalidation notice.#6and#7show that all of this happens while the bindings system is being told the script context is about to be released (WillReleaseContext, called fromWillReleaseScriptContext).
The lower part of the stack shows how the unload arrives in the renderer: a Mojo message dispatched to extensions::Dispatcher::UnloadExtension, which iterates script contexts through extensions::ScriptContextSet::ForEach and runs the callback in ExecuteCallbackWithContext:
#12 0x615e57175949 in base::RepeatingCallback<void (extensions::ScriptContext*)>::Run(extensions::ScriptContext*) const & base/functional/callback.h:343:12
#13 0x615e5717520b in ExecuteCallbackWithContext extensions/renderer/script_context_set.cc:202:14
#14 0x615e5717520b in extensions::ScriptContextSet::ForEach(extensions::mojom::HostID const&, content::RenderFrame*, base::RepeatingCallback<void (extensions::ScriptContext*)> const&) extensions/renderer/script_context_set.cc:175:11
#15 0x615e570b59a6 in extensions::Dispatcher::UnloadExtension(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&) extensions/renderer/dispatcher.cc:1185:24
#16 0x615e4e2f1377 in extensions::mojom::RendererStubDispatch::Accept(extensions::mojom::Renderer*, mojo::Message*) gen/extensions/common/mojom/renderer.mojom.cc:2779:13
Line by line, from the bottom up this time, because that is the direction the action flows:
#16is the arrival point: a Mojo message is accepted and dispatched to the renderer's extension code.#15isUnloadExtension, the function that handles the "unload this extension" instruction.#14isScriptContextSet::ForEach, which walks through every script context belonging to that extension.#13isExecuteCallbackWithContext, which runs the per-context callback for each one.#12is the generic machinery that actually invokes that callback.
So the chain is: a message says "unload", the renderer loops over the extension's contexts, and for each one it starts the teardown that eventually reaches the broken check.
ASan classifies the address as a wild pointer inside an 8-byte access range, and the shadow bytes around it are marked f7, the legend's value for memory poisoned by the user:
Address 0x7eac00559a58 is a wild pointer inside of access range of size 0x000000000008.
SUMMARY: AddressSanitizer: use-after-poison base/memory/scoped_refptr.h:319:43 in operator bool
Line by line:
- The first line says the address being read is not a valid object; it is described as a wild pointer, and the access covers 8 bytes.
- The
SUMMARYline is ASan's one-line verdict: the fault class is use-after-poison, the innermost code isoperator boolinscoped_refptr.h, and that is where the read happened.
ASan's shadow memory is a parallel map where each byte records whether the corresponding real memory is safe to use. The legend in the full report explains the codes: 00 means addressable (safe), f7 means poisoned by the user, fd means a freed heap region, and so on. The bytes around the fault are f7, which is why the error is called use-after-poison rather than a plain use-after-free.
The report also includes the task trace that identifies the IPC entry point for the message:
Task trace:
#0 0x615e5db8084c in IPC::ChannelAssociatedGroupController::Accept(mojo::Message*) ipc/ipc_mojo_bootstrap.cc:1141:13
Line by line:
Task trace:marks a short extra trace showing where the task that led to the crash entered the system.#0is the single frame:IPC::ChannelAssociatedGroupController::Acceptreceiving a Mojo message. IPC stands for inter-process communication, the mechanism processes use to exchange messages; this frame is the doorway the unload instruction came through.
Root cause
The ContextInvalidationListener keeps a base::OnceClosure callback and tests it in OnInvalidated(). The callback is destroyed before the listener that owns or references it, so the validity check dereferences memory that has already been poisoned. The report frames this as a lifetime management issue, with incorrect destruction ordering or a missing cleanup mechanism during context release as the likely cause.
Why the existing lifetime defences did not catch it is not spelled out in the report. The stack shows the access happening synchronously inside WillReleaseContext during UnloadExtension, so the ordering problem is reached through the normal unload path rather than an unusual one.
Impact
The report classifies the issue as a use-after-free in Extensions and the platform rates it high severity. The crash occurs in the renderer process during extension unload. The report does not describe a path from this bug to code execution, nor does it state what an attacker would need to control to trigger it beyond loading the extension package. Any stronger impact claim would go beyond what is written here.
Fix
The report proposes the fix rather than describing a landed change: ensure ContextInvalidationListener unregisters itself or uses weak pointers so that callback invalidation is handled safely. In other words, the listener should not hold a raw expectation that its callback outlives it; either it should detach when the callback goes away, or it should reference the callback weakly and tolerate it being gone. A weak pointer is a reference that does not keep the object alive and that you can check before use, like a name on a waiting list rather than a reserved seat: if the seat is gone, you find out instead of sitting on nothing.
Variants to test
- Other listeners registered for context invalidation in the bindings layer. A positive result is the same ASan use-after-poison pattern in a different
OnInvalidated()-style callback during context release. - Other teardown paths that release a script context, not only
UnloadExtension. A positive result is the same stack shape with a different entry point aboveWillReleaseContext. - Repeated load and unload cycles of an extension. A positive result is a crash that appears intermittently, matching the report's note that several attempts may be needed.
- Callback ownership patterns elsewhere in the extension renderer where a
base::OnceClosureis stored next to an object with a separate lifetime. A positive result is a validity check on a callback that has already been destroyed.
Hunting notes
This kind of bug tends to sit in teardown code: unload, context release and invalidation paths where several objects with independent lifetimes are torn down together. The signal in this report is a validity check on a callback (operator bool on a base::OnceClosure) reached from an invalidation notification, which is exactly where a destroyed callback and a live listener can meet.
The report says to try several times if it does not crash. Running an AddressSanitizer build is what turned the stale read into a clear report with a full stack.
Glossary
- API: an agreed set of functions one program offers to another, so they can work together without knowing each other's internals.
- AddressSanitizer (ASan): a debugging tool that watches memory use and reports the moment a program touches memory it should not.
- base::OnceClosure: a Chrome helper that wraps a piece of code meant to be run exactly once.
- Callback: a piece of code handed to another part of the program to be run later, when a particular moment arrives.
- Context invalidation: the process of telling code that its JavaScript environment is being torn down, so it can stop using it.
- ContextInvalidationListener: the object in this report that signs up to be told when a context is invalidated.
- CVE: a public catalogue number assigned to a known security flaw so it can be referred to unambiguously.
- IPC (inter-process communication): the mechanism separate processes use to exchange messages.
- Listener: an object that has registered to be notified when something happens.
- Proof of concept (poc): a minimal example built to demonstrate that a bug is real.
- Renderer: the Chrome process that runs page and extension JavaScript.
- Sandbox: an isolation layer that limits what a process is allowed to touch;
--no-sandboxturns it off. - Shadow memory: ASan's parallel map recording, byte by byte, whether the corresponding real memory is safe to use.
- Stack trace: the list of function calls, innermost first, that led to a particular point in a program.
- Use-after-poison: the same as use-after-free, but the freed memory has been filled with a marker value so that any read is caught immediately.
- V8 context: the isolated environment in which one piece of JavaScript runs inside Chrome's JavaScript engine.
- Weak pointer: a reference that does not keep an object alive and can be checked before use, so you find out if the object is gone instead of using stale memory.