Use after free in Safe Browsing (CVE-2025-11756)
A use-after-free existed in Chrome's renderer Safe Browsing URL loading throttle: when a resource load was redirected, the throttle dereferenced a reporter object that had already been freed during teardown of the throttle provider. An attacker could trigger a renderer crash by causing a redirect during that teardown race.
- Fix shipped in 20 days
VULNERABILITY DETAILS A UAF condition was detected in the renderer process within the Safe Browsing URL loading throttle mechanism. This vulnerability occurs when a resource load that triggers the safe_browsing::RendererURLLoaderThrottle is redirected, and a race condition is won against the tear-down of the associated renderer context. The crash occurs when safe_browsing::RendererURLLoaderThrottle::WillRedirectRequest attempts to dereference a raw_ptr to safe_browsing::mojom::ExtensionWebRequestReporter, which has been freed shortly beforehand as part of the URLLoaderThrottleProviderImpl destruction.
When the injected contentjs fetch the 307 Temporary Redirect url(in content.js) cause the UAF.
VERSION Chrome Version: 142.0.7433.0 (Developer Build) (64-bit) Operating System: Windows 10 Version 22H2 (Build 19045.6332)
REPRODUCTION CASE
- run the command:
./chrome.exe --user-data-dir=C:/tmp/test --no-sandbox --no-first-run --load-extension="extension_dir" https://example.com https://example.com https://example.com
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION
Type of crash: [tab]
==4664==ERROR: AddressSanitizer: heap-use-after-free on address 0x118c5a3b78f0 at pc 0x7ffd9d2b61bf bp 0x005380ffe380 sp 0x005380ffe3c8
READ of size 1 at 0x118c5a3b78f0 thread T5
#0 0x7ffd9d2b61be in base::internal::anonymous namespace'::CrashImmediatelyOnUseAfterFree C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17 #1 0x7ffd9d2b5d11 in base::internal::anonymous namespace'::SafelyUnwrapForDereference C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:77:5
#2 0x7ffd9a5192b5 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 0x7ffd9a5192b5 in base::raw_ptr<safe_browsing::mojom::ExtensionWebRequestReporter,1>::GetForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:1019
#4 0x7ffd9a5192b5 in base::raw_ptr<safe_browsing::mojom::ExtensionWebRequestReporter,1>::operator-> C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:665
#5 0x7ffd9a5192b5 in safe_browsing::RendererURLLoaderThrottle::WillRedirectRequest(struct net::RedirectInfo *, class network::mojom::URLResponseHead const &, bool *, class std::__Cr::vector<class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>, class std::__Cr::allocator<class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>>> *, class net::HttpRequestHeaders *, class net::HttpRequestHeaders *) C:\b\s\w\ir\cache\builder\src\components\safe_browsing\content\renderer\renderer_url_loader_throttle.cc:120:5
#6 0x7ffd8d82021b in blink::ThrottlingURLLoader::OnReceiveRedirect(struct net::RedirectInfo const &, class mojo::StructPtr<class network::mojom::URLResponseHead>) C:\b\s\w\ir\cache\builder\src\third_party\blink\common\loader\throttling_url_loader.cc:767:17
#7 0x7ffd8abbff74 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:1191:13
#8 0x7ffd9cebadb4 in mojo::InterfaceEndpointClient::HandleValidatedMessage(class mojo::Message *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_endpoint_client.cc:1060:54
#9 0x7ffd9ceb7b2a 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 0x7ffd9cec147e 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 0x7ffd9cea2b1f 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:1164:42
#12 0x7ffd9cea109c in mojo::internal::MultiplexRouter::Accept(class mojo::Message *) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\multiplex_router.cc:767:7
#13 0x7ffd9ceb7b2a 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 0x7ffd9cedfa38 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 0x7ffd9cee1380 in mojo::Connector::ReadAllAvailableMessages(void) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\connector.cc:619:14
#16 0x7ffd9cee0da7 in mojo::Connector::OnHandleReadyInternal C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\connector.cc:450
#17 0x7ffd9cee0da7 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 0x7ffd9cee2d23 in base::internal::DecayedFunctorTraits<void (mojo::Connector::)(const char *, unsigned int),mojo::Connector *,const char *const &>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:730
#19 0x7ffd9cee2d23 in base::internal::InvokeHelper<0,base::internal::FunctorTraits<void (mojo::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:922
#20 0x7ffd9cee2d23 in base::internal::Invoker<base::internal::FunctorTraits<void (mojo::Connector::*const &)(const char *, unsigned int),mojo::Connector *,const char const &>,base::internal::BindState<1,1,0,void (mojo::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:1059
#21 0x7ffd9cee2d23 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:979:12
#22 0x7ffd8d81047c in base::RepeatingCallback<(unsigned int)>::Run(unsigned int) const & C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:343:12
#23 0x7ffd8d81026f 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:663
#24 0x7ffd8d81026f 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:922
#25 0x7ffd8d81026f 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:1059
#26 0x7ffd8d81026f 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:979:12
#27 0x7ffd9d6a06fb 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:343:12
#28 0x7ffd9d69fff5 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 0x7ffd9d6a11d8 in base::internal::DecayedFunctorTraits<void (mojo::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:730
#30 0x7ffd9d6a11d8 in base::internal::InvokeHelper<1,base::internal::FunctorTraits<void (mojo::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:946
#31 0x7ffd9d6a11d8 in base::internal::Invoker<base::internal::FunctorTraits<void (mojo::SimpleWatcher::&&)(int, unsigned int, const mojo::HandleSignalsState &),base::WeakPtrmojo::SimpleWatcher &&,int &&,unsigned int &&,mojo::HandleSignalsState &&>,base::internal::BindState<1,1,0,void (mojo::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:1059
#32 0x7ffd9d6a11d8 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:972:12
#33 0x7ffd9d171033 in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:155
#34 0x7ffd9d171033 in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:207:34
#35 0x7ffd9d0c611c in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:104
#36 0x7ffd9d0c611c in base::internal::TaskTracker::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:686
#37 0x7ffd9d0c611c 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:671:3
#38 0x7ffd9d0c475a in base::internal::TaskTracker::RunTaskWithShutdownBehavior C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:701
#39 0x7ffd9d0c475a 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:501:5
#40 0x7ffd9d0c382e in base::internal::TaskTracker::RunAndPopNextTask(class base::internal::RegisteredTaskSource) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:391:5
#41 0x7ffd9d0adc95 in base::internal::WorkerThread::RunWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:473:36
#42 0x7ffd9d0acaff in base::internal::WorkerThread::RunPooledWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:359:3
#43 0x7ffd9cfb8cd3 in base::`anonymous namespace'::ThreadFunc C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:114:13
#44 0x7ffddda3beee (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005beee)
#45 0x7ffe4c127373 (C:\WINDOWS\System32\KERNEL32.DLL+0x180017373)
#46 0x7ffe4d6dcc90 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18004cc90)
0x118c5a3b78f0 is located 0 bytes inside of 16-byte region [0x118c5a3b78f0,0x118c5a3b7900)
freed by thread T5 here:
#0 0x7ffddda3d2c6 (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005d2c6)
#1 0x7ffd899008d8 in google::protobuf::ZeroCopyCodedInputStream::scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\chrome\common\profiler\thread_profiler_platform_configuration.cc:25:7 #2 0x7ffdb44c8b95 in std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy>::operator() C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:77 #3 0x7ffdb44c8b95 in std::__Cr::unique_ptr<safe_browsing::mojom::ExtensionWebRequestReporterProxy,std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy> >::reset C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:290 #4 0x7ffdb44c8b95 in std::__Cr::unique_ptr<safe_browsing::mojom::ExtensionWebRequestReporterProxy,std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy> >::~unique_ptr C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:259 #5 0x7ffdb44c8b95 in mojo::internal::InterfacePtrState<safe_browsing::mojom::ExtensionWebRequestReporter>::~InterfacePtrState C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_ptr_state.h:142 #6 0x7ffdb44c8b95 in mojo::Remote<safe_browsing::mojom::ExtensionWebRequestReporter>::~Remote C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\remote.h:88 #7 0x7ffdb44c8b95 in URLLoaderThrottleProviderImpl::~URLLoaderThrottleProviderImpl(void) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:175:1 #8 0x7ffdb44cbd0f in URLLoaderThrottleProviderImpl::scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:163:65
#9 0x7ffd9d0f4f77 in base::internal::DecayedFunctorTraits<void (*)(const void *),const void &&>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:663
#10 0x7ffd9d0f4f77 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:922
#11 0x7ffd9d0f4f77 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:1059
#12 0x7ffd9d0f4f77 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:972:12
#13 0x7ffd9d171033 in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:155
#14 0x7ffd9d171033 in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:207:34
#15 0x7ffd9d0c611c in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:104
#16 0x7ffd9d0c611c in base::internal::TaskTracker::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:686
#17 0x7ffd9d0c611c 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:671:3
#18 0x7ffd9d0c475a in base::internal::TaskTracker::RunTaskWithShutdownBehavior C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:701
#19 0x7ffd9d0c475a 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:501:5
#20 0x7ffd9d0c382e in base::internal::TaskTracker::RunAndPopNextTask(class base::internal::RegisteredTaskSource) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:391:5
#21 0x7ffd9d0adc95 in base::internal::WorkerThread::RunWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:473:36
#22 0x7ffd9d0acaff in base::internal::WorkerThread::RunPooledWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:359:3
#23 0x7ffd9cfb8cd3 in base::`anonymous namespace'::ThreadFunc C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:114:13
#24 0x7ffddda3beee (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005beee)
#25 0x7ffe4c127373 (C:\WINDOWS\System32\KERNEL32.DLL+0x180017373)
#26 0x7ffe4d6dcc90 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18004cc90)
previously allocated by thread T5 here: #0 0x7ffddda3c6ff (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005c6ff) #1 0x7ffd9a51b381 in std::__Cr::make_unique C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include__memory\unique_ptr.h:759 #2 0x7ffd9a51b381 in mojo::internal::InterfacePtrState<class safe_browsing::mojom::ExtensionWebRequestReporter>::ConfigureProxyIfNecessary(void) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_ptr_state.h:274:16 #3 0x7ffd9a51af64 in mojo::internal::InterfacePtrState<safe_browsing::mojom::ExtensionWebRequestReporter>::instance C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_ptr_state.h:145 #4 0x7ffd9a51af64 in mojo::Remote<class safe_browsing::mojom::ExtensionWebRequestReporter>::Bind(class mojo::PendingRemote<class safe_browsing::mojom::ExtensionWebRequestReporter>, class scoped_refptr<class base::SequencedTaskRunner>) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\remote.h:297:35 #5 0x7ffdb44c9ee8 in mojo::Remote<safe_browsing::mojom::ExtensionWebRequestReporter>::Bind C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\remote.h:270 #6 0x7ffdb44c9ee8 in URLLoaderThrottleProviderImpl::CreateThrottles(class base::optional_ref<class base::TokenType<class blink::LocalFrameTokenTypeMarker> const, 0>, struct network::ResourceRequest const &) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:211:39 #7 0x7ffd96a8fb12 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 blink::Vector<class blink::String, 0, class blink::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:418:30 #8 0x7ffd96a90fd0 in base::internal::DecayedFunctorTraits<void (blink::BackgroundURLLoader::Context::)(scoped_refptrblink::WebBackgroundResourceFetchAssets, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest >, const url::Origin &, bool, const blink::Vectorblink::String,0,blink::PartitionAllocator &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::BackgroundResponseProcessorFactory >),scoped_refptrblink::BackgroundURLLoader::Context &&,scoped_refptrblink::WebBackgroundResourceFetchAssets &&,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest > &&,url::Origin &&,bool &&,blink::Vectorblink::String,0,blink::PartitionAllocator &&,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper > &&,bool &&,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::BackgroundResponseProcessorFactory > &&>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:730 #9 0x7ffd96a90fd0 in base::internal::InvokeHelper<0,base::internal::FunctorTraits<void (blink::BackgroundURLLoader::Context::&&)(scoped_refptrblink::WebBackgroundResourceFetchAssets, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest >, const url::Origin &, bool, const blink::Vectorblink::String,0,blink::PartitionAllocator &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::BackgroundResponseProcessorFactory >),scoped_refptrblink::BackgroundURLLoader::Context &&,scoped_refptrblink::WebBackgroundResourceFetchAssets &&,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest > &&,url::Origin &&,bool &&,blink::Vectorblink::String,0,blink::PartitionAllocator &&,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper > &&,bool &&,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::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:922 #10 0x7ffd96a90fd0 in base::internal::Invoker<base::internal::FunctorTraits<void (blink::BackgroundURLLoader::Context::&&)(scoped_refptrblink::WebBackgroundResourceFetchAssets, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest >, const url::Origin &, bool, const blink::Vectorblink::String,0,blink::PartitionAllocator &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::BackgroundResponseProcessorFactory >),scoped_refptrblink::BackgroundURLLoader::Context &&,scoped_refptrblink::WebBackgroundResourceFetchAssets &&,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest > &&,url::Origin &&,bool &&,blink::Vectorblink::String,0,blink::PartitionAllocator &&,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper > &&,bool &&,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::BackgroundResponseProcessorFactory > &&>,base::internal::BindState<1,1,0,void (blink::BackgroundURLLoader::Context::)(scoped_refptrblink::WebBackgroundResourceFetchAssets, std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest >, const url::Origin &, bool, const blink::Vectorblink::String,0,blink::PartitionAllocator &, std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper >, bool, std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::BackgroundResponseProcessorFactory >),scoped_refptrblink::BackgroundURLLoader::Context,scoped_refptrblink::WebBackgroundResourceFetchAssets,std::__Cr::unique_ptr<network::ResourceRequest,std::__Cr::default_deletenetwork::ResourceRequest >,url::Origin,bool,blink::Vectorblink::String,0,blink::PartitionAllocator,std::__Cr::unique_ptr<blink::ResourceLoadInfoNotifierWrapper,std::__Cr::default_deleteblink::ResourceLoadInfoNotifierWrapper >,bool,std::__Cr::unique_ptr<blink::BackgroundResponseProcessorFactory,std::__Cr::default_deleteblink::BackgroundResponseProcessorFactory > >,void ()>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1059 #11 0x7ffd96a90fd0 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 blink::Vector<class blink::String, 0, class blink::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 blink::Vector<class blink::String, 0, class blink::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 blink::Vector<class blink::String, 0, class blink::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 blink::Vector<class blink::String, 0, class blink::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:972:12 #12 0x7ffd9d171033 in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:155 #13 0x7ffd9d171033 in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:207:34 #14 0x7ffd9d0c611c in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:104 #15 0x7ffd9d0c611c in base::internal::TaskTracker::RunTaskImpl C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:686 #16 0x7ffd9d0c611c 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:671:3 #17 0x7ffd9d0c475a in base::internal::TaskTracker::RunTaskWithShutdownBehavior C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:701 #18 0x7ffd9d0c475a 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:501:5 #19 0x7ffd9d0c382e in base::internal::TaskTracker::RunAndPopNextTask(class base::internal::RegisteredTaskSource) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\task_tracker.cc:391:5 #20 0x7ffd9d0adc95 in base::internal::WorkerThread::RunWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:473:36 #21 0x7ffd9d0acaff in base::internal::WorkerThread::RunPooledWorker(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\worker_thread.cc:359:3 #22 0x7ffd9cfb8cd3 in base::`anonymous namespace'::ThreadFunc C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:114:13 #23 0x7ffddda3beee (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005beee) #24 0x7ffe4c127373 (C:\WINDOWS\System32\KERNEL32.DLL+0x180017373) #25 0x7ffe4d6dcc90 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18004cc90)
Thread T5 created by T0 here: #0 0x7ffddda3be04 (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005be04) #1 0x7ffd9cfb7ffc in base::`anonymous namespace'::CreateThreadInternal C:\b\s\w\ir\cache\builder\src\base\threading\platform_thread_win.cc:182:7 #2 0x7ffd9d0ab13f 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 0x7ffd9d0bbc97 in base::internal::ThreadGroup::BaseScopedCommandsExecutor::Flush(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_group.cc:90:13 #4 0x7ffd9d0bb96d in base::internal::ThreadGroup::BaseScopedCommandsExecutor::~BaseScopedCommandsExecutor(void) C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_group.cc:81:3 #5 0x7ffd9d0b0557 in base::internal::ThreadGroupImpl::ScopedCommandsExecutor::~ScopedCommandsExecutor C:\b\s\w\ir\cache\builder\src\base\task\thread_pool\thread_group_impl.cc:43 #6 0x7ffd9d0b0557 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:252:3 #7 0x7ffd9d0a1805 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:198:35 #8 0x7ffda725b2a8 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>>, bool) C:\b\s\w\ir\cache\builder\src\content\child\child_process.cc:113:20 #9 0x7ffda73679eb 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 0x7ffda73670bd in content::RenderProcessImpl::RenderProcessImpl(void) C:\b\s\w\ir\cache\builder\src\content\renderer\render_process_impl.cc:98:7 #11 0x7ffda7367685 in content::RenderProcessImpl::Create(void) C:\b\s\w\ir\cache\builder\src\content\renderer\render_process_impl.cc:216:31 #12 0x7ffda7284806 in content::RendererMain(struct content::MainFunctionParams) C:\b\s\w\ir\cache\builder\src\content\renderer\renderer_main.cc:276:53 #13 0x7ffd99053b6c 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:764:14 #14 0x7ffd99055fa3 in content::ContentMainRunnerImpl::Run(void) C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:1130:10 #15 0x7ffd9904a31f in content::RunContentProcess(struct content::ContentMainParams, class content::ContentMainRunner *) C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:346:36 #16 0x7ffd9904a88e in content::ContentMain(struct content::ContentMainParams) C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:359:10 #17 0x7ffd898f300f in ChromeMain C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc:228:12 #18 0x7ff784f5483b 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 0x7ff784f52085 in main C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_exe_main_win.cc:352:20 #20 0x7ff78542e7bf in invoke_main D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 #21 0x7ff78542e7bf in __scrt_common_main_seh D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #22 0x7ffe4c127373 (C:\WINDOWS\System32\KERNEL32.DLL+0x180017373) #23 0x7ffe4d6dcc90 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18004cc90)
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: 0x118c5a3b7600: f7 fa fd fa f7 fa fd fa f7 fa fd fa f7 fa fd fa 0x118c5a3b7680: f7 fa fd fa f7 fa fd fa f7 fa fd fa f7 fa fd fa 0x118c5a3b7700: f7 fa fd fa f7 fa fd fa f7 fa fd fa f7 fa fd fa 0x118c5a3b7780: f7 fa fd fa f7 fa fd fa f7 fa fd fd f7 fa fd fd 0x118c5a3b7800: f7 fa fd fa f7 fa fd fa f7 fa fd fa f7 fa fd fa =>0x118c5a3b7880: f7 fa fd fa f7 fa fd fa f7 fa fd fd f7 fa[fd]fd 0x118c5a3b7900: f7 fa 00 fa f7 fa fd fa f7 fa fd fd f7 fa 00 fa 0x118c5a3b7980: f7 fa 00 fa f7 fa 00 fa f7 fa 00 fa f7 fa 00 fa 0x118c5a3b7a00: f7 fa 00 fa f7 fa 00 fa f7 fa 00 fa f7 fa 00 fa 0x118c5a3b7a80: f7 fa 00 fa f7 fa 00 00 f7 fa 00 00 f7 fa 00 fa 0x118c5a3b7b00: f7 fa 00 fa f7 fa 00 fa f7 fa 00 fa f7 fa 00 fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa 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
==4664==ADDITIONAL INFO
==4664==Note: Please include this section with the ASan report. Task trace: #0 0x7ffd9d6a0c9f 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: "C:\asan\chrome.exe" --type=renderer --user-data-dir=C:/tmp/test--extensions-on-chrome-urls --no-pre-read-main-dll --no-sandbox --file-url-path-alias="/gen=C:\asan\gen" --video-capture-use-gpu-memory-buffer --lang=en-US --device-scale-factor=1.75 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1758707867337761 --launch-time-ticks=51381261914 --metrics-shmem-handle=3212,i,1427474096340128744,5752336122806041417,2097152 --field-trial-handle=1920,i,6349326568880425583,5959785934015148551,262144 --variations-seed-version --trace-process-track-uuid=3190708990997080739 --mojo-platform-channel-handle=3208 /prefetch:1
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.
==4664==END OF ADDITIONAL INFO ==4664==ABORTING
Context
This is a use-after-free (UAF) in the renderer process of Google Chrome, inside the Safe Browsing URL loading throttle mechanism. The component involved is safe_browsing::RendererURLLoaderThrottle, a throttle that sits on the renderer side of the network stack and inspects resource loads for Safe Browsing purposes. When a load that triggers this throttle is redirected, RendererURLLoaderThrottle::WillRedirectRequest runs and dereferences a raw_ptr to safe_browsing::mojom::ExtensionWebRequestReporter. If that object has already been freed, the dereference is a UAF.
The report was filed through the Chrome VRP, credited to asnine, rated high severity, and a bounty of 7000.00 USD was awarded. It was disclosed on 2025-10-14 as CVE-2025-11756.
Setup
The crash was reproduced on a Developer Build of Chrome, version 142.0.7433.0 (64-bit), running on Windows 10 Version 22H2 (Build 19045.6332). The build was an AddressSanitizer build, as the crash output shows.
The reproduction relies on an unpacked extension loaded from disk. The extension's injected content.js performs a fetch to a URL that answers with a 307 Temporary Redirect; that redirect is what drives the throttle into WillRedirectRequest while the reporter object is being torn down.
Finding it
The researcher detected a UAF in the renderer process within the Safe Browsing URL loading throttle mechanism. The condition appears when a resource load that triggers safe_browsing::RendererURLLoaderThrottle is redirected and a race condition is won against the tear-down of the associated renderer context.
The crash happens when safe_browsing::RendererURLLoaderThrottle::WillRedirectRequest attempts to dereference a raw_ptr to safe_browsing::mojom::ExtensionWebRequestReporter that has been freed shortly beforehand as part of the URLLoaderThrottleProviderImpl destruction. In other words, the redirect callback and the destruction of the throttle provider race each other.
Exploitation
Step 1: launch Chrome with the extension loaded
The researcher runs the browser with a fresh user data directory, no sandbox, no first-run flow, and the unpacked extension loaded, opening three tabs on the same URL:
./chrome.exe --user-data-dir=C:/tmp/test --no-sandbox --no-first-run --load-extension="extension_dir" https://example.com https://example.com https://example.com
--load-extension points at the directory holding the extension whose content.js issues the redirecting fetch. The command passes the same URL three times.
Step 2: the injected content script fetches a redirecting URL
When the injected content.js fetches the 307 Temporary Redirect URL, the UAF is triggered. The redirect response causes blink::ThrottlingURLLoader::OnReceiveRedirect to call into the throttle's WillRedirectRequest, which dereferences the reporter pointer.
Step 3: observe the AddressSanitizer report
The crash is a tab crash. ASan reports a heap-use-after-free, a read of size 1:
==4664==ERROR: AddressSanitizer: heap-use-after-free on address 0x118c5a3b78f0 at pc 0x7ffd9d2b61bf bp 0x005380ffe380 sp 0x005380ffe3c8
READ of size 1 at 0x118c5a3b78f0 thread T5
The top frames show the dereference going through the raw_ptr hooks and then into the throttle:
#0 0x7ffd9d2b61be in base::internal::`anonymous namespace'::CrashImmediatelyOnUseAfterFree C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17
#1 0x7ffd9d2b5d11 in base::internal::`anonymous namespace'::SafelyUnwrapForDereference C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:77:5
#2 0x7ffd9a5192b5 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 0x7ffd9a5192b5 in base::raw_ptr<safe_browsing::mojom::ExtensionWebRequestReporter,1>::GetForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:1019
#4 0x7ffd9a5192b5 in base::raw_ptr<safe_browsing::mojom::ExtensionWebRequestReporter,1>::operator-> C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:665
#5 0x7ffd9a5192b5 in safe_browsing::RendererURLLoaderThrottle::WillRedirectRequest(struct net::RedirectInfo *, class network::mojom::URLResponseHead const &, bool *, class std::__Cr::vector<class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>, class std::__Cr::allocator<class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>>> *, class net::HttpRequestHeaders *, class net::HttpRequestHeaders *) C:\b\s\w\ir\cache\builder\src\components\safe_browsing\content\renderer\renderer_url_loader_throttle.cc:120:5
#6 0x7ffd8d82021b in blink::ThrottlingURLLoader::OnReceiveRedirect(struct net::RedirectInfo const &, class mojo::StructPtr<class network::mojom::URLResponseHead>) C:\b\s\w\ir\cache\builder\src\third_party\blink\common\loader\throttling_url_loader.cc:767:17
The rest of the stack runs through the Mojo dispatch path (URLLoaderClientStubDispatch::Accept, InterfaceEndpointClient::HandleValidatedMessage, MultiplexRouter, Connector) and into the thread pool (TaskTracker, WorkerThread), which is how the redirect message reaches the throttle on thread T5.
The free is reported on the same thread, T5, and the stack shows the reporter proxy being destroyed with the throttle provider:
freed by thread T5 here:
#0 0x7ffddda3d2c6 (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005d2c6)
#1 0x7ffd899008d8 in google::protobuf::ZeroCopyCodedInputStream::`scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\chrome\common\profiler\thread_profiler_platform_configuration.cc:25:7
#2 0x7ffdb44c8b95 in std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy>::operator() C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:77
#3 0x7ffdb44c8b95 in std::__Cr::unique_ptr<safe_browsing::mojom::ExtensionWebRequestReporterProxy,std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy> >::reset C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:290
#4 0x7ffdb44c8b95 in std::__Cr::unique_ptr<safe_browsing::mojom::ExtensionWebRequestReporterProxy,std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy> >::~unique_ptr C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:259
#5 0x7ffdb44c8b95 in mojo::internal::InterfacePtrState<safe_browsing::mojom::ExtensionWebRequestReporter>::~InterfacePtrState C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_ptr_state.h:142
#6 0x7ffdb44c8b95 in mojo::Remote<safe_browsing::mojom::ExtensionWebRequestReporter>::~Remote C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\remote.h:88
#7 0x7ffdb44c8b95 in URLLoaderThrottleProviderImpl::~URLLoaderThrottleProviderImpl(void) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:175:1
#8 0x7ffdb44cbd0f in URLLoaderThrottleProviderImpl::`scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:163:65
The allocation stack shows where the reporter remote was bound in the first place, inside URLLoaderThrottleProviderImpl::CreateThrottles, reached from blink::BackgroundURLLoader::Context::StartOnBackground:
previously allocated by thread T5 here:
#0 0x7ffddda3c6ff (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005c6ff)
#1 0x7ffd9a51b381 in std::__Cr::make_unique C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:759
#2 0x7ffd9a51b381 in mojo::internal::InterfacePtrState<class safe_browsing::mojom::ExtensionWebRequestReporter>::ConfigureProxyIfNecessary(void) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_ptr_state.h:274:16
#3 0x7ffd9a51af64 in mojo::internal::InterfacePtrState<safe_browsing::mojom::ExtensionWebRequestReporter>::instance C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_ptr_state.h:145
#4 0x7ffd9a51af64 in mojo::Remote<class safe_browsing::mojom::ExtensionWebRequestReporter>::Bind(class mojo::PendingRemote<class safe_browsing::mojom::ExtensionWebRequestReporter>, class scoped_refptr<class base::SequencedTaskRunner>) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\remote.h:297:35
#5 0x7ffdb44c9ee8 in mojo::Remote<safe_browsing::mojom::ExtensionWebRequestReporter>::Bind C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\remote.h:270
#6 0x7ffdb44c9ee8 in URLLoaderThrottleProviderImpl::CreateThrottles(class base::optional_ref<class base::TokenType<class blink::LocalFrameTokenTypeMarker> const, 0>, struct network::ResourceRequest const &) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:211:39
#7 0x7ffd96a8fb12 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 blink::Vector<class blink::String, 0, class blink::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:418:30
The freed region is 16 bytes, and the report notes it is located 0 bytes inside that region:
0x118c5a3b78f0 is located 0 bytes inside of 16-byte region [0x118c5a3b78f0,0x118c5a3b7900)
The ASan summary points at the raw_ptr hook:
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 shows the Mojo watcher notification that led into the dispatch:
Task trace:
#0 0x7ffd9d6a0c9f 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 in the report is:
Command line: `"C:\asan\chrome.exe" --type=renderer --user-data-dir=C:/tmp/test--extensions-on-chrome-urls --no-pre-read-main-dll --no-sandbox --file-url-path-alias="/gen=C:\asan\gen" --video-capture-use-gpu-memory-buffer --lang=en-US --device-scale-factor=1.75 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1758707867337761 --launch-time-ticks=51381261914 --metrics-shmem-handle=3212,i,1427474096340128744,5752336122806041417,2097152 --field-trial-handle=1920,i,6349326568880425583,5959785934015148551,262144 --variations-seed-version --trace-process-track-uuid=3190708990997080739 --mojo-platform-channel-handle=3208 /prefetch:1`
The report also carries the MiraclePtr status block, which flags the crash as needing manual analysis because the free and the use both happened in the thread pool and the sequence that invoked the free is unknown:
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.
Root cause
The throttle holds a raw_ptr to safe_browsing::mojom::ExtensionWebRequestReporter. That reporter is owned through a mojo::Remote inside URLLoaderThrottleProviderImpl, and it is destroyed when the provider is destroyed. The redirect callback WillRedirectRequest dereferences the pointer without any guarantee that the provider, and therefore the reporter, is still alive. When the redirect arrives after the provider has been torn down, the dereference hits freed memory.
The report frames this as a race: the redirect path and the tear-down of the renderer context run concurrently, and the redirect wins the race against the free. The MiraclePtr note makes the same point from the allocator side: because the free happens in the thread pool and its sequencing relative to the use is not established, the crash may be a race condition mislabelled as a UAF, and unless the free is sequenced after the use (same sequence, or a task posted after the use), the bug remains exploitable with MiraclePtr. The raw_ptr hardening did not prevent the dereference; it stopped the program with an ASan abort.
Impact
The crash is in the renderer process and manifests as a tab crash. The report does not describe a path to code execution, sandbox escape or data disclosure. The severity assigned by the program is high, and the weakness class is use after free. The report describes the condition as a race against the tear-down of the associated renderer context.
Fix
The report does not describe the fix that was applied. The structural issue is that WillRedirectRequest dereferences a reporter owned by URLLoaderThrottleProviderImpl without a lifetime guarantee; a fix would need to ensure the reporter outlives any in-flight redirect callback, or that the callback checks liveness before dereferencing.
Variants to test
- Other throttles that hold raw pointers to objects owned by the throttle provider: trigger a redirect on a load that goes through the throttle while the provider is being destroyed, and look for an ASan heap-use-after-free in the redirect callback.
- Background URL loaders: the allocation stack goes through
blink::BackgroundURLLoader::Context::StartOnBackground, so loads started on the background loader are a good place to look for the same race with different throttle types. - Different redirect codes: the report uses a 307 Temporary Redirect; try other redirect statuses on the same fetch path and check whether the throttle callback is reached with the same timing.
- Repeated launches: the reproduction passes the same URL three times; vary the number of URLs and the timing of the fetch to see how reliably the race is won.
- Extension-driven fetches: since the trigger is an injected content script, test other extension APIs that issue network requests through the renderer throttle and observe whether the reporter pointer can be dereferenced after provider destruction.
A positive result in each case is an ASan report showing a read in the throttle's redirect handler on a freed ExtensionWebRequestReporter (or the equivalent object), with the free stack going through the provider destructor.
What happened, in plain words
Google Chrome is a web browser. Inside it, a piece of code called Safe Browsing checks the pages and files your browser loads, to warn you about dangerous ones. To do that, Chrome has a small checkpoint that every network request passes through, so it can be inspected before it completes. In this report, that checkpoint is called a throttle.
A researcher found that this checkpoint could be made to look at a piece of memory that had already been thrown away. In programming terms, that is a use after free: the program frees a chunk of memory (says "I am done with this, someone else can use it") and then later reads from it as if it were still there. Reading freed memory is unpredictable: it may contain old data or data written by something else.
The trigger was a web page redirect. When a server answers a request with a redirect, it is telling the browser "the thing you asked for is somewhere else, go there instead". The checkpoint has a special handler for redirects, and that handler reached for a helper object that had just been destroyed. The result was a crash of the browser tab, caught by a debugging tool called AddressSanitizer.
The report was submitted through the Chrome Vulnerability Reward Program (Chrome VRP), the scheme Google runs to pay people who report security bugs in Chrome. It is credited to asnine, was rated high severity, and earned a bounty of 7000.00 USD. It was disclosed on 2025-10-14 as CVE-2025-11756. A CVE is a public catalogue number given to a known security flaw so people can track it.
Context
This is a use-after-free (UAF) in the renderer process of Google Chrome. Chrome splits its work across several processes: the browser process coordinates everything, and each tab's page content runs in its own renderer process. A bug in a renderer is contained by the sandbox, a security boundary that limits what that process is allowed to touch on your computer.
The bug lives inside the Safe Browsing URL loading throttle mechanism. The component involved is safe_browsing::RendererURLLoaderThrottle, a throttle that sits on the renderer side of the network stack and inspects resource loads for Safe Browsing purposes. A resource load is any request the page makes: the HTML document itself, images, scripts, and requests made by JavaScript.
When a load that triggers this throttle is redirected, RendererURLLoaderThrottle::WillRedirectRequest runs and dereferences a raw_ptr to safe_browsing::mojom::ExtensionWebRequestReporter. Two terms need unpacking here:
- A pointer is a variable that holds the memory address of something else, like a note with someone's house address on it. Dereferencing it means going to that address and reading what is there.
raw_ptris Chrome's own wrapper around a pointer. It is a safety feature: it can notice when the address it holds points at memory that has been freed, and stop the program instead of letting it read garbage.
If the object the pointer refers to has already been freed, the dereference is a UAF. The throttle holds a pointer to the ExtensionWebRequestReporter.
The report was filed through the Chrome VRP, credited to asnine, rated high severity, and a bounty of 7000.00 USD was awarded.
Setup
The crash was reproduced on a Developer Build of Chrome, version 142.0.7433.0 (64-bit), running on Windows 10 Version 22H2 (Build 19045.6332). A Developer Build is a test build made for Chrome developers rather than the version you download as a normal user. The build was an AddressSanitizer build, as the crash output shows. AddressSanitizer, usually shortened to ASan, is a tool built into a special version of the program that watches memory as it is used and shouts loudly the moment freed memory is touched.
The reproduction relies on an unpacked extension loaded from disk. An extension is a small add-on that adds features to Chrome; an unpacked one is loaded straight from a folder instead of being installed from the Chrome Web Store, which is how developers test them. The extension's injected content.js performs a fetch to a URL that answers with a 307 Temporary Redirect; that redirect is what drives the throttle into WillRedirectRequest while the reporter object is being torn down.
A few words on that sentence:
- A content script is JavaScript that an extension injects into a web page to run alongside it.
content.jsis the conventional file name for it. fetchis the browser's built-in JavaScript function for making a network request from code.- A 307 Temporary Redirect is an HTTP status code. When a server replies with it, the browser is told the resource has moved temporarily and should be requested again at the address given in the response.
- Tear-down means shutting something down and releasing its memory.
Finding it
The researcher detected a UAF in the renderer process within the Safe Browsing URL loading throttle mechanism. The condition appears when a resource load that triggers safe_browsing::RendererURLLoaderThrottle is redirected and a race condition is won against the tear-down of the associated renderer context.
A race condition is when two things happen at the same time and the outcome depends on which one finishes first, like two people reaching for the same door handle. Here, one side is the redirect arriving and the other is the shutdown of the renderer context that owns the reporter.
The crash happens when safe_browsing::RendererURLLoaderThrottle::WillRedirectRequest attempts to dereference a raw_ptr to safe_browsing::mojom::ExtensionWebRequestReporter that has been freed shortly beforehand as part of the URLLoaderThrottleProviderImpl destruction. URLLoaderThrottleProviderImpl is the object that creates throttles and owns the reporter; when it is destroyed, the reporter goes with it. In other words, the redirect callback and the destruction of the throttle provider race each other.
Exploitation
Step 1: launch Chrome with the extension loaded
The researcher runs the browser with a fresh user data directory, no sandbox, no first-run flow, and the unpacked extension loaded, opening three tabs on the same URL:
./chrome.exe --user-data-dir=C:/tmp/test --no-sandbox --no-first-run --load-extension="extension_dir" https://example.com https://example.com https://example.com
Line by line:
./chrome.exeruns the Chrome executable from the current folder. On Windows,.exeis the program file.--user-data-dir=C:/tmp/testtells Chrome to keep its profile (history, settings, cookies) in that folder instead of your normal profile. A clean profile makes the test repeatable and keeps it away from your real browsing data.--no-sandboxturns off the sandbox. This is a testing convenience: it makes debugging easier, and it is not something you would do in normal browsing.--no-first-runskips the welcome screens Chrome shows on a brand new profile, so the browser goes straight to work.--load-extension="extension_dir"loads the unpacked extension from that folder. This is the extension whosecontent.jsissues the redirecting fetch.- The three
https://example.comarguments are the pages to open. The command passes the same URL three times.
Step 2: the injected content script fetches a redirecting URL
When the injected content.js fetches the 307 Temporary Redirect URL, the UAF is triggered. The redirect response causes blink::ThrottlingURLLoader::OnReceiveRedirect to call into the throttle's WillRedirectRequest, which dereferences the reporter pointer. blink is Chrome's rendering engine, the part that turns HTML and CSS into what you see; its URL loader is the piece that carries requests through the throttle chain.
Step 3: observe the AddressSanitizer report
The crash is a tab crash. ASan reports a heap-use-after-free, a read of size 1:
==4664==ERROR: AddressSanitizer: heap-use-after-free on address 0x118c5a3b78f0 at pc 0x7ffd9d2b61bf bp 0x005380ffe380 sp 0x005380ffe3c8
READ of size 1 at 0x118c5a3b78f0 thread T5
This says ASan caught a use-after-free on the heap (the general pool of memory programs use for objects they create at runtime) at a particular address. READ of size 1 means the program tried to read one byte from that address. thread T5 says which thread did it; a thread is one line of execution inside a process, and a process can run several at once.
The top frames show the dereference going through the raw_ptr hooks and then into the throttle:
#0 0x7ffd9d2b61be in base::internal::`anonymous namespace'::CrashImmediatelyOnUseAfterFree C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:54:17
#1 0x7ffd9d2b5d11 in base::internal::`anonymous namespace'::SafelyUnwrapForDereference C:\b\s\w\ir\cache\builder\src\base\memory\raw_ptr_asan_hooks.cc:77:5
#2 0x7ffd9a5192b5 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 0x7ffd9a5192b5 in base::raw_ptr<safe_browsing::mojom::ExtensionWebRequestReporter,1>::GetForDereference C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:1019
#4 0x7ffd9a5192b5 in base::raw_ptr<safe_browsing::mojom::ExtensionWebRequestReporter,1>::operator-> C:\b\s\w\ir\cache\builder\src\base\allocator\partition_allocator\src\partition_alloc\pointers\raw_ptr.h:665
#5 0x7ffd9a5192b5 in safe_browsing::RendererURLLoaderThrottle::WillRedirectRequest(struct net::RedirectInfo *, class network::mojom::URLResponseHead const &, bool *, class std::__Cr::vector<class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>, class std::__Cr::allocator<class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::__Cr::allocator<char>>>> *, class net::HttpRequestHeaders *, class net::HttpRequestHeaders *) C:\b\s\w\ir\cache\builder\src\components\safe_browsing\content\renderer\renderer_url_loader_throttle.cc:120:5
#6 0x7ffd8d82021b in blink::ThrottlingURLLoader::OnReceiveRedirect(struct net::RedirectInfo const &, class mojo::StructPtr<class network::mojom::URLResponseHead>) C:\b\s\w\ir\cache\builder\src\third_party\blink\common\loader\throttling_url_loader.cc:767:17
A stack trace is a list of the function calls that led to the crash, newest first. Frame #0 is where ASan stopped the program: CrashImmediatelyOnUseAfterFree, the raw_ptr safety check firing. Frames #1 to #4 are the raw_ptr machinery unwrapping the pointer so it can be used. Frame #5 is the actual bug site: WillRedirectRequest in the Safe Browsing throttle, at line 120 of renderer_url_loader_throttle.cc. Frame #6 is the caller, OnReceiveRedirect, which is the code that received the redirect and passed it on.
The rest of the stack runs through the Mojo dispatch path (URLLoaderClientStubDispatch::Accept, InterfaceEndpointClient::HandleValidatedMessage, MultiplexRouter, Connector) and into the thread pool (TaskTracker, WorkerThread), which is how the redirect message reaches the throttle on thread T5. Mojo is Chrome's internal messaging system: the browser process and renderer processes talk to each other by sending messages through Mojo channels, and the stack shows the message being received and dispatched. A thread pool is a set of worker threads the program reuses to run background tasks.
The free is reported on the same thread, T5, and the stack shows the reporter proxy being destroyed with the throttle provider:
freed by thread T5 here:
#0 0x7ffddda3d2c6 (C:\chromium_version\latest_asan\clang_rt.asan_dynamic-x86_64.dll+0x18005d2c6)
#1 0x7ffd899008d8 in google::protobuf::ZeroCopyCodedInputStream::`scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\chrome\common\profiler\thread_profiler_platform_configuration.cc:25:7
#2 0x7ffdb44c8b95 in std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy>::operator() C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:77
#3 0x7ffdb44c8b95 in std::__Cr::unique_ptr<safe_browsing::mojom::ExtensionWebRequestReporterProxy,std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy> >::reset C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:290
#4 0x7ffdb44c8b95 in std::__Cr::unique_ptr<safe_browsing::mojom::ExtensionWebRequestReporterProxy,std::__Cr::default_delete<safe_browsing::mojom::ExtensionWebRequestReporterProxy> >::~unique_ptr C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__memory\unique_ptr.h:259
#5 0x7ffdb44c8b95 in mojo::internal::InterfacePtrState<safe_browsing::mojom::ExtensionWebRequestReporter>::~InterfacePtrState C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\lib\interface_ptr_state.h:142
#6 0x7ffdb44c8b95 in mojo::Remote<safe_browsing::mojom::ExtensionWebRequestReporter>::~Remote C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\bindings\remote.h:88
#7 0x7ffdb44c8b95 in URLLoaderThrottleProviderImpl::~URLLoaderThrottleProviderImpl(void) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:175:1
#8 0x7ffdb44cbd0f in URLLoaderThrottleProviderImpl::`scalar deleting dtor'(unsigned int) C:\b\s\w\ir\cache\builder\src\chrome\renderer\url_loader_throttle_provider_impl.cc:163:65
This second stack is ASan's record of where the memory was released. Read from the bottom up: frame #8 and #7 show the throttle provider being destroyed, and its destructor (the function that runs when an object is cleaned up) destroys the mojo::Remote that owns the reporter. Frames #6 to #2 walk through the C++ smart-pointer classes that release the reporter proxy, and frame #0 is the allocator actually freeing the memory. A proxy here is the local stand-in object that represents the remote reporter across the Mojo channel.
The allocation stack shows where the reporter remote was bound in the first place, inside URLLoaderThrottleProviderImpl::CreateThrottles, reached from blink::BackgroundURLLoader::Context::StartOnBackground:
This third stack is ASan's record of where the memory was first handed out. Frame #7 shows a background URL loader starting a fetch, frame #6 shows the throttle provider creating throttles for that request, and frames #5 to #2 show the Mojo remote being bound and its proxy object created. So the same thread both created the reporter and later freed it.
The freed region is 16 bytes, and the report notes it is located 0 bytes inside that region:
0x118c5a3b78f0 is located 0 bytes inside of 16-byte region [0x118c5a3b78f0,0x118c5a3b7900)
In plain words: the address that was read is the very first byte of a 16-byte block that ASan knows was freed. The block is small, which fits a small proxy object.
The ASan summary points at the raw_ptr hook:
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: the crash class is heap-use-after-free, and the function that stopped the program is the raw_ptr hook that deliberately crashes when it sees a dangling pointer. A dangling pointer is a pointer whose target has been freed.
The task trace shows the Mojo watcher notification that led into the dispatch:
Task trace:
#0 0x7ffd9d6a0c9f 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 watcher is the mechanism that tells a thread "there is a message waiting on this channel, go read it". This trace shows the moment the incoming redirect message was noticed, which is the start of the chain that ended in the crash.
The renderer command line recorded in the report is:
Command line: `"C:\asan\chrome.exe" --type=renderer --user-data-dir=C:/tmp/test--extensions-on-chrome-urls --no-pre-read-main-dll --no-sandbox --file-url-path-alias="/gen=C:\asan\gen" --video-capture-use-gpu-memory-buffer --lang=en-US --device-scale-factor=1.75 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1758707867337761 --launch-time-ticks=51381261914 --metrics-shmem-handle=3212,i,1427474096340128744,5752336122806041417,2097152 --field-trial-handle=1920,i,6349326568880425583,5959785934015148551,262144 --variations-seed-version --trace-process-track-uuid=3190708990997080739 --mojo-platform-channel-handle=3208 /prefetch:1`
This is the exact set of switches Chrome used to start the renderer process that crashed. --type=renderer says this process is a renderer, not the main browser process. The rest are internal settings: where the profile lives, which language to use, how many threads to use for drawing, and handles for shared memory and the Mojo channel. It is recorded so the crash can be reproduced exactly.
The report also carries the MiraclePtr status block, which flags the crash as needing manual analysis because the free and the use both happened in the thread pool and the sequence that invoked the free is unknown:
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.
MiraclePtr is a Chrome hardening feature designed to make use-after-free bugs much harder to exploit, by making freed memory inaccessible rather than merely marked as free. The note is a warning to whoever triages the crash: because both the free and the use happened on a thread pool, it is not obvious which came first in program order. If the free is not guaranteed to happen after the use, the crash is a genuine race and the hardening does not save you. The note asks the analyst to confirm the ordering before treating the bug as harmless.
Root cause
The throttle holds a raw_ptr to safe_browsing::mojom::ExtensionWebRequestReporter. That reporter is owned through a mojo::Remote inside URLLoaderThrottleProviderImpl, and it is destroyed when the provider is destroyed. The redirect callback WillRedirectRequest dereferences the pointer without any guarantee that the provider, and therefore the reporter, is still alive. When the redirect arrives after the provider has been torn down, the dereference hits freed memory.
The report frames this as a race: the redirect path and the tear-down of the renderer context run concurrently, and the redirect wins the race against the free. The MiraclePtr note makes the same point from the allocator side: because the free happens in the thread pool and its sequencing relative to the use is not established, the crash may be a race condition mislabelled as a UAF, and unless the free is sequenced after the use (same sequence, or a task posted after the use), the bug remains exploitable with MiraclePtr. The raw_ptr hardening did not prevent the dereference; it stopped the program with an ASan abort.
Impact
The crash is in the renderer process and manifests as a tab crash. The report does not describe a path to code execution, sandbox escape or data disclosure. The severity assigned by the program is high, and the weakness class is use after free. The report describes the condition as a race against the tear-down of the associated renderer context.
Fix
The report does not describe the fix that was applied. The structural issue is that WillRedirectRequest dereferences a reporter owned by URLLoaderThrottleProviderImpl without a lifetime guarantee; a fix would need to ensure the reporter outlives any in-flight redirect callback, or that the callback checks liveness before dereferencing.
Variants to test
- Other throttles that hold raw pointers to objects owned by the throttle provider: trigger a redirect on a load that goes through the throttle while the provider is being destroyed, and look for an ASan heap-use-after-free in the redirect callback.
- Background URL loaders: the allocation stack goes through
blink::BackgroundURLLoader::Context::StartOnBackground, so loads started on the background loader are a good place to look for the same race with different throttle types. - Different redirect codes: the report uses a 307 Temporary Redirect; try other redirect statuses on the same fetch path and check whether the throttle callback is reached with the same timing.
- Repeated launches: the reproduction passes the same URL three times; vary the number of URLs and the timing of the fetch to see how reliably the race is won.
- Extension-driven fetches: since the trigger is an injected content script, test other extension APIs that issue network requests through the renderer throttle and observe whether the reporter pointer can be dereferenced after provider destruction.
A positive result in each case is an ASan report showing a read in the throttle's redirect handler on a freed ExtensionWebRequestReporter (or the equivalent object), with the free stack going through the provider destructor.
Glossary
- AddressSanitizer (ASan): a debugging tool built into a special version of a program that detects memory errors, such as reading memory that has already been freed, and stops the program with a detailed report.
- Bounty: money paid by a company to someone who reports a security bug in its product.
- Chrome VRP: the Chrome Vulnerability Reward Program, Google's scheme for rewarding reports of security bugs in Chrome.
- Content script: JavaScript that a browser extension injects into a web page to run alongside the page's own code.
- CVE: a public catalogue number assigned to a known security vulnerability so it can be tracked consistently.
- Dangling pointer: a pointer that still holds the address of an object that has already been freed.
- Dereference: to follow a pointer to the memory it points at and read or use the value stored there.
- Destructor: the function that runs automatically when an object is destroyed, used to release whatever the object owned.
- Extension: an add-on that adds features to a browser; an unpacked extension is loaded directly from a folder rather than installed from a store.
- fetch: the browser's built-in JavaScript function for making a network request from code.
- Heap: the general pool of memory a program uses for objects it creates while running.
- HTTP status code: a number a server sends back with a response to say what happened, such as 307 for a temporary redirect.
- MiraclePtr: a Chrome hardening feature that makes freed memory inaccessible, so use-after-free bugs are harder to exploit.
- Mojo: Chrome's internal messaging system, used for communication between the browser process and renderer processes.
- Pointer: a variable that holds the memory address of another value or object.
- Proxy: a local stand-in object that represents a remote object across a messaging channel.
- Race condition: a situation where two operations happen concurrently and the result depends on which one finishes first.
- raw_ptr: Chrome's wrapper around a pointer that can detect when the pointer refers to freed memory and stop the program.
- Redirect: a server response telling the browser that the requested resource is at a different address, which the browser should request instead.
- Renderer process: the process in which a browser tab's page content runs, separated from the rest of the browser for security and stability.
- Resource load: any network request a page makes, such as for the HTML document, images, scripts or data fetched by JavaScript.
- Sandbox: a security boundary that limits what a process is allowed to access on the computer.
- Stack trace: a list of the function calls that led to a particular point in a program, usually shown newest first when a crash occurs.
- Tear-down: the process of shutting something down and releasing the memory it used.
- Thread: one line of execution inside a process; a process can run several threads at once.
- Thread pool: a set of reusable worker threads a program uses to run background tasks.
- Throttle: in Chrome's network stack, a checkpoint that inspects or modifies a network request as it passes through.
- Use after free (UAF): a bug where a program frees a chunk of memory and then later reads from or writes to it as if it were still valid.
- Watcher: a mechanism that notifies a thread when a message or event is waiting on a channel.
- 307 Temporary Redirect: an HTTP status code meaning the requested resource has moved temporarily and the browser should request it again at the new address.