Skip to content
Memory corruption Advisory Advanced CVE-2025-8576

Use after free in Extensions (CVE-2025-8576)

A use-after-free occurs in the extensions URL loader throttle when an extension uses the Debugger API to attach to a tab while that tab is processing a URL request. An attacker could potentially trigger a browser crash, though the report only demonstrates a crash under a developer build with a loaded extension.

asnine Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 3 months

VULNERABILITY DETAILS

The UAF crash occurs in the extensions::ExtensionURLLoaderThrottle::WillProcessResponse function. The issue happens when an extension uses the Debugger API to attach to a tab while the tab is processing a URL request. The root cause is in how the ExtensionThrottleManager is managed during the lifecycle of throttle providers and URL loaders.

VERSION Chromium 138.0.7153.0 (Developer Build) (64-bit) OS Windows 11 Version 24H2 (Build 26120.3941)

Also reprodeced in Linux/ChromiumOS_Linux

REPRODUCTION CASE

  1. run the command:

chrome.exe --user-data-dir=c:/tmp/test--no-sandbox --load-extension="extension" https://example.com

The test environment needs to access external network resources

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: [tab, browser, etc.]

================================================================= ==37512==ERROR: AddressSanitizer: heap-use-after-free on address 0x116457cb42c0 at pc 0x7ffbd24435a2 bp 0x0001043fbea0 sp 0x0001043fbee8 READ of size 1 at 0x116457cb42c0 thread T4 #0 0x7ffbd24435a1 in base::internal::anonymous namespace'::CrashImmediatelyOnUseAfterFree C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17 #1 0x7ffbd24430f1 in base::internal::anonymous namespace'::SafelyUnwrapForDereference C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:77:5 #2 0x7ffbd06251d6 in base::internal::RawPtrHookableImpl<1>::SafelyUnwrapPtrForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr_hookable_impl.h:84 #3 0x7ffbd06251d6 in base::raw_ptrextensions::ExtensionThrottleManager,0::GetForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:996 #4 0x7ffbd06251d6 in base::raw_ptrextensions::ExtensionThrottleManager,0::operator-> C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:665 #5 0x7ffbd06251d6 in extensions::ExtensionURLLoaderThrottle::WillProcessResponse(class GURL const &, class network::mojom::URLResponseHead *, bool *) C:\b\s\w\ir\cache\builder\src\extensions\renderer\extension_url_loader_throttle.cc:51:3 #6 0x7ffbc3d930fb in blink::ThrottlingURLLoader::OnReceiveResponse(class mojo::StructPtr<class network::mojom::URLResponseHead>, class mojo::ScopedHandleBase<class mojo::DataPipeConsumerHandle>, class std::__Cr::optional<class mojo_base::BigBuffer>) C:\b\s\w\ir\cache\builder\src\third_party\blink\common\loader\throttling_url_loader.cc:666:17 #7 0x7ffbc0ddb911 in network::mojom::URLLoaderClientStubDispatch::Accept(class network::mojom::URLLoaderClient *, class mojo::Message *) C:\b\s\w\ir\cache\builder\src\out\069a-Win_ASan_Releas\gen\services\network\public\mojom\url_loader.mojom.cc:1127:13 #8 0x7ffbd204e05f in mojo::InterfaceEndpointClient::HandleValidatedMessage(class mojo::Message *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_endpoint_client.cc:1059:54 #9 0x7ffbd204ae5a in mojo::MessageDispatcher::Accept(class mojo::Message *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\message_dispatcher.cc:43:19 #10 0x7ffbd20542ee in mojo::InterfaceEndpointClient::HandleIncomingMessage(class mojo::Message *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_endpoint_client.cc:731:20 #11 0x7ffbd20361e0 in mojo::internal::MultiplexRouter::ProcessIncomingMessage(class mojo::internal::MultiplexRouter::MessageWrapper *, enum mojo::internal::MultiplexRouter::ClientCallBehavior, class base::SequencedTaskRunner *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\multiplex_router.cc:1120:42 #12 0x7ffbd2034804 in mojo::internal::MultiplexRouter::Accept(class mojo::Message *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\multiplex_router.cc:733:7 #13 0x7ffbd204ae5a in mojo::MessageDispatcher::Accept(class mojo::Message *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\message_dispatcher.cc:43:19 #14 0x7ffbd2072414 in mojo::Connector::DispatchMessageW(class mojo::ScopedHandleBase<class mojo::MessageHandle>) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\connector.cc:561:49 #15 0x7ffbd2073d20 in mojo::Connector::ReadAllAvailableMessages(void) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\connector.cc:619:14 #16 0x7ffbd2073747 in mojo::Connector::OnHandleReadyInternal C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\connector.cc:450 #17 0x7ffbd2073747 in mojo::Connector::OnWatcherHandleReady(char const , unsigned int) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\connector.cc:416:3 #18 0x7ffbd2075693 in base::internal::DecayedFunctorTraits<void (Connector::)(const char *, unsigned int),mojo::Connector *,const char *const &>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:731 #19 0x7ffbd2075693 in base::internal::InvokeHelper<0,base::internal::FunctorTraits<void (Connector::*const &)(const char *, unsigned int),mojo::Connector *,const char *const &>,void,0,1>::MakeItSo C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:923 #20 0x7ffbd2075693 in base::internal::Invoker<base::internal::FunctorTraits<void (Connector::*const &)(const char *, unsigned int),mojo::Connector *,const char const &>,base::internal::BindState<1,1,0,void (Connector::)(const char *, unsigned int),base::internal::UnretainedWrappermojo::Connector,base::unretained_traits::MayNotDangle,0,base::internal::UnretainedWrapper<const char,base::unretained_traits::MayNotDangle,0> >,void (unsigned int)>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1060 #21 0x7ffbd2075693 in base::internal::Invoker<struct base::internal::FunctorTraits<void (__cdecl mojo::Connector::*const &)(char const *, unsigned int), class mojo::Connector , char const const &>, struct base::internal::BindState<1, 1, 0, void (__cdecl mojo::Connector::)(char const , unsigned int), class base::internal::UnretainedWrapper<class mojo::Connector, struct base::unretained_traits::MayNotDangle, 0>, class base::internal::UnretainedWrapper<char const, struct base::unretained_traits::MayNotDangle, 0>>, (unsigned int)>::Run(class base::internal::BindStateBase , unsigned int) C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:980:12 #22 0x7ffbc3d855fc in base::RepeatingCallback<(unsigned int)>::Run(unsigned int) const & C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:344:12 #23 0x7ffbc3d853ef in base::internal::DecayedFunctorTraits<void ()(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &),const base::RepeatingCallback<void (unsigned int)> &>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:664 #24 0x7ffbc3d853ef in base::internal::InvokeHelper<0,base::internal::FunctorTraits<void (const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &),const base::RepeatingCallback<void (unsigned int)> &>,void,0>::MakeItSo C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:923 #25 0x7ffbc3d853ef in base::internal::Invoker<base::internal::FunctorTraits<void (const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &),const base::RepeatingCallback<void (unsigned int)> &>,base::internal::BindState<0,1,0,void ()(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &),base::RepeatingCallback<void (unsigned int)> >,void (unsigned int, const mojo::HandleSignalsState &)>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1060 #26 0x7ffbc3d853ef in base::internal::Invoker<struct base::internal::FunctorTraits<void (__cdecl const &)(class base::RepeatingCallback<(unsigned int)> const &, unsigned int, struct mojo::HandleSignalsState const &), class base::RepeatingCallback<void __cdecl(unsigned int)> const &>, struct base::internal::BindState<0, 1, 0, void (__cdecl )(class base::RepeatingCallback<(unsigned int)> const &, unsigned int, struct mojo::HandleSignalsState const &), class base::RepeatingCallback<void __cdecl(unsigned int)>>, (unsigned int, struct mojo::HandleSignalsState const &)>::Run(class base::internal::BindStateBase , unsigned int, struct mojo::HandleSignalsState const &) C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:980:12 #27 0x7ffbd281a14b in base::RepeatingCallback<(unsigned int, struct mojo::HandleSignalsState const &)>::Run(unsigned int, struct mojo::HandleSignalsState const &) const & C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:344:12 #28 0x7ffbd2819a55 in mojo::SimpleWatcher::OnHandleReady(int, unsigned int, struct mojo::HandleSignalsState const &) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\system\simple_watcher.cc:278:14 #29 0x7ffbd281ac68 in base::internal::DecayedFunctorTraits<void (SimpleWatcher::)(int, unsigned int, const mojo::HandleSignalsState &),base::WeakPtrmojo::SimpleWatcher &&,int &&,unsigned int &&,mojo::HandleSignalsState &&>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:731 #30 0x7ffbd281ac68 in base::internal::InvokeHelper<1,base::internal::FunctorTraits<void (SimpleWatcher::&&)(int, unsigned int, const mojo::HandleSignalsState &),base::WeakPtrmojo::SimpleWatcher &&,int &&,unsigned int &&,mojo::HandleSignalsState &&>,void,0,1,2,3>::MakeItSo C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:947 #31 0x7ffbd281ac68 in base::internal::Invoker<base::internal::FunctorTraits<void (SimpleWatcher::&&)(int, unsigned int, const mojo::HandleSignalsState &),base::WeakPtrmojo::SimpleWatcher &&,int &&,unsigned int &&,mojo::HandleSignalsState &&>,base::internal::BindState<1,1,0,void (SimpleWatcher::)(int, unsigned int, const mojo::HandleSignalsState &),base::WeakPtrmojo::SimpleWatcher,int,unsigned int,mojo::HandleSignalsState>,void ()>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1060 #32 0x7ffbd281ac68 in base::internal::Invoker<struct base::internal::FunctorTraits<void (__cdecl mojo::SimpleWatcher::&&)(int, unsigned int, struct mojo::HandleSignalsState const &), class base::WeakPtr<class mojo::SimpleWatcher> &&, int &&, unsigned int &&, struct mojo::HandleSignalsState &&>, struct base::internal::BindState<1, 1, 0, void (__cdecl mojo::SimpleWatcher::)(int, unsigned int, struct mojo::HandleSignalsState const &), class base::WeakPtr<class mojo::SimpleWatcher>, int, unsigned int, struct mojo::HandleSignalsState>, (void)>::RunOnce(class base::internal::BindStateBase *) C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:973:12 #33 0x7ffbd23025d3 in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:156 #34 0x7ffbd23025d3 in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:209:34 #35 0x7ffbd225728c in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:106 #36 0x7ffbd225728c in base::internal::TaskTracker::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:691 #37 0x7ffbd225728c in base::internal::TaskTracker::RunSkipOnShutdown(struct base::internal::Task &, class base::TaskTraits const &, class base::internal::TaskSource *, class base::internal::SequenceToken const &) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:676:3 #38 0x7ffbd225589a in base::internal::TaskTracker::RunTaskWithShutdownBehavior C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:706 #39 0x7ffbd225589a in base::internal::TaskTracker::RunTask(struct base::internal::Task, class base::internal::TaskSource *, class base::TaskTraits const &) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:504:5 #40 0x7ffbd225494e in base::internal::TaskTracker::RunAndPopNextTask(class base::internal::RegisteredTaskSource) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:394:5 #41 0x7ffbd223df85 in base::internal::WorkerThread::RunWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:473:36 #42 0x7ffbd223cd9f in base::internal::WorkerThread::RunPooledWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:359:3 #43 0x7ffbd214b9f3 in base::`anonymous namespace'::ThreadFunc C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:114:13 #44 0x7ffc78de9a6c (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x180059a6c) #45 0x7ffccde7e8d6 (C:\WINDOWS\System32\KERNEL32.DLL+0x18002e8d6) #46 0x7ffccee51d1b (C:\WINDOWS\SYSTEM32\ntdll.dll+0x180011d1b)

0x116457cb42c0 is located 0 bytes inside of 200-byte region [0x116457cb42c0,0x116457cb4388) freed by thread T4 here: #0 0x7ffc78deae74 (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005ae74) #1 0x7ffbd0624c20 in extensions::ExtensionThrottleManager::scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\extensions\renderer\extension_throttle_manager.cc:33:55 #2 0x7ffbe85fcc6c in std::__Cr::default_delete<extensions::ExtensionThrottleManager>::operator() C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:76 #3 0x7ffbe85fcc6c in std::__Cr::unique_ptr<extensions::ExtensionThrottleManager,std::__Cr::default_delete<extensions::ExtensionThrottleManager> >::reset C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:287 #4 0x7ffbe85fcc6c in std::__Cr::unique_ptr<extensions::ExtensionThrottleManager,std::__Cr::default_delete<extensions::ExtensionThrottleManager> >::~unique_ptr C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:256 #5 0x7ffbe85fcc6c in URLLoaderThrottleProviderImpl::~URLLoaderThrottleProviderImpl(void) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:152:1 #6 0x7ffbe85ff82f in URLLoaderThrottleProviderImpl::scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:150:65 #7 0x7ffbd2285cb7 in base::internal::DecayedFunctorTraits<void (*)(const void *),const void &&>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:664 #8 0x7ffbd2285cb7 in base::internal::InvokeHelper<0,base::internal::FunctorTraits<void (&&)(const void *),const void &&>,void,0>::MakeItSo C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:923 #9 0x7ffbd2285cb7 in base::internal::Invoker<base::internal::FunctorTraits<void (&&)(const void *),const void &&>,base::internal::BindState<0,1,0,void ()(const void *),base::internal::UnretainedWrapper<const void,base::unretained_traits::MayNotDangle,0> >,void ()>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1060 #10 0x7ffbd2285cb7 in base::internal::Invoker<struct base::internal::FunctorTraits<void (__cdecl *&&)(void const *), void const *&&>, struct base::internal::BindState<0, 1, 0, void (__cdecl *)(void const *), class base::internal::UnretainedWrapper<void const, struct base::unretained_traits::MayNotDangle, 0>>, (void)>::RunOnce(class base::internal::BindStateBase *) C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:973:12 #11 0x7ffbd23025d3 in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:156 #12 0x7ffbd23025d3 in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:209:34 #13 0x7ffbd225728c in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:106 #14 0x7ffbd225728c in base::internal::TaskTracker::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:691 #15 0x7ffbd225728c in base::internal::TaskTracker::RunSkipOnShutdown(struct base::internal::Task &, class base::TaskTraits const &, class base::internal::TaskSource *, class base::internal::SequenceToken const &) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:676:3 #16 0x7ffbd225589a in base::internal::TaskTracker::RunTaskWithShutdownBehavior C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:706 #17 0x7ffbd225589a in base::internal::TaskTracker::RunTask(struct base::internal::Task, class base::internal::TaskSource *, class base::TaskTraits const &) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:504:5 #18 0x7ffbd225494e in base::internal::TaskTracker::RunAndPopNextTask(class base::internal::RegisteredTaskSource) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:394:5 #19 0x7ffbd223df85 in base::internal::WorkerThread::RunWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:473:36 #20 0x7ffbd223cd9f in base::internal::WorkerThread::RunPooledWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:359:3 #21 0x7ffbd214b9f3 in base::`anonymous namespace'::ThreadFunc C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:114:13 #22 0x7ffc78de9a6c (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x180059a6c) #23 0x7ffccde7e8d6 (C:\WINDOWS\System32\KERNEL32.DLL+0x18002e8d6) #24 0x7ffccee51d1b (C:\WINDOWS\SYSTEM32\ntdll.dll+0x180011d1b)

previously allocated by thread T4 here: #0 0x7ffc78dea28d (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005a28d) #1 0x7ffbe85fe4ca in std::__Cr::make_unique C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include__memory\unique_ptr.h:754 #2 0x7ffbe85fe4ca in anonymous namespace'::CreateExtensionThrottleManager C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:64 #3 0x7ffbe85fe4ca in URLLoaderThrottleProviderImpl::CreateThrottles(class base::optional_ref<class base::TokenType<class blink::LocalFrameTokenTypeMarker> const>, struct network::ResourceRequest const &) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:241:35 #4 0x7ffbcdf784c2 in blink::BackgroundURLLoader::Context::StartOnBackground(class scoped_refptr<class blink::WebBackgroundResourceFetchAssets>, class std::__Cr::unique_ptr<struct network::ResourceRequest, struct std::__Cr::default_delete<struct network::ResourceRequest>>, class url::Origin const &, bool, class WTF::Vector<class WTF::String, 0, class WTF::PartitionAllocator> const &, class std::__Cr::unique_ptr<class blink::ResourceLoadInfoNotifierWrapper, struct std::__Cr::default_delete<class blink::ResourceLoadInfoNotifierWrapper>>, bool, class std::__Cr::unique_ptr<class blink::BackgroundResponseProcessorFactory, struct std::__Cr::default_delete<class blink::BackgroundResponseProcessorFactory>>) C:\b\s\w\ir\cache\builder\src\third_party\blink\renderer\platform\loader\fetch\url_loader\background_url_loader.cc:423:30 #5 0x7ffbcdf79950 in base::internal::DecayedFunctorTraits<void (Context::*)(scoped_refptr<blink::WebBackgroundResourceFetchAssets>, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> >, const url::Origin &, bool, const WTF::Vector<WTF::String,0,WTF::PartitionAllocator> &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> >),scoped_refptr<blink::BackgroundURLLoader::Context> &&,scoped_refptr<blink::WebBackgroundResourceFetchAssets> &&,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> > &&,url::Origin &&,bool &&,WTF::Vector<WTF::String,0,WTF::PartitionAllocator> &&,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> > &&,bool &&,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> > &&>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:731 #6 0x7ffbcdf79950 in base::internal::InvokeHelper<0,base::internal::FunctorTraits<void (Context::*&&)(scoped_refptr<blink::WebBackgroundResourceFetchAssets>, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> >, const url::Origin &, bool, const WTF::Vector<WTF::String,0,WTF::PartitionAllocator> &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> >),scoped_refptr<blink::BackgroundURLLoader::Context> &&,scoped_refptr<blink::WebBackgroundResourceFetchAssets> &&,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> > &&,url::Origin &&,bool &&,WTF::Vector<WTF::String,0,WTF::PartitionAllocator> &&,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> > &&,bool &&,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> > &&>,void,0,1,2,3,4,5,6,7,8>::MakeItSo C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:923 #7 0x7ffbcdf79950 in base::internal::Invoker<base::internal::FunctorTraits<void (Context::*&&)(scoped_refptr<blink::WebBackgroundResourceFetchAssets>, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> >, const url::Origin &, bool, const WTF::Vector<WTF::String,0,WTF::PartitionAllocator> &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> >),scoped_refptr<blink::BackgroundURLLoader::Context> &&,scoped_refptr<blink::WebBackgroundResourceFetchAssets> &&,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> > &&,url::Origin &&,bool &&,WTF::Vector<WTF::String,0,WTF::PartitionAllocator> &&,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> > &&,bool &&,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> > &&>,base::internal::BindState<1,1,0,void (Context::*)(scoped_refptr<blink::WebBackgroundResourceFetchAssets>, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> >, const url::Origin &, bool, const WTF::Vector<WTF::String,0,WTF::PartitionAllocator> &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> >),scoped_refptr<blink::BackgroundURLLoader::Context>,scoped_refptr<blink::WebBackgroundResourceFetchAssets>,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_delete<network::ResourceRequest> >,url::Origin,bool,WTF::Vector<WTF::String,0,WTF::PartitionAllocator>,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_delete<blink::ResourceLoadInfoNotifierWrapper> >,bool,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_delete<blink::BackgroundResponseProcessorFactory> > >,void ()>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1060 #8 0x7ffbcdf79950 in base::internal::Invoker<struct base::internal::FunctorTraits<void (__cdecl blink::BackgroundURLLoader::Context::*&&)(class scoped_refptr<class blink::WebBackgroundResourceFetchAssets>, class std::__Cr::unique_ptr<struct network::ResourceRequest, struct std::__Cr::default_delete<struct network::ResourceRequest>>, class url::Origin const &, bool, class WTF::Vector<class WTF::String, 0, class WTF::PartitionAllocator> const &, class std::__Cr::unique_ptr<class blink::ResourceLoadInfoNotifierWrapper, struct std::__Cr::default_delete<class blink::ResourceLoadInfoNotifierWrapper>>, bool, class std::__Cr::unique_ptr<class blink::BackgroundResponseProcessorFactory, struct std::__Cr::default_delete<class blink::BackgroundResponseProcessorFactory>>), class scoped_refptr<class blink::BackgroundURLLoader::Context> &&, class scoped_refptr<class blink::WebBackgroundResourceFetchAssets> &&, class std::__Cr::unique_ptr<struct network::ResourceRequest, struct std::__Cr::default_delete<struct network::ResourceRequest>> &&, class url::Origin &&, bool &&, class WTF::Vector<class WTF::String, 0, class WTF::PartitionAllocator> &&, class std::__Cr::unique_ptr<class blink::ResourceLoadInfoNotifierWrapper, struct std::__Cr::default_delete<class blink::ResourceLoadInfoNotifierWrapper>> &&, bool &&, class std::__Cr::unique_ptr<class blink::BackgroundResponseProcessorFactory, struct std::__Cr::default_delete<class blink::BackgroundResponseProcessorFactory>> &&>, struct base::internal::BindState<1, 1, 0, void (__cdecl blink::BackgroundURLLoader::Context::*)(class scoped_refptr<class blink::WebBackgroundResourceFetchAssets>, class std::__Cr::unique_ptr<struct network::ResourceRequest, struct std::__Cr::default_delete<struct network::ResourceRequest>>, class url::Origin const &, bool, class WTF::Vector<class WTF::String, 0, class WTF::PartitionAllocator> const &, class std::__Cr::unique_ptr<class blink::ResourceLoadInfoNotifierWrapper, struct std::__Cr::default_delete<class blink::ResourceLoadInfoNotifierWrapper>>, bool, class std::__Cr::unique_ptr<class blink::BackgroundResponseProcessorFactory, struct std::__Cr::default_delete<class blink::BackgroundResponseProcessorFactory>>), class scoped_refptr<class blink::BackgroundURLLoader::Context>, class scoped_refptr<class blink::WebBackgroundResourceFetchAssets>, class std::__Cr::unique_ptr<struct network::ResourceRequest, struct std::__Cr::default_delete<struct network::ResourceRequest>>, class url::Origin, bool, class WTF::Vector<class WTF::String, 0, class WTF::PartitionAllocator>, class std::__Cr::unique_ptr<class blink::ResourceLoadInfoNotifierWrapper, struct std::__Cr::default_delete<class blink::ResourceLoadInfoNotifierWrapper>>, bool, class std::__Cr::unique_ptr<class blink::BackgroundResponseProcessorFactory, struct std::__Cr::default_delete<class blink::BackgroundResponseProcessorFactory>>>, (void)>::RunOnce(class base::internal::BindStateBase *) C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:973:12 #9 0x7ffbd23025d3 in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:156 #10 0x7ffbd23025d3 in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:209:34 #11 0x7ffbd225728c in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:106 #12 0x7ffbd225728c in base::internal::TaskTracker::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:691 #13 0x7ffbd225728c in base::internal::TaskTracker::RunSkipOnShutdown(struct base::internal::Task &, class base::TaskTraits const &, class base::internal::TaskSource *, class base::internal::SequenceToken const &) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:676:3 #14 0x7ffbd225589a in base::internal::TaskTracker::RunTaskWithShutdownBehavior C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:706 #15 0x7ffbd225589a in base::internal::TaskTracker::RunTask(struct base::internal::Task, class base::internal::TaskSource *, class base::TaskTraits const &) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:504:5 #16 0x7ffbd225494e in base::internal::TaskTracker::RunAndPopNextTask(class base::internal::RegisteredTaskSource) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:394:5 #17 0x7ffbd223df85 in base::internal::WorkerThread::RunWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:473:36 #18 0x7ffbd223cd9f in base::internal::WorkerThread::RunPooledWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:359:3 #19 0x7ffbd214b9f3 in base::anonymous namespace'::ThreadFunc C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:114:13 #20 0x7ffc78de9a6c (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x180059a6c) #21 0x7ffccde7e8d6 (C:\WINDOWS\System32\KERNEL32.DLL+0x18002e8d6) #22 0x7ffccee51d1b (C:\WINDOWS\SYSTEM32\ntdll.dll+0x180011d1b)

Thread T4 created by T0 here: #0 0x7ffc78de9982 (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x180059982) #1 0x7ffbd214aaf9 in base::`anonymous namespace'::CreateThreadInternal C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:182:7 #2 0x7ffbd223b37f in base::internal::WorkerThread::Start(class scoped_refptr<class base::SingleThreadTaskRunner>, class base::WorkerThreadObserver *) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:185:3 #3 0x7ffbd224d076 in base::internal::ThreadGroup::BaseScopedCommandsExecutor::Flush(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_group.cc:89:13 #4 0x7ffbd224cd5d in base::internal::ThreadGroup::BaseScopedCommandsExecutor::~BaseScopedCommandsExecutor(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_group.cc:80:3 #5 0x7ffbd22416f7 in base::internal::ThreadGroupImpl::ScopedCommandsExecutor::~ScopedCommandsExecutor C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_group_impl.cc:42 #6 0x7ffbd22416f7 in base::internal::ThreadGroupImpl::Start(unsigned __int64, unsigned __int64, class base::TimeDelta, class scoped_refptr<class base::SingleThreadTaskRunner>, class base::WorkerThreadObserver *, enum base::internal::ThreadGroup::WorkerEnvironment, bool, class std::__Cr::optional<class base::TimeDelta>) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_group_impl.cc:249:3 #7 0x7ffbd22318f2 in base::internal::ThreadPoolImpl::Start(struct base::ThreadPoolInstance::InitParams const &, class base::WorkerThreadObserver ) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_pool_impl.cc:196:35 #8 0x7ffbdcc83600 in content::ChildProcess::ChildProcess(enum base::ThreadType, class std::__Cr::unique_ptr<struct base::ThreadPoolInstance::InitParams, struct std::__Cr::default_delete<struct base::ThreadPoolInstance::InitParams>>) C:\b\s\w\ir\cache\builder\src\content\child\child_process.h:117:38 #9 0x7ffbe7dd0f38 in content::RenderProcess::RenderProcess(class std::__Cr::unique_ptr<struct base::ThreadPoolInstance::InitParams, struct std::__Cr::default_delete<struct base::ThreadPoolInstance::InitParams>>) C:\b\s\w\ir\cache\builder\src\content\renderer\render_process.cc:18:7 #10 0x7ffbe7dd0601 in content::RenderProcessImpl::RenderProcessImpl(void) C:\b\s\w\ir\cache\builder\src\content\renderer\render_process_impl.cc:112:7 #11 0x7ffbe7dd0bd5 in content::RenderProcessImpl::Create(void) C:\b\s\w\ir\cache\builder\src\content\renderer\render_process_impl.cc:227:31 #12 0x7ffbe7cfeb1a in content::RendererMain(struct content::MainFunctionParams) C:\b\s\w\ir\cache\builder\src\content\renderer\renderer_main.cc:287:53 #13 0x7ffbcedc7fe6 in content::RunOtherNamedProcessTypeMain(class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::Cr::allocator<char>> const &, struct content::MainFunctionParams, class content::ContentMainDelegate *) C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:783:14 #14 0x7ffbcedca381 in content::ContentMainRunnerImpl::Run(void) C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:1157:10 #15 0x7ffbcedbe3f3 in content::RunContentProcess(struct content::ContentMainParams, class content::ContentMainRunner *) C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:359:36 #16 0x7ffbcedbefad in content::ContentMain(struct content::ContentMainParams) C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:372:10 #17 0x7ffbbf632b0b in ChromeMain C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc:222:12 #18 0x7ff693a047bb in MainDllLoader::Launch(struct HINSTANCE, class base::TimeTicks) C:\b\s\w\ir\cache\builder\src\chrome\app\main_dll_loader_win.cc:201:12 #19 0x7ff693a02021 in main C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_exe_main_win.cc:352:20 #20 0x7ff693eb896b in invoke_main D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 #21 0x7ff693eb896b in __scrt_common_main_seh D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #22 0x7ffccde7e8d6 (C:\WINDOWS\System32\KERNEL32.DLL+0x18002e8d6) #23 0x7ffccee51d1b (C:\WINDOWS\SYSTEM32\ntdll.dll+0x180011d1b)

SUMMARY: AddressSanitizer: heap-use-after-free C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17 in base::internal::`anonymous namespace'::CrashImmediatelyOnUseAfterFree Shadow bytes around the buggy address: 0x116457cb4000: fa fa fa fa fa fa f7 fa 00 00 00 00 00 00 00 00 0x116457cb4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x116457cb4100: 00 fa fa fa fa fa fa fa fa fa fa fa fa fa f7 fa 0x116457cb4180: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x116457cb4200: fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa =>0x116457cb4280: fa fa fa fa fa fa f7 fa[fd]fd fd fd fd fd fd fd 0x116457cb4300: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x116457cb4380: fd fa fa fa fa fa fa fa fa fa fa fa fa fa f7 fa 0x116457cb4400: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x116457cb4480: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa 0x116457cb4500: fa fa fa fa fa fa f7 fa fd fd fd fd fd fd fd fd 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

==37512==ADDITIONAL INFO

==37512==Note: Please include this section with the ASan report. Task trace: #0 0x7ffbd281a6f8 in mojo::SimpleWatcher::Context::Notify(unsigned int, struct MojoHandleSignalsState, unsigned int) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\system\simple_watcher.cc:102:13

Command line: "chrome.exe" --type=renderer --user-data-dir=c:/tmp/test --extension-process --no-pre-read-main-dll --no-sandbox --file-url-path-alias="/gen=C:\chromium_version\latest_asan\gen" --video-capture-use-gpu-memory-buffer --lang=zh-CN --device-scale-factor=1.75 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1745603129273034 --launch-time-ticks=399984962880 --metrics-shmem-handle=3088,i,10853463304360795435,6088019744846484161,2097152 --field-trial-handle=1964,i,14414722279579164423,17627674527126514385,262144 --variations-seed-version --mojo-platform-channel-handle=4440 /prefetch:9

MiraclePtr Status: MANUAL ANALYSIS REQUIRED This crash occurred while a raw_ptr<T> object containing a dangling pointer was being dereferenced. This crash occurred in the thread pool. The sequence which invoked the "free" is unknown, so the crash may have been caused by a race condition that is mislabeled as a use-after-free. Make sure that the "free" is sequenced after the "use" (e.g. both are on the same sequence, or the "free" is in a task posted after the "use"). Otherwise, the crash is still exploitable with MiraclePtr. Refer to https://chromium.googlesource.com/chromium/src/+/main/base/memory/raw_ptr.md for details.

==37512==END OF ADDITIONAL INFO ==37512==ABORTING

The original report as published on the Chromium issue tracker, by asnine. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

Context

This is a use-after-free in Chrome's extension URL loader throttling code, tracked as CVE-2025-8576 and reported through the Chrome VRP by asnine. The affected component is Extensions, and the crash lands in extensions::ExtensionURLLoaderThrottle::WillProcessResponse. The report was disclosed on 5 August 2025 with a medium severity rating and a 2,000 USD bounty.

URL loader throttles sit between Blink and the network service. Each throttle gets a chance to inspect a request before it goes out and to inspect the response when it comes back. For extensions, the throttle provider creates an ExtensionThrottleManager that the throttle consults. The bug is in how that manager's lifetime is tied to the throttle provider and the URL loaders that outlive it.

The trigger condition, as the report describes it, is an extension using the Debugger API to attach to a tab while that tab is processing a URL request.

Setup

The crash was reproduced on a Developer build of Chromium 138.0.7153.0 (64-bit) on Windows 11 Version 24H2 (Build 26120.3941), and also on Linux/ChromiumOS_Linux. The build is an AddressSanitizer build, which is what turns the dangling raw_ptr dereference into a hard abort.

The report notes that the test environment needs access to external network resources.

Finding it

The researcher identified the faulting function as extensions::ExtensionURLLoaderThrottle::WillProcessResponse, and traced the root cause to how ExtensionThrottleManager is managed across the lifecycle of throttle providers and URL loaders. In other words, the manager is owned by the throttle provider, but a throttle that is still in flight can reach it after the provider has gone away.

Exploitation

Step 1: launch Chrome with the test extension

Text
chrome.exe --user-data-dir=c:/tmp/test--no-sandbox --load-extension="extension" https://example.com

This starts Chrome with a throwaway profile, disables the sandbox, loads a local extension directory named extension, and navigates to https://example.com. The report does not describe the extension's contents.

Step 2: the crash

AddressSanitizer reports a heap-use-after-free, a READ of size 1, on thread T4:

Text
==37512==ERROR: AddressSanitizer: heap-use-after-free on address 0x116457cb42c0 at pc 0x7ffbd24435a2 bp 0x0001043fbea0 sp 0x0001043fbee8
READ of size 1 at 0x116457cb42c0 thread T4

The top of the stack is the raw pointer hook that aborts on a dangling dereference:

Text
    #0 0x7ffbd24435a1 in base::internal::`anonymous namespace'::CrashImmediatelyOnUseAfterFree C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17
    #1 0x7ffbd24430f1 in base::internal::`anonymous namespace'::SafelyUnwrapForDereference C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:77:5
    #2 0x7ffbd06251d6 in base::internal::RawPtrHookableImpl<1>::SafelyUnwrapPtrForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr_hookable_impl.h:84
    #3 0x7ffbd06251d6 in base::raw_ptr<extensions::ExtensionThrottleManager,0>::GetForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:996
    #4 0x7ffbd06251d6 in base::raw_ptr<extensions::ExtensionThrottleManager,0>::operator-> C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:665
    #5 0x7ffbd06251d6 in extensions::ExtensionURLLoaderThrottle::WillProcessResponse(class GURL const &, class network::mojom::URLResponseHead *, bool *) C:\b\s\w\ir\cache\builder\src\extensions\renderer\extension_url_loader_throttle.cc:51:3

The dereference happens in WillProcessResponse at extension_url_loader_throttle.cc:51, reached from Blink's ThrottlingURLLoader::OnReceiveResponse when the response arrives over Mojo:

Text
    #6 0x7ffbc3d930fb in blink::ThrottlingURLLoader::OnReceiveResponse(class mojo::StructPtr<class network::mojom::URLResponseHead>, class mojo::ScopedHandleBase<class mojo::DataPipeConsumerHandle>, class std::__Cr::optional<class mojo_base::BigBuffer>) C:\b\s\w\ir\cache\builder\src\third_party\blink\common\loader\throttling_url_loader.cc:666:17
    #7 0x7ffbc0ddb911 in network::mojom::URLLoaderClientStubDispatch::Accept(class network::mojom::URLLoaderClient *, class mojo::Message *) C:\b\s\w\ir\cache\builder\src\out\069a-Win_ASan_Releas\gen\services\network\public\mojom\url_loader.mojom.cc:1127:13

The freed region is a 200-byte allocation, and the free stack shows exactly who released it:

Text
0x116457cb42c0 is located 0 bytes inside of 200-byte region [0x116457cb42c0,0x116457cb4388)
freed by thread T4 here:
    #0 0x7ffc78deae74  (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005ae74)
    #1 0x7ffbd0624c20 in extensions::ExtensionThrottleManager::`scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\extensions\renderer\extension_throttle_manager.cc:33:55
    #2 0x7ffbe85fcc6c in std::__Cr::default_delete<extensions::ExtensionThrottleManager>::operator() C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:76
    #3 0x7ffbe85fcc6c in std::__Cr::unique_ptr<extensions::ExtensionThrottleManager,std::__Cr::default_delete<extensions::ExtensionThrottleManager> >::reset C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:287
    #4 0x7ffbe85fcc6c in std::__Cr::unique_ptr<extensions::ExtensionThrottleManager,std::__Cr::default_delete<extensions::ExtensionThrottleManager> >::~unique_ptr C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:256
    #5 0x7ffbe85fcc6c in URLLoaderThrottleProviderImpl::~URLLoaderThrottleProviderImpl(void) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:152:1

The manager is destroyed as part of URLLoaderThrottleProviderImpl's destructor. The allocation stack shows it was created by the same provider when it built throttles for a background URL load:

Text
previously allocated by thread T4 here:
    #0 0x7ffc78dea28d  (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005a28d)
    #1 0x7ffbe85fe4ca in std::__Cr::make_unique C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:754
    #2 0x7ffbe85fe4ca in `anonymous namespace'::CreateExtensionThrottleManager C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:64
    #3 0x7ffbe85fe4ca in URLLoaderThrottleProviderImpl::CreateThrottles(class base::optional_ref<class base::TokenType<class blink::LocalFrameTokenTypeMarker> const>, struct network::ResourceRequest const &) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:241:35
    #4 0x7ffbcdf784c2 in blink::BackgroundURLLoader::Context::StartOnBackground(class scoped_refptr<class blink::WebBackgroundResourceFetchAssets>, class std::__Cr::unique_ptr<struct network::ResourceRequest, struct std::__Cr::default_delete<struct network::ResourceRequest>>, class url::Origin const &, bool, class WTF::Vector<class WTF::String, 0, class WTF::PartitionAllocator> const &, class std::__Cr::unique_ptr<class blink::ResourceLoadInfoNotifierWrapper, struct std::__Cr::default_delete<class blink::ResourceLoadInfoNotifierWrapper>>, bool, class std::__Cr::unique_ptr<class blink::BackgroundResponseProcessorFactory, struct std::__Cr::default_delete<class blink::BackgroundResponseProcessorFactory>>) C:\b\s\w\ir\cache\builder\src\third_party\blink\renderer\platform\loader\fetch\url_loader\background_url_loader.cc:423:30

The ASan summary names the abort site:

Text
SUMMARY: AddressSanitizer: heap-use-after-free C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17 in base::internal::`anonymous namespace'::CrashImmediatelyOnUseAfterFree

The task trace points at the Mojo watcher that delivered the response:

Text
Task trace:
    #0 0x7ffbd281a6f8 in mojo::SimpleWatcher::Context::Notify(unsigned int, struct MojoHandleSignalsState, unsigned int) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\system\simple_watcher.cc:102:13

The renderer command line recorded with the crash shows the process was started as an extension renderer:

Text
Command line: `"chrome.exe" --type=renderer --user-data-dir=c:/tmp/test --extension-process --no-pre-read-main-dll --no-sandbox --file-url-path-alias="/gen=C:\chromium_version\latest_asan\gen" --video-capture-use-gpu-memory-buffer --lang=zh-CN --device-scale-factor=1.75 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1745603129273034 --launch-time-ticks=399984962880 --metrics-shmem-handle=3088,i,10853463304360795435,6088019744846484161,2097152 --field-trial-handle=1964,i,14414722279579164423,17627674527126514385,262144 --variations-seed-version --mojo-platform-channel-handle=4440 /prefetch:9`

Root cause

The ExtensionThrottleManager is owned by URLLoaderThrottleProviderImpl through a unique_ptr, and is created lazily in CreateThrottles when a load needs extension throttling. The throttle objects handed to in-flight URL loaders hold a raw_ptr to that manager. When the provider is destroyed, the unique_ptr reset destroys the manager, but the throttle can still be called later, in this case from WillProcessResponse when the network response arrives. That call dereferences the now-dangling raw_ptr, and the ASan raw pointer hooks abort on the use-after-free.

The report does not describe the exact sequence that destroys the provider while the load is still in flight; it only states that the Debugger API attaching to a tab during a URL request is what sets up the situation.

ASan's additional info flags the crash as needing manual analysis. Because the free happened on the thread pool, the sequence that invoked the free is unknown, so the crash may be a race condition mislabelled as a use-after-free. The note asks for confirmation that the free is sequenced after the use, for example both on the same sequence or the free in a task posted after the use; otherwise the crash is still exploitable with MiraclePtr. The report does not include the outcome of that analysis.

Impact

The report classifies this as a use-after-free in the renderer's extension URL loader path, reachable when an extension uses the Debugger API to attach to a tab while that tab is processing a URL request. The platform rated it medium severity. The report itself does not spell out a concrete attacker capability, such as code execution or sandbox escape, and the ASan note leaves open whether the dangling access is reliably reachable or only a race.

Fix

Variants to test

  1. Other throttle providers that hand out raw_ptr references to objects owned by the provider. A positive result is an ASan heap-use-after-free in a WillProcessResponse or similar throttle callback after the provider is torn down.
  2. Extension APIs that attach to or detach from a tab during an in-flight navigation, beyond the Debugger API. A positive result is the same crash stack through ExtensionURLLoaderThrottle::WillProcessResponse.
  3. Background URL loads started through BackgroundURLLoader::Context::StartOnBackground while the owning frame or provider is being destroyed. A positive result is the allocation stack from CreateExtensionThrottleManager paired with a free from ~URLLoaderThrottleProviderImpl.
  4. Repeated navigation and attach cycles to see whether the crash is deterministic or a race, given the ASan note about the thread pool. A positive result is a crash that reproduces reliably enough to rule out a benign race.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 23 min read.

What happened, in plain words

Chrome is made of many moving parts. One of them is the extension system: the feature that lets you install small add-on programs (extensions) that can do things a normal web page cannot, such as reading the contents of a tab or watching what a tab is doing. Another part is the network stack: the code that actually fetches web pages and files from the internet.

Between those two parts sits a piece of plumbing called a URL loader throttle. Think of a throttle as a checkpoint on a motorway. Every request for a web page passes through the checkpoint on the way out, and the response passes through it again on the way back. At each pass, the checkpoint can look at the request or response and decide whether to let it continue. Chrome uses these checkpoints for several jobs, and one of them is letting extensions inspect traffic.

This report describes a bug in that checkpoint code. The bug is a use-after-free. In plain terms: a program asked the computer for a chunk of memory, used it for a while, then told the computer it was finished with it (this is called freeing the memory). Later, some other part of the program tried to read that same chunk again, even though it no longer belonged to it. Reading memory you have already given back is dangerous: the computer may have handed that memory to something else in the meantime, so you can end up reading or corrupting unrelated data. In security terms, an attacker who can control what lands in that reused memory may be able to influence what the program does next.

The specific object that got freed too early is called ExtensionThrottleManager. It is a small internal helper that the checkpoint consults when it needs to know something about extensions. The crash happens in a function called extensions::ExtensionURLLoaderThrottle::WillProcessResponse, which is the part of the checkpoint that runs when a response comes back from the network.

The trigger, as the report describes it, is an extension using the Debugger API to attach to a tab while that tab is in the middle of loading a URL. An API (Application Programming Interface) is a defined set of commands one piece of software offers to another. The Debugger API is the set of commands Chrome gives extensions so they can inspect and control a tab the way a developer tool would. Attaching to a tab means telling Chrome "I want to watch and control this tab now".

The bug was tracked as CVE-2025-8576. A CVE is a public catalogue number given to a known security flaw so that people can refer to it unambiguously. It was reported through the Chrome VRP (Vulnerability Reward Program), Chrome's bug bounty scheme, which pays researchers for finding and reporting security bugs. The researcher credited is asnine. The report was disclosed on 5 August 2025, rated medium severity, with a bounty of 2,000 USD.

Context

This is a use-after-free in Chrome's extension URL loader throttling code, tracked as CVE-2025-8576 and reported through the Chrome VRP by asnine. The affected component is Extensions, and the crash lands in extensions::ExtensionURLLoaderThrottle::WillProcessResponse. The report was disclosed on 5 August 2025 with a medium severity rating and a 2,000 USD bounty.

URL loader throttles sit between Blink and the network service. Blink is Chrome's rendering engine: the part that turns HTML, CSS and JavaScript into what you see on screen. The network service is a separate process that does the actual talking to servers. Splitting these apart is a security measure: if the network code is compromised, it does not automatically get access to everything the page can see. The throttle is the bridge where the two sides meet.

Each throttle gets a chance to inspect a request before it goes out and to inspect the response when it comes back. For extensions, the throttle provider creates an ExtensionThrottleManager that the throttle consults. A throttle provider is the factory that makes throttles on demand. The bug is in how that manager's lifetime is tied to the throttle provider and the URL loaders that outlive it. "Lifetime" here means: who creates an object, who is responsible for destroying it, and when. When two parts of a program disagree about when an object dies, you get exactly this kind of bug.

The trigger condition, as the report describes it, is an extension using the Debugger API to attach to a tab while that tab is processing a URL request.

Setup

The crash was reproduced on a Developer build of Chromium 138.0.7153.0 (64-bit) on Windows 11 Version 24H2 (Build 26120.3941), and also on Linux/ChromiumOS_Linux. A Developer build is a version of Chrome compiled for testing rather than for ordinary users; it includes extra checks and debugging output. Chromium is the open-source project that Chrome is built from.

The build is an AddressSanitizer build, which is what turns the dangling raw_ptr dereference into a hard abort. AddressSanitizer, usually shortened to ASan, is a tool built into the compiler that watches memory while the program runs. It puts invisible guard zones around every allocation and marks freed memory as poisoned. If the program touches poisoned memory, ASan stops it immediately and prints a detailed report. Without ASan, a use-after-free often goes unnoticed: the program reads whatever happens to be in that memory and carries on, sometimes crashing much later in a confusing place. With ASan, the exact moment of the bad read is captured.

A raw_ptr is Chrome's own wrapper around a plain C++ pointer. A pointer is simply a number that says where in memory something lives. Chrome wraps pointers so that its safety tooling can check them. When a raw_ptr is dereferenced (that is, when the program follows the pointer to read the object it points at) and the memory has already been freed, the ASan hooks fire and abort the process.

The report notes that the test environment needs access to external network resources.

Finding it

The researcher identified the faulting function as extensions::ExtensionURLLoaderThrottle::WillProcessResponse, and traced the root cause to how ExtensionThrottleManager is managed across the lifecycle of throttle providers and URL loaders. In other words, the manager is owned by the throttle provider, but a throttle that is still in flight can reach it after the provider has gone away.

"Owned" is the key word. In C++, ownership is a convention about which piece of code is responsible for destroying an object. Here the provider owns the manager. But the throttle, which is a separate object handed to a URL loader that may still be running, keeps only a raw pointer to the manager. When the provider is destroyed, the manager goes with it, and the throttle is left holding a pointer to memory that no longer belongs to it.

Exploitation

Step 1: launch Chrome with the test extension

Text
chrome.exe --user-data-dir=c:/tmp/test--no-sandbox --load-extension="extension" https://example.com

This starts Chrome with a throwaway profile, disables the sandbox, loads a local extension directory named extension, and navigates to https://example.com. The report does not describe the extension's contents.

Line by line:

  • chrome.exe is the Chrome program itself. Everything after it is a command-line argument, an instruction passed to the program at the moment it starts.
  • --user-data-dir=c:/tmp/test tells Chrome to keep its profile (bookmarks, history, settings, installed extensions) in the folder c:/tmp/test instead of your normal profile. This is a throwaway profile: it keeps the test isolated from your everyday browsing and makes it easy to delete afterwards.
  • --no-sandbox turns off Chrome's sandbox. The sandbox is a security boundary that runs each part of Chrome in a restricted box so that a bug in one part cannot easily take over the whole machine. Researchers turn it off during testing so that debugging tools can attach and so that crashes are easier to observe. You would never use this flag for normal browsing.
  • --load-extension="extension" loads an extension from a local folder called extension. Normally extensions come from the Chrome Web Store and are signed and packaged; this flag lets a developer load an unpacked folder straight from disk, which is how you test an extension you are writing.
  • https://example.com is the page Chrome opens at startup. It is a real site on the internet, which is why the test machine needs network access.

The report identifies the trigger as an extension using the Debugger API to attach to a tab while that tab is processing a URL request.

Step 2: the crash

AddressSanitizer reports a heap-use-after-free, a READ of size 1, on thread T4:

Text
==37512==ERROR: AddressSanitizer: heap-use-after-free on address 0x116457cb42c0 at pc 0x7ffbd24435a2 bp 0x0001043fbea0 sp 0x0001043fbee8
READ of size 1 at 0x116457cb42c0 thread T4

What each part means:

  • ==37512== is the process ID of the Chrome process that crashed. It is just a label so you can match lines from the same run.
  • AddressSanitizer: heap-use-after-free is the verdict: the program used memory after it had been freed. The heap is the general-purpose pool of memory a program uses for objects it creates while running, as opposed to the stack, which is used for short-lived local variables.
  • on address 0x116457cb42c0 is the exact memory address involved. An address is the number that identifies a location in memory, like a house number on a street.
  • at pc 0x7ffbd24435a2 gives the program counter, the address of the instruction that was executing when the bad access happened.
  • bp and sp are the base pointer and stack pointer, two registers that describe where in the call stack the program currently is. You do not need to read them; ASan prints them for completeness.
  • READ of size 1 means the program tried to read a single byte. It was not writing or copying a large block; it was just looking at one byte of an object that no longer existed.
  • thread T4 tells you which thread did it. A thread is one line of execution inside a program; a process can have many threads running at once. T4 is the fourth thread ASan has been tracking in this process.

The top of the stack is the raw pointer hook that aborts on a dangling dereference:

Text
    #0 0x7ffbd24435a1 in base::internal::`anonymous namespace'::CrashImmediatelyOnUseAfterFree C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17
    #1 0x7ffbd24430f1 in base::internal::`anonymous namespace'::SafelyUnwrapForDereference C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:77:5
    #2 0x7ffbd06251d6 in base::internal::RawPtrHookableImpl<1>::SafelyUnwrapPtrForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr_hookable_impl.h:84
    #3 0x7ffbd06251d6 in base::raw_ptr<extensions::ExtensionThrottleManager,0>::GetForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:996
    #4 0x7ffbd06251d6 in base::raw_ptr<extensions::ExtensionThrottleManager,0>::operator-> C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:665
    #5 0x7ffbd06251d6 in extensions::ExtensionURLLoaderThrottle::WillProcessResponse(class GURL const &, class network::mojom::URLResponseHead *, bool *) C:\b\s\w\ir\cache\builder\src\extensions\renderer\extension_url_loader_throttle.cc:51:3

This is a stack trace, sometimes called a backtrace. It lists the chain of function calls that led to the crash, with #0 being the innermost (the function that was actually executing) and higher numbers being the callers. Reading it from the bottom up tells the story of how the program got there. Reading it from the top down tells you what went wrong first.

  • #0 CrashImmediatelyOnUseAfterFree is the safety net firing. Its name says exactly what it does: as soon as a use-after-free is detected, crash on purpose. Crashing deliberately is better than continuing with corrupted state, because continuing could hide the bug or, worse, let an attacker exploit it.
  • #1 SafelyUnwrapForDereference and #2 SafelyUnwrapPtrForDereference are the checks that run just before a wrapped pointer is followed. They are the moment where Chrome asks "is this pointer still valid?" and ASan answers "no".
  • #3 GetForDereference and #4 operator-> are part of the raw_ptr wrapper. operator-> is the C++ syntax for "follow this pointer and give me the object it points at". The wrapper intercepts that and runs the safety check first.
  • #5 WillProcessResponse is the real culprit: the extension throttle's response handler. The file and line extension_url_loader_throttle.cc:51 tell a Chrome developer exactly where in the source code to look.

The dereference happens in WillProcessResponse at extension_url_loader_throttle.cc:51, reached from Blink's ThrottlingURLLoader::OnReceiveResponse when the response arrives over Mojo:

Text
    #6 0x7ffbc3d930fb in blink::ThrottlingURLLoader::OnReceiveResponse(class mojo::StructPtr<class network::mojom::URLResponseHead>, class mojo::ScopedHandleBase<class mojo::DataPipeConsumerHandle>, class std::__Cr::optional<class mojo_base::BigBuffer>) C:\b\s\w\ir\cache\builder\src\third_party\blink\common\loader\throttling_url_loader.cc:666:17
    #7 0x7ffbc0ddb911 in network::mojom::URLLoaderClientStubDispatch::Accept(class network::mojom::URLLoaderClient *, class mojo::Message *) C:\b\s\w\ir\cache\builder\src\out\069a-Win_ASan_Releas\gen\services\network\public\mojom\url_loader.mojom.cc:1127:13
  • #6 OnReceiveResponse is Blink's handler for "a response has arrived". It is the entry point that kicks off the throttle chain, giving each throttle its turn to look at the response. This is the normal, healthy path; the bug is that one of the throttles it calls is no longer safe to call.
  • #7 URLLoaderClientStubDispatch::Accept is the glue that receives a message from the network service. Mojo is Chrome's internal messaging system, the way the different processes talk to each other. The network service sends the response over Mojo, and this code receives it and hands it to Blink. The mojom in the names refers to Mojo interface definition files, which describe the messages that can be sent.

The freed region is a 200-byte allocation, and the free stack shows exactly who released it:

Text
0x116457cb42c0 is located 0 bytes inside of 200-byte region [0x116457cb42c0,0x116457cb4388)
freed by thread T4 here:
    #0 0x7ffc78deae74  (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005ae74)
    #1 0x7ffbd0624c20 in extensions::ExtensionThrottleManager::`scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\extensions\renderer\extension_throttle_manager.cc:33:55
    #2 0x7ffbe85fcc6c in std::__Cr::default_delete<extensions::ExtensionThrottleManager>::operator() C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:76
    #3 0x7ffbe85fcc6c in std::__Cr::unique_ptr<extensions::ExtensionThrottleManager,std::__Cr::default_delete<extensions::ExtensionThrottleManager> >::reset C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:287
    #4 0x7ffbe85fcc6c in std::__Cr::unique_ptr<extensions::ExtensionThrottleManager,std::__Cr::default_delete<extensions::ExtensionThrottleManager> >::~unique_ptr C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:256
    #5 0x7ffbe85fcc6c in URLLoaderThrottleProviderImpl::~URLLoaderThrottleProviderImpl(void) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:152:1
  • The first line says the bad address sits at the very start of a 200-byte block. So the object that was freed was 200 bytes long, and the program tried to read its first byte.
  • freed by thread T4 here introduces a second stack trace: not where the bad read happened, but where the memory was given back. ASan records both, which is what makes it so useful. Without the free stack you would know something was used after being freed, but not who freed it.
  • #0 is inside the ASan runtime itself, the code that actually marks the memory as freed.
  • #1 ExtensionThrottleManager::scalar deleting dtor is the manager's destructor, the special function that runs when an object is destroyed. "scalar deleting dtor" is compiler-speak for the generated code that destroys the object and releases its memory.
  • #2 and #3 are unique_ptr machinery. A unique_ptr is a C++ smart pointer that owns exactly one object and destroys it automatically when the pointer itself goes away. reset is the operation that throws away the currently owned object (destroying it) and optionally takes a new one.
  • #4 ~unique_ptr is the smart pointer's own destructor running.
  • #5 ~URLLoaderThrottleProviderImpl is the throttle provider being destroyed. This is the moment the manager dies: the provider owned it through a unique_ptr, so when the provider is torn down, the manager goes with it.

The manager is destroyed as part of URLLoaderThrottleProviderImpl's destructor. The allocation stack shows it was created by the same provider when it built throttles for a background URL load:

Text
previously allocated by thread T4 here:
    #0 0x7ffc78dea28d  (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005a28d)
    #1 0x7ffbe85fe4ca in std::__Cr::make_unique C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:754
    #2 0x7ffbe85fe4ca in `anonymous namespace'::CreateExtensionThrottleManager C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:64
    #3 0x7ffbe85fe4ca in URLLoaderThrottleProviderImpl::CreateThrottles(class base::optional_ref<class base::TokenType<class blink::LocalFrameTokenTypeMarker> const>, struct network::ResourceRequest const &) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:241:35
    #4 0x7ffbcdf784c2 in blink::BackgroundURLLoader::Context::StartOnBackground(class scoped_refptr<class blink::WebBackgroundResourceFetchAssets>, class std::__Cr::unique_ptr<struct network::ResourceRequest, struct std::__Cr::default_delete<struct network::ResourceRequest>>, class url::Origin const &, bool, class WTF::Vector<class WTF::String, 0, class WTF::PartitionAllocator> const &, class std::__Cr::unique_ptr<class blink::ResourceLoadInfoNotifierWrapper, struct std::__Cr::default_delete<class blink::ResourceLoadInfoNotifierWrapper>>, bool, class std::__Cr::unique_ptr<class blink::BackgroundResponseProcessorFactory, struct std::__Cr::default_delete<class blink::BackgroundResponseProcessorFactory>>) C:\b\s\w\ir\cache\builder\src\third_party\blink\renderer\platform\loader\fetch\url_loader\background_url_loader.cc:423:30

This third stack trace is the allocation stack: where the memory was first handed out. ASan keeps all three (allocate, free, use) so you can see the full life story of the object.

  • previously allocated by thread T4 here says the same thread that later freed and misused the memory had originally created it.
  • #1 make_unique is the C++ helper that creates a new object and wraps it in a unique_ptr in one step. This is the birth of the manager.
  • #2 CreateExtensionThrottleManager is the function whose whole job is to build one of these managers.
  • #3 CreateThrottles is the provider's method for making throttles for a particular request. This is where the manager is created, inside the provider's method for making throttles for a request.
  • #4 StartOnBackground is Blink starting a background URL load. A background load is a fetch that happens off the main page path, for example a resource the browser needs for internal reasons. The name is a hint: this is not the simple case of a page loading in a tab, and background loads have their own lifetime rules.

The ASan summary names the abort site:

Text
SUMMARY: AddressSanitizer: heap-use-after-free C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17 in base::internal::`anonymous namespace'::CrashImmediatelyOnUseAfterFree

This is the one-line verdict ASan prints at the end of every report. If you only read one line, read this one: it tells you the bug class (heap-use-after-free) and the exact function that stopped the program.

The task trace points at the Mojo watcher that delivered the response:

Text
Task trace:
    #0 0x7ffbd281a6f8 in mojo::SimpleWatcher::Context::Notify(unsigned int, struct MojoHandleSignalsState, unsigned int) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\system\simple_watcher.cc:102:13

A task trace is a small extra record Chrome keeps about what task was running when something happened. Here it shows that the crash was triggered by a Mojo watcher notifying its owner that a message had arrived. A watcher is a small helper that waits for activity on a communication channel and then calls you back. In everyday terms: the doorbell rang, the code answered the door, and the response it received led straight into the broken throttle.

The renderer command line recorded with the crash shows the process was started as an extension renderer:

Text
Command line: `"chrome.exe" --type=renderer --user-data-dir=c:/tmp/test --extension-process --no-pre-read-main-dll --no-sandbox --file-url-path-alias="/gen=C:\chromium_version\latest_asan\gen" --video-capture-use-gpu-memory-buffer --lang=zh-CN --device-scale-factor=1.75 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1745603129273034 --launch-time-ticks=399984962880 --metrics-shmem-handle=3088,i,10853463304360795435,6088019744846484161,2097152 --field-trial-handle=1964,i,14414722279579164423,17627674527126514385,262144 --variations-seed-version --mojo-platform-channel-handle=4440 /prefetch:9`

This is the command Chrome used to start the child process that crashed. Chrome runs each tab and each extension in its own renderer process, a separate program with its own memory. The flags tell you what kind of process it was:

  • --type=renderer says this is a renderer process, not the main browser process.
  • --extension-process says it was started specifically to host extensions. That is consistent with the crash being in extension code.
  • --user-data-dir=c:/tmp/test matches the throwaway profile from the launch command, confirming this is the same test run.
  • --no-sandbox again shows the sandbox was disabled for the test.
  • --lang=zh-CN and --device-scale-factor=1.75 are language and display settings; they are incidental to the bug.
  • The --metrics-shmem-handle, --field-trial-handle and --mojo-platform-channel-handle values are internal handles for shared memory and Mojo channels. They are plumbing, not part of the vulnerability.
  • /prefetch:9 is a Windows prefetch hint, again incidental.

Root cause

The ExtensionThrottleManager is owned by URLLoaderThrottleProviderImpl through a unique_ptr, and is created lazily in CreateThrottles when a load needs extension throttling. The throttle objects handed to in-flight URL loaders hold a raw_ptr to that manager. When the provider is destroyed, the unique_ptr reset destroys the manager, but the throttle can still be called later, in this case from WillProcessResponse when the network response arrives. That call dereferences the now-dangling raw_ptr, and the ASan raw pointer hooks abort on the use-after-free.

A useful comparison: imagine a shared office printer. The office manager (the provider) owns the printer and is responsible for it. Employees (the throttles) are given the printer's room number on a sticky note (the raw pointer). When the office manager leaves and clears out the room, the sticky notes are still in people's pockets. Anyone who later follows the note to the room finds it empty, or worse, finds someone else's equipment there. The safe designs are either to keep the room until everyone has finished with it, or to have people check that the room still exists before walking in.

The report does not describe the exact sequence that destroys the provider while the load is still in flight; it only states that the Debugger API attaching to a tab during a URL request is what sets up the situation.

ASan's additional info flags the crash as needing manual analysis. Because the free happened on the thread pool, the sequence that invoked the free is unknown, so the crash may be a race condition mislabelled as a use-after-free. A race condition is a bug where the result depends on the exact timing of two things happening at once. If the free and the use are on different threads with no ordering guarantee, then sometimes the use happens first (no crash) and sometimes the free happens first (crash). That timing dependence is what makes races hard to reproduce and hard to reason about.

The note asks for confirmation that the free is sequenced after the use, for example both on the same sequence or the free in a task posted after the use; otherwise the crash is still exploitable with MiraclePtr. MiraclePtr is Chrome's defence that makes many use-after-free bugs non-exploitable by keeping freed memory quarantined so it cannot be reused immediately. But that defence only works if the free genuinely happens after the use. If the two are racing, the defence may not save you. The report does not include the outcome of that analysis.

Impact

The report classifies this as a use-after-free in the renderer's extension URL loader path, reachable when an extension uses the Debugger API to attach to a tab while that tab is processing a URL request. The platform rated it medium severity. The report itself does not spell out a concrete attacker capability, such as code execution or sandbox escape, and the ASan note leaves open whether the dangling access is reliably reachable or only a race.

"Code execution" means an attacker getting their own instructions to run on the machine. "Sandbox escape" means breaking out of the restricted box Chrome puts each process in. Neither is claimed here; the report stops at demonstrating the crash.

Fix

In the printer comparison: either keep the room open until the last employee has finished, or give employees a way to check the room is still there before they walk in.

Variants to test

These are follow-up experiments a researcher might run to see whether the same mistake exists elsewhere. Each one lists what a positive result would look like.

  1. Other throttle providers that hand out raw_ptr references to objects owned by the provider. A positive result is an ASan heap-use-after-free in a WillProcessResponse or similar throttle callback after the provider is torn down.
  2. Extension APIs that attach to or detach from a tab during an in-flight navigation, beyond the Debugger API. A positive result is the same crash stack through ExtensionURLLoaderThrottle::WillProcessResponse.
  3. Background URL loads started through BackgroundURLLoader::Context::StartOnBackground while the owning frame or provider is being destroyed. A positive result is the allocation stack from CreateExtensionThrottleManager paired with a free from ~URLLoaderThrottleProviderImpl.
  4. Repeated navigation and attach cycles to see whether the crash is deterministic or a race, given the ASan note about the thread pool. A positive result is a crash that reproduces reliably enough to rule out a benign race.

Glossary

  • Address: the number identifying a location in memory, like a house number on a street.
  • AddressSanitizer (ASan): a compiler tool that watches memory at runtime, poisons freed memory, and stops the program the moment it is touched.
  • API (Application Programming Interface): a defined set of commands one piece of software offers to another.
  • Background URL load: a fetch started by the browser off the main page path, with its own lifetime rules.
  • Base pointer / stack pointer: CPU registers describing where in the call stack the program currently is.
  • Blink: Chrome's rendering engine, the part that turns HTML, CSS and JavaScript into what you see.
  • Bug bounty: a scheme that pays researchers for finding and reporting security bugs.
  • Chrome VRP (Vulnerability Reward Program): Chrome's bug bounty programme.
  • Chromium: the open-source project that Chrome is built from.
  • Code execution: an attacker getting their own instructions to run on the machine.
  • Command-line argument: an instruction passed to a program at the moment it starts.
  • CVE: a public catalogue number given to a known security flaw so people can refer to it unambiguously.
  • Debugger API: the set of commands Chrome gives extensions to inspect and control a tab the way a developer tool would.
  • Destructor: the special function that runs when an object is destroyed.
  • Developer build: a version of Chrome compiled for testing rather than for ordinary users, with extra checks and debugging output.
  • Dereference: to follow a pointer and read the object it points at.
  • Extension: a small add-on program installed into Chrome that can do things a normal web page cannot.
  • Heap: the general-purpose pool of memory a program uses for objects it creates while running.
  • Lifetime: who creates an object, who is responsible for destroying it, and when.
  • MiraclePtr: Chrome's defence that keeps freed memory quarantined so many use-after-free bugs cannot be exploited.
  • Mojo: Chrome's internal messaging system, used for communication between processes.
  • Network service: the separate process that does the actual talking to servers.
  • Ownership: the convention about which piece of code is responsible for destroying an object.
  • Pointer: a number that says where in memory something lives.
  • Program counter: the address of the instruction currently executing.
  • Race condition: a bug where the result depends on the exact timing of two things happening at once.
  • raw_ptr: Chrome's wrapper around a plain C++ pointer, so safety tooling can check it.
  • Renderer process: a separate program Chrome starts to host a tab or an extension, with its own memory.
  • Sandbox: a security boundary that runs each part of Chrome in a restricted box so a bug in one part cannot easily take over the machine.
  • Sandbox escape: breaking out of that restricted box.
  • Stack trace (backtrace): the chain of function calls that led to a crash, with the innermost call first.
  • Task trace: a small extra record Chrome keeps about what task was running when something happened.
  • Thread: one line of execution inside a program; a process can have many running at once.
  • Throttle provider: the factory that makes URL loader throttles on demand.
  • unique_ptr: a C++ smart pointer that owns exactly one object and destroys it automatically when the pointer goes away.
  • URL loader throttle: a checkpoint between Blink and the network service that can inspect a request on the way out and the response on the way back.
  • Use-after-free: a bug where a program reads or writes memory it has already given back, which may since have been reused for something else.
  • Watcher: a small helper that waits for activity on a communication channel and then calls you back.

More by asnine

View all

18 more disclosed reports, best first.

More from Google Chrome

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.