Skip to content
Memory corruption Advisory Advanced CVE-2026-15107

Use after free in IndexedDB (CVE-2026-15107)

A heap-use-after-free occurs in Chromium's IndexedDB cursor callback when a DevTools session is detached while a cursor result is being dispatched. An attacker could potentially trigger a renderer crash, though the text does not demonstrate code execution or a full exploit.

zh1x1an1221 Follow

Originally disclosed on Chrome VRP

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

Steps to reproduce the problem

  1. Compile asan chromium on any system:
git checkout f4425098eb1734f3419fdc5376c80a8b4e324b35
gn gen out/asan-0416 --args="is_component_build=true is_debug=false is_asan=true symbol_level=2 dcheck_always_on=false treat_warnings_as_errors=false"
  1. Ensure that poc.html and aaa.html are in the same directory, and that http-server has been started.
./out/asan-0416/Chromium.app/Contents/MacOS/Chromium --no-sandbox --user-data-dir=/tmp/userdata/t1 --enable-unsafe-webgpu --js-flags=--expose-gc --enable-logging --v=1 --use-fake-device-for-media-stream --remote-debugging-port=9239 --remote-allow-origins='*' http://127.0.0.1/poc.html

Problem Description

RCA and BISECT coming soon!

Summary

Security: heap-use-after-free in blink::(anonymous namespace)::OpenCursorCallback::Invoke

Custom Questions

Crash state:

=================================================================
==69446==ERROR: AddressSanitizer: heap-use-after-free on address 0x61100008a9c0 at pc 0x0001719fe7a8 bp 0x00016fc30ed0 sp 0x00016fc30ec8
READ of size 8 at 0x61100008a9c0 thread T0
==69446==WARNING: invalid path to external symbolizer!
==69446==WARNING: Failed to use and restart external symbolizer!
    #0 0x0001719fe7a4 in blink::(anonymous namespace)::OpenCursorCallback::Invoke(blink::ExecutionContext*, blink::Event*)+0x12cc (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1dca7a4)
    #1 0x0001512a8690 in blink::EventTarget::FireEventListeners(blink::Event&, blink::EventTargetData*, blink::BasicHeapVector<(blink::internal::HeapCollectionType)1, cppgc::internal::BasicMember<blink::RegisteredEventListener, cppgc::internal::StrongMemberTag, cppgc::internal::DijkstraWriteBarrierPolicy, cppgc::internal::DisabledCheckingPolicy, cppgc::internal::CompressedPointer>, 1u>)+0x1074 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0xebc690)
    #2 0x0001512a6a2c in blink::EventTarget::FireEventListeners(blink::Event&)+0x378 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0xebaa2c)
    #3 0x000171954058 in blink::IDBEventDispatcher::Dispatch(blink::Event&, blink::BasicHeapVector<(blink::internal::HeapCollectionType)1, cppgc::internal::BasicMember<blink::EventTarget, cppgc::internal::StrongMemberTag, cppgc::internal::DijkstraWriteBarrierPolicy, cppgc::internal::DisabledCheckingPolicy, cppgc::internal::CompressedPointer>, 0u>&)+0x4c4 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d20058)
    #4 0x0001719a9500 in blink::IDBRequest::DispatchEventInternal(blink::Event&)+0x6cc (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d75500)
    #5 0x0001719a25e4 in blink::IDBRequest::SendResult(blink::IDBAny*)+0x37c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d6e5e4)
    #6 0x0001719a21d8 in blink::IDBRequest::SendResultCursorInternal(blink::IDBCursor*, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBValue, std::__Cr::default_delete<blink::IDBValue>>)+0x164 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d6e1d8)
    #7 0x0001719a8850 in blink::IDBRequest::SendResultAdvanceCursor(std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBValue, std::__Cr::default_delete<blink::IDBValue>>)+0x14c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d74850)
    #8 0x0001719b6cb4 in blink::IDBRequestQueueItem::SendResult()+0x61c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d82cb4)
    #9 0x0001719c0af8 in blink::IDBTransaction::OnResultReady()+0x28c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d8caf8)
    #10 0x0001719aa6f4 in base::internal::Invoker<base::internal::FunctorTraits<void (blink::IDBTransaction::*&&)(), cppgc::internal::BasicPersistent<blink::IDBTransaction, cppgc::internal::StrongPersistentPolicy, cppgc::internal::IgnoreLocationPolicy, cppgc::internal::DisabledCheckingPolicy>&&>, base::internal::BindState<true, true, false, void (blink::IDBTransaction::*)(), cppgc::internal::BasicPersistent<blink::IDBTransaction, cppgc::internal::StrongPersistentPolicy, cppgc::internal::IgnoreLocationPolicy, cppgc::internal::DisabledCheckingPolicy>>, void ()>::RunOnce(base::internal::BindStateBase*)+0x11c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d766f4)
    #11 0x0001719b5b7c in blink::IDBRequestQueueItem::OnResultReady()+0x190 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d81b7c)
    #12 0x0001719c0734 in blink::IDBTransaction::EnqueueResult(std::__Cr::unique_ptr<blink::IDBRequestQueueItem, std::__Cr::default_delete<blink::IDBRequestQueueItem>>)+0x20c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d8c734)
    #13 0x0001719a4304 in blink::IDBRequest::HandleResponseAdvanceCursor(std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBValue, std::__Cr::default_delete<blink::IDBValue>>)+0x3c4 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d70304)
    #14 0x00017193fbcc in base::internal::Invoker<base::internal::FunctorTraits<void (blink::IDBRequest::*&&)(std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBValue, std::__Cr::default_delete<blink::IDBValue>>), cppgc::internal::BasicPersistent<blink::IDBRequest, cppgc::internal::WeakPersistentPolicy, cppgc::internal::IgnoreLocationPolicy, cppgc::internal::DisabledCheckingPolicy>&&, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>&&, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>&&, std::__Cr::unique_ptr<blink::IDBValue, std::__Cr::default_delete<blink::IDBValue>>&&>, base::internal::BindState<true, true, false, void (blink::IDBRequest::*)(std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBValue, std::__Cr::default_delete<blink::IDBValue>>), cppgc::internal::BasicPersistent<blink::IDBRequest, cppgc::internal::WeakPersistentPolicy, cppgc::internal::IgnoreLocationPolicy, cppgc::internal::DisabledCheckingPolicy>, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBKey, std::__Cr::default_delete<blink::IDBKey>>, std::__Cr::unique_ptr<blink::IDBValue, std::__Cr::default_delete<blink::IDBValue>>>, void ()>::RunOnce(base::internal::BindStateBase*)+0x160 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d0bbcc)
    #15 0x000102bbd694 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&)+0x360 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x201694)
    #16 0x000102c34c5c in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*)+0x8f8 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x278c5c)
    #17 0x000102c33fac in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()+0x138 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x277fac)
    #18 0x000102a5e438 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*)+0x224 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0xa2438)
    #19 0x000102c35fdc in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta)+0x338 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x279fdc)
    #20 0x000102b28ce4 in base::RunLoop::Run(base::Location const&)+0x430 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x16cce4)
    #21 0x00013d4bd0cc in content::RendererMain(content::MainFunctionParams)+0x8ac (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3c250cc)
    #22 0x00013d7009f8 in content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&, content::MainFunctionParams, content::ContentMainDelegate*)+0x42c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e689f8)
    #23 0x00013d702b64 in content::ContentMainRunnerImpl::Run()+0x53c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e6ab64)
    #24 0x00013d6fe4c0 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*)+0x854 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e664c0)
    #25 0x00013d6fe9b0 in content::ContentMain(content::ContentMainParams)+0x190 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e669b0)
    #26 0x000118f3b898 in ChromeMain+0x494 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libchrome_dll.dylib:arm64+0xb898)
    #27 0x0001001ccb90 in main+0x250 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/Chromium.app/Contents/Frameworks/Chromium Framework.framework/Versions/149.0.7796.0/Helpers/Chromium Helper (Renderer).app/Contents/MacOS/Chromium Helper (Renderer):arm64+0x100000b90)
    #28 0x000189903da0 in start+0x1b4c (/usr/lib/dyld:arm64e+0x1fda0)

0x61100008a9c0 is located 0 bytes inside of 224-byte region [0x61100008a9c0,0x61100008aaa0)
freed by thread T0 here:
    #0 0x000100dd59f4 in __sanitizer_finish_switch_fiber+0xa0c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libclang_rt.asan_osx_dynamic.dylib:arm64+0x659f4)
    #1 0x00015242e5f0 in blink::DevToolsSession::Detach()+0x6b8 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x20425f0)
    #2 0x00015243a4a4 in base::internal::Invoker<base::internal::FunctorTraits<void (blink::DevToolsSession::*&&)(), cppgc::internal::BasicPersistent<blink::DevToolsSession, cppgc::internal::WeakPersistentPolicy, cppgc::internal::IgnoreLocationPolicy, cppgc::internal::DisabledCheckingPolicy>&&>, base::internal::BindState<true, true, false, void (blink::DevToolsSession::*)(), cppgc::internal::BasicPersistent<blink::DevToolsSession, cppgc::internal::WeakPersistentPolicy, cppgc::internal::IgnoreLocationPolicy, cppgc::internal::DisabledCheckingPolicy>>, void ()>::RunOnce(base::internal::BindStateBase*)+0x120 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x204e4a4)
    #3 0x0001008bb5f8 in mojo::InterfaceEndpointClient::NotifyError(std::__Cr::optional<mojo::DisconnectReason> const&)+0x3bc (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libmojo_public_cpp_bindings.dylib:arm64+0x2b5f8)
    #4 0x0001073fcff8 in IPC::ChannelAssociatedGroupController::NotifyEndpointOfError(IPC::ChannelAssociatedGroupController::Endpoint*, bool)+0x3dc (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libipc.dylib:arm64+0x20ff8)
    #5 0x0001073fdd34 in IPC::ChannelAssociatedGroupController::NotifyEndpointOfErrorOnEndpointThread(unsigned int, base::raw_ptr<IPC::ChannelAssociatedGroupController::Endpoint, (partition_alloc::internal::RawPtrTraits)1>)+0x1d4 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libipc.dylib:arm64+0x21d34)
    #6 0x0001073fdfe0 in void base::internal::Invoker<base::internal::FunctorTraits<void (IPC::ChannelAssociatedGroupController::*&&)(unsigned int, base::raw_ptr<IPC::ChannelAssociatedGroupController::Endpoint, (partition_alloc::internal::RawPtrTraits)1>), IPC::ChannelAssociatedGroupController*&&, unsigned int&&, base::raw_ptr<IPC::ChannelAssociatedGroupController::Endpoint, (partition_alloc::internal::RawPtrTraits)1>>, base::internal::BindState<true, true, false, void (IPC::ChannelAssociatedGroupController::*)(unsigned int, base::raw_ptr<IPC::ChannelAssociatedGroupController::Endpoint, (partition_alloc::internal::RawPtrTraits)1>), scoped_refptr<IPC::ChannelAssociatedGroupController>, unsigned int, base::internal::UnretainedWrapper<IPC::ChannelAssociatedGroupController::Endpoint, base::unretained_traits::MayDangle, (partition_alloc::internal::RawPtrTraits)0>>, void ()>::RunImpl<void (IPC::ChannelAssociatedGroupController::*)(unsigned int, base::raw_ptr<IPC::ChannelAssociatedGroupController::Endpoint, (partition_alloc::internal::RawPtrTraits)1>), std::__Cr::tuple<scoped_refptr<IPC::ChannelAssociatedGroupController>, unsigned int, base::internal::UnretainedWrapper<IPC::ChannelAssociatedGroupController::Endpoint, base::unretained_traits::MayDangle, (partition_alloc::internal::RawPtrTraits)0>>, 0ul, 1ul, 2ul>(void (IPC::ChannelAssociatedGroupController::*&&)(unsigned int, base::raw_ptr<IPC::ChannelAssociatedGroupController::Endpoint, (partition_alloc::internal::RawPtrTraits)1>), std::__Cr::tuple<scoped_refptr<IPC::ChannelAssociatedGroupController>, unsigned int, base::internal::UnretainedWrapper<IPC::ChannelAssociatedGroupController::Endpoint, base::unretained_traits::MayDangle, (partition_alloc::internal::RawPtrTraits)0>>&&, std::__Cr::integer_sequence<unsigned long, 0ul, 1ul, 2ul>)+0x1e4 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libipc.dylib:arm64+0x21fe0)
    #7 0x000102bbd694 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&)+0x360 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x201694)
    #8 0x000102c34c5c in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*)+0x8f8 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x278c5c)
    #9 0x000102c33fac in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()+0x138 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x277fac)
    #10 0x000102a5e438 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*)+0x224 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0xa2438)
    #11 0x000102c35fdc in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta)+0x338 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x279fdc)
    #12 0x000102b28ce4 in base::RunLoop::Run(base::Location const&)+0x430 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x16cce4)
    #13 0x00013d4bd0cc in content::RendererMain(content::MainFunctionParams)+0x8ac (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3c250cc)
    #14 0x00013d7009f8 in content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&, content::MainFunctionParams, content::ContentMainDelegate*)+0x42c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e689f8)
    #15 0x00013d702b64 in content::ContentMainRunnerImpl::Run()+0x53c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e6ab64)
    #16 0x00013d6fe4c0 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*)+0x854 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e664c0)
    #17 0x00013d6fe9b0 in content::ContentMain(content::ContentMainParams)+0x190 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e669b0)
    #18 0x000118f3b898 in ChromeMain+0x494 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libchrome_dll.dylib:arm64+0xb898)
    #19 0x0001001ccb90 in main+0x250 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/Chromium.app/Contents/Frameworks/Chromium Framework.framework/Versions/149.0.7796.0/Helpers/Chromium Helper (Renderer).app/Contents/MacOS/Chromium Helper (Renderer):arm64+0x100000b90)
    #20 0x000189903da0 in start+0x1b4c (/usr/lib/dyld:arm64e+0x1fda0)

previously allocated by thread T0 here:
    #0 0x000100dd55fc in __sanitizer_finish_switch_fiber+0x614 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libclang_rt.asan_osx_dynamic.dylib:arm64+0x655fc)
    #1 0x000161258128 in v8_inspector::V8InspectorSessionImpl::create(v8_inspector::V8InspectorImpl*, int, int, v8_inspector::V8Inspector::ManagedChannel*, v8_inspector::StringView, v8_inspector::V8Inspector::ClientTrustLevel, std::__Cr::shared_ptr<v8_inspector::V8DebuggerBarrier>)+0xd8 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libv8.dylib:arm64+0x2828128)
    #2 0x000161249e28 in v8_inspector::V8InspectorImpl::connectImpl(int, v8_inspector::V8Inspector::ManagedChannel*, v8_inspector::StringView, v8_inspector::V8Inspector::ClientTrustLevel, v8_inspector::V8Inspector::SessionPauseState)+0x368 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libv8.dylib:arm64+0x2819e28)
    #3 0x00016124a314 in v8_inspector::V8InspectorImpl::connectShared(int, v8_inspector::V8Inspector::ManagedChannel*, v8_inspector::StringView, v8_inspector::V8Inspector::ClientTrustLevel, v8_inspector::V8Inspector::SessionPauseState)+0x60 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libv8.dylib:arm64+0x281a314)
    #4 0x00015242f4c8 in blink::DevToolsSession::ConnectToV8(v8_inspector::V8Inspector*, int)+0x168 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x20434c8)
    #5 0x00015529bdf4 in blink::WebDevToolsAgentImpl::AttachSession(blink::DevToolsSession*, bool)+0x328 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x4eafdf4)
    #6 0x00015242d5ec in blink::DevToolsSession::DevToolsSession(blink::DevToolsAgent*, mojo::PendingAssociatedRemote<blink::mojom::blink::DevToolsSessionHost>, mojo::PendingAssociatedReceiver<blink::mojom::blink::DevToolsSession>, mojo::PendingReceiver<blink::mojom::blink::DevToolsSession>, mojo::StructPtr<blink::mojom::blink::DevToolsSessionState>, blink::String const&, bool, bool, blink::String const&, bool, scoped_refptr<base::SequencedTaskRunner>)+0xdd0 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x20415ec)
    #7 0x000152429bb8 in blink::DevToolsSession* cppgc::MakeGarbageCollectedTrait<blink::DevToolsSession>::Call<blink::DevToolsAgent*, mojo::PendingAssociatedRemote<blink::mojom::blink::DevToolsSessionHost>, mojo::PendingAssociatedReceiver<blink::mojom::blink::DevToolsSession>, mojo::PendingReceiver<blink::mojom::blink::DevToolsSession>, mojo::StructPtr<blink::mojom::blink::DevToolsSessionState>, blink::String const&, bool&, bool&, blink::String const&, bool&, scoped_refptr<base::SingleThreadTaskRunner>>(cppgc::AllocationHandle&, blink::DevToolsAgent*&&, mojo::PendingAssociatedRemote<blink::mojom::blink::DevToolsSessionHost>&&, mojo::PendingAssociatedReceiver<blink::mojom::blink::DevToolsSession>&&, mojo::PendingReceiver<blink::mojom::blink::DevToolsSession>&&, mojo::StructPtr<blink::mojom::blink::DevToolsSessionState>&&, blink::String const&, bool&, bool&, blink::String const&, bool&, scoped_refptr<base::SingleThreadTaskRunner>&&)+0x230 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x203dbb8)
    #8 0x00015241d42c in blink::DevToolsAgent::AttachDevToolsSessionImpl(mojo::PendingAssociatedRemote<blink::mojom::blink::DevToolsSessionHost>, mojo::PendingAssociatedReceiver<blink::mojom::blink::DevToolsSession>, mojo::PendingReceiver<blink::mojom::blink::DevToolsSession>, mojo::StructPtr<blink::mojom::blink::DevToolsSessionState>, blink::String const&, bool, bool, blink::String const&, bool)+0x2e4 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x203142c)
    #9 0x00015241e028 in blink::DevToolsAgent::AttachDevToolsSession(mojo::PendingAssociatedRemote<blink::mojom::blink::DevToolsSessionHost>, mojo::PendingAssociatedReceiver<blink::mojom::blink::DevToolsSession>, mojo::PendingReceiver<blink::mojom::blink::DevToolsSession>, mojo::StructPtr<blink::mojom::blink::DevToolsSessionState>, blink::String const&, bool, bool, blink::String const&, bool)+0x264 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_core.dylib:arm64+0x2032028)
    #10 0x00015b5cc3b4 in blink::mojom::blink::DevToolsAgentStubDispatch::Accept(blink::mojom::blink::DevToolsAgent*, mojo::Message*)+0x584 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_platform.dylib:arm64+0x18703b4)
    #11 0x0001008b5d80 in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*)+0x8fc (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libmojo_public_cpp_bindings.dylib:arm64+0x25d80)
    #12 0x0001008cbfb8 in mojo::MessageDispatcher::Accept(mojo::Message*)+0x2f0 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libmojo_public_cpp_bindings.dylib:arm64+0x3bfb8)
    #13 0x0001008baf64 in mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*)+0x148 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libmojo_public_cpp_bindings.dylib:arm64+0x2af64)
    #14 0x000107415ff8 in IPC::ChannelAssociatedGroupController::AcceptOnEndpointThread(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification)+0x3e8 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libipc.dylib:arm64+0x39ff8)
    #15 0x000107418070 in base::internal::Invoker<base::internal::FunctorTraits<void (IPC::ChannelAssociatedGroupController::*&&)(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification), IPC::ChannelAssociatedGroupController*&&, mojo::Message&&, IPC::(anonymous namespace)::ScopedUrgentMessageNotification&&>, base::internal::BindState<true, true, false, void (IPC::ChannelAssociatedGroupController::*)(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification), scoped_refptr<IPC::ChannelAssociatedGroupController>, mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification>, void ()>::RunOnce(base::internal::BindStateBase*)+0x1b8 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libipc.dylib:arm64+0x3c070)
    #16 0x000102bbd694 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&)+0x360 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x201694)
    #17 0x000102c34c5c in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*)+0x8f8 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x278c5c)
    #18 0x000102c33fac in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()+0x138 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x277fac)
    #19 0x000102a5e438 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*)+0x224 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0xa2438)
    #20 0x000102c35fdc in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta)+0x338 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x279fdc)
    #21 0x000102b28ce4 in base::RunLoop::Run(base::Location const&)+0x430 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libbase.dylib:arm64+0x16cce4)
    #22 0x00013d4bd0cc in content::RendererMain(content::MainFunctionParams)+0x8ac (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3c250cc)
    #23 0x00013d7009f8 in content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&, content::MainFunctionParams, content::ContentMainDelegate*)+0x42c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e689f8)
    #24 0x00013d702b64 in content::ContentMainRunnerImpl::Run()+0x53c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e6ab64)
    #25 0x00013d6fe4c0 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*)+0x854 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e664c0)
    #26 0x00013d6fe9b0 in content::ContentMain(content::ContentMainParams)+0x190 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libcontent.dylib:arm64+0x3e669b0)
    #27 0x000118f3b898 in ChromeMain+0x494 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libchrome_dll.dylib:arm64+0xb898)
    #28 0x0001001ccb90 in main+0x250 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/Chromium.app/Contents/Frameworks/Chromium Framework.framework/Versions/149.0.7796.0/Helpers/Chromium Helper (Renderer).app/Contents/MacOS/Chromium Helper (Renderer):arm64+0x100000b90)
    #29 0x000189903da0 in start+0x1b4c (/usr/lib/dyld:arm64e+0x1fda0)

SUMMARY: AddressSanitizer: heap-use-after-free (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1dca7a4) in blink::(anonymous namespace)::OpenCursorCallback::Invoke(blink::ExecutionContext*, blink::Event*)+0x12cc
Shadow bytes around the buggy address:
  0x61100008a700: fa fa fa fa fa fa f7 fa fd fd fd fd fd fd fd fd
  0x61100008a780: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x61100008a800: fd fd fd fd fd fd fd fd fa fa fa fa fa fa f7 fa
  0x61100008a880: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x61100008a900: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
=>0x61100008a980: fa fa fa fa fa fa f7 fa[fd]fd fd fd fd fd fd fd
  0x61100008aa00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x61100008aa80: fd fd fd fd fa fa fa fa fa fa fa fa fa fa f7 fa
  0x61100008ab00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x61100008ab80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x61100008ac00: fa fa fa fa fa fa f7 fa 00 00 00 00 00 00 00 00
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

==69446==ADDITIONAL INFO

==69446==Note: Please include this section with the ASan report.
Task trace:
    #0 0x00017193a974 in blink::IDBCursor::CachedContinue(blink::IDBRequest*)+0x310 (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libblink_modules.dylib:arm64+0x1d06974)
    #1 0x0001009cb4a8 in mojo::SimpleWatcher::Context::Notify(unsigned int, MojoHandleSignalsState, unsigned int)+0x22c (/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/libmojo_public_system_cpp.dylib:arm64+0x1b4a8)

Command line: `/Users/zh1x1an1221/xcode-chromium/src/out/asan-0416/Chromium.app/Contents/Frameworks/Chromium Framework.framework/Versions/149.0.7796.0/Helpers/Chromium Helper (Renderer).app/Contents/MacOS/Chromium Helper (Renderer) --type=renderer --user-data-dir=/tmp/userdata/t1aa32aaaaaa --enable-isolated-web-apps-in-renderer --no-sandbox --enable-experimental-web-platform-features --enable-unsafe-webgpu --remote-debugging-port=9239 --js-flags=--stress-incremental-marking --expose-gc --enable-gpu-benchmarking --enable-blink-features=MojoJS,MojoJSTest --lang=zh-CN --touch-selection-strategy=direction --num-raster-threads=4 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --renderer-client-id=13 --time-ticks-at-unix-epoch=-1775847678698958 --launch-time-ticks=585242732315 --shared-files --metrics-shmem-handle=1752395122,r,13630321469341624404,17251760233756597070,2097152 --field-trial-handle=1718379636,r,9171407457661891635,2055795407484892959,262144 --variations-seed-version --pseudonymization-salt-handle=1935764596,r,3348106321432600058,15529697183007150337,4 --trace-process-track-uuid=3190708998493415531`

MiraclePtr Status: MANUAL ANALYSIS REQUIRED
A pointer to the same region was extracted from a raw_ptr<T> object prior to this crash.
To determine the protection status, enable extraction warnings and check whether the raw_ptr<T> object can be destroyed or overwritten between the extraction and use.
Refer to https://chromium.googlesource.com/chromium/src/+/main/base/memory/raw_ptr.md for details.

==69446==END OF ADDITIONAL INFO

==69446==ABORTING

Additional Data

Category: Security
Chrome Channel: Not sure
Regression: N/A \

The original report as published on the Chromium issue tracker, by zh1x1an1221 of Ant Group Tianqiong Security Lab. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What the report shows

This is a Chrome VRP advisory for a heap-use-after-free in IndexedDB, tracked as CVE-2026-15107 and rated medium severity. The researcher is credited as zh1x1an1221 of Ant Group Tianqiong Security Lab, the bounty was 2,000 USD, and the report was disclosed on 8 July 2026. The affected component is Blink's IndexedDB implementation, and the crash summary names the faulting frame as blink::(anonymous namespace)::OpenCursorCallback::Invoke.

The report is deliberately short. The problem description says only that root cause analysis and bisection are "coming soon", so the text never explains the underlying logic error. What it does give is a complete, reproducible recipe and a full AddressSanitizer trace.

Reproduction steps

The researcher built an ASan Chromium at a specific revision and generated the build with component builds enabled, debug off, ASan on, full symbols, DCHECKs off and warnings not treated as errors:

Bash
git checkout [redacted]
gn gen out/asan-0416 --args="is_component_build=true is_debug=false is_asan=true symbol_level=2 dcheck_always_on=false treat_warnings_as_errors=false"

The proof of concept consists of two files, poc.html and aaa.html, placed in the same directory and served by http-server. The browser was then launched against the first page with a throwaway profile, the sandbox disabled, GC exposed to JavaScript, logging on, a fake media device and a remote debugging port:

Bash
./out/asan-0416/Chromium.app/Contents/MacOS/Chromium --no-sandbox --user-data-dir=/tmp/userdata/t1 --enable-unsafe-webgpu --js-flags=--expose-gc --enable-logging --v=1 --use-fake-device-for-media-stream --remote-debugging-port=9239 --remote-allow-origins='*' http://[redacted]/poc.html

The contents of the two HTML files are not included in the report, so the exact JavaScript that triggers the bug is not public here.

The crash

ASan reports a heap-use-after-free: a READ of size 8 inside a 224-byte region that had already been freed. The allocation and free stacks are the interesting part.

The region was allocated when a DevTools session was attached: blink::DevToolsSession::ConnectToV8 calls into v8_inspector::V8InspectorImpl::connectShared and v8_inspector::V8InspectorSessionImpl::create. It was freed when that session detached: blink::DevToolsSession::Detach, reached through a Mojo disconnect notification (mojo::InterfaceEndpointClient::NotifyError and the IPC channel controller's error path).

The use happens later, on the same thread, while an IndexedDB cursor result is being delivered. The stack runs from blink::IDBTransaction::OnResultReady through IDBRequestQueueItem::SendResult, IDBRequest::SendResultAdvanceCursor, IDBRequest::SendResultCursorInternal, IDBRequest::DispatchEventInternal and IDBEventDispatcher::Dispatch into blink::EventTarget::FireEventListeners, which finally calls OpenCursorCallback::Invoke and reads the freed memory. The task trace adds blink::IDBCursor::CachedContinue as the origin of the work.

The renderer command line recorded in the report shows the process was started with --js-flags=--stress-incremental-marking and --expose-gc, which is consistent with a garbage-collection timing component, though the report does not state that as the cause. The ASan output also carries a MiraclePtr note: a pointer to the same region was extracted from a raw_ptr<T> before the crash, and manual analysis is required to decide whether the object could have been destroyed or overwritten between extraction and use.

Root cause

The report does not give a root cause; it explicitly defers it. What the trace implies is a lifetime problem around the callback object invoked when an IndexedDB cursor request completes. The freed region is tied to a DevTools session that was torn down, and the use occurs when the cursor event is dispatched afterwards. Likely the cursor callback, or state it reaches through, outlives the session or execution context it was created under, so a pending IndexedDB result is delivered into memory that has already been released. The report does not confirm this.

Impact

The issue is a use-after-free in the renderer, rated medium severity. A use-after-free in a browser renderer is memory corruption: in principle it can lead to further exploitation inside the sandboxed renderer process.

How this kind of bug works

A use-after-free happens when an object is freed while a reference to it is still reachable, and that reference is later dereferenced. In garbage-collected browser engines the object graph is managed by a collector, but many objects also hold raw or weakly traced pointers to each other, and callbacks scheduled across task boundaries (promises, event dispatch, IPC replies, timers) can run after the owner has gone. When the owner is destroyed by an unrelated event, such as a session detaching or a frame being torn down, the pending callback still fires and touches freed memory.

The classic defences are ownership that keeps the object alive for as long as a callback can run (strong persistent handles, self-keeping references), explicit cancellation of pending callbacks on teardown, and pointer hardening such as MiraclePtr, which quarantines freed allocations so a dangling dereference faults instead of silently reading reused memory. ASan builds make the same class of bug visible during development.

How to test for it

  1. Pick a feature with asynchronous, callback-driven delivery: IndexedDB cursors and requests, File System Access, WebUSB, WebGPU, media streams, workers, and anything that talks to a browser-side service over Mojo.
  2. Build or obtain an ASan instrumented browser at a known revision, and keep the exact build arguments so the finding is reproducible.
  3. Write a page that starts the asynchronous operation and then, before the result arrives, tears down the context that owns it: close the database, navigate or remove the frame, detach the debugging session, terminate the worker, or force garbage collection at the right moment.
  4. Vary the ordering and timing: interleave the teardown with the completion, use --expose-gc and stress flags to widen the window, and repeat many times because the race may be narrow.
  5. A positive result is an ASan report naming a read or write in a freed region, with an allocation stack and a free stack that belong to different lifetimes. Save the full trace, the revision and the exact command line.
  6. Common false positives: crashes caused only by DCHECK or debug-only assertions, leaks that ASan reports as leaks rather than use-after-free, and crashes that need flags no real user or attacker controls. Check whether the trigger works without unusual flags before reporting.

How it is fixed

Fixes for this class usually do one of three things: keep the callback's owner alive until the callback has run, cancel or invalidate pending callbacks when the owning context is destroyed, or re-check that the context is still valid before dispatching the event. Where a raw pointer is involved, switching to a checked or garbage-collected reference removes the dangling access. Regression tests typically replay the teardown-during-completion sequence under ASan.

Hunting notes

These bugs cluster where asynchronous results cross a lifetime boundary: database and cursor callbacks, stream and device APIs, worker and frame teardown, and DevTools or extension sessions attaching and detaching. Recon signals include features that hold callbacks across tasks, code paths that mix garbage-collected and raw pointers, and any API where a result can arrive after the page or session that requested it has gone. To make a report land, show a minimal, deterministic reproduction, include the full sanitizer trace with allocation and free stacks, state the exact revision and build flags, and explain the lifetime mismatch in plain terms. A clear trace plus a reliable trigger is what turns a crash into an accepted security report.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 9 min read.

What happened, in plain words

This is a public bug report from Google Chrome's bug bounty programme, the Chrome Vulnerability Reward Program. A security researcher, credited as zh1x1an1221 of Ant Group Tianqiong Security Lab, found a memory safety bug in Chrome and was paid 2,000 USD for it. The bug was rated medium severity, given the identifier CVE-2026-15107, and disclosed on 8 July 2026.

The affected part of Chrome is IndexedDB, a feature that lets websites store structured data inside the browser, a bit like a small database built into the page. The bug class is a use after free: a program frees a chunk of memory, then later reads from it as if it were still valid. Think of it like deleting a file from your desk, then reading a note that still points at where the file used to be. The paper is gone; whatever is on the desk now is not what you expect.

The report is short. The author says the root cause analysis and the bisection (finding the exact code change that introduced the bug) are "coming soon", so the text never explains the underlying logic error. What it does give is a complete recipe to reproduce the crash and the full output of the memory checker that caught it.

Reproducing the crash

The researcher built a special version of Chrome with AddressSanitizer (ASan), a tool that watches memory accesses and shouts when a program touches memory it should not. The build was pinned to a specific code revision:

Bash
git checkout [redacted]
gn gen out/asan-0416 --args="is_component_build=true is_debug=false is_asan=true symbol_level=2 dcheck_always_on=false treat_warnings_as_errors=false"

The first line checks out that exact revision of the Chrome source. The second line generates the build configuration: component builds on, debug mode off, ASan on, full symbols (so stack traces show function names), debug assertions off, and warnings not treated as errors. Pinning the revision matters because a bug can disappear or change after a code change; anyone repeating the test needs the same starting point.

The proof of concept is two HTML files, poc.html and aaa.html, placed in the same directory and served by http-server, a small local web server. The browser was then launched against the first page:

Bash
./out/asan-0416/Chromium.app/Contents/MacOS/Chromium --no-sandbox --user-data-dir=/tmp/userdata/t1 --enable-unsafe-webgpu --js-flags=--expose-gc --enable-logging --v=1 --use-fake-device-for-media-stream --remote-debugging-port=9239 --remote-allow-origins='*' http://[redacted]/poc.html

Line by line: --no-sandbox disables Chrome's process sandbox (a security boundary that normally limits what a page can do); --user-data-dir points at a throwaway profile so the test does not touch real browsing data; --enable-unsafe-webgpu turns on an experimental graphics feature; --js-flags=--expose-gc lets page JavaScript ask the garbage collector to run on demand; --enable-logging --v=1 turns on verbose logging; --use-fake-device-for-media-stream provides a fake camera or microphone; --remote-debugging-port=9239 opens a debugging port so a tool can drive the browser; --remote-allow-origins='*' allows any origin to connect to that port; and the final URL is the page under test.

The contents of poc.html and aaa.html are not included in the report, so the exact JavaScript that triggers the bug is not public here.

What the crash shows

ASan reports a heap-use-after-free: a read of 8 bytes inside a 224-byte region that had already been freed. The interesting part is the two stacks, the allocation stack (where the memory was first handed out) and the free stack (where it was released).

The memory was allocated when a DevTools session was attached. DevTools is the developer panel built into Chrome (the one you open with F12); a session is one connection between that panel and a page. The allocation goes through blink::DevToolsSession::ConnectToV8 into the V8 inspector code. The memory was freed when that same session detached, reached through a Mojo disconnect notification. Mojo is Chrome's internal messaging system that lets different parts of the browser talk to each other; when one end of a connection goes away, the other end is told.

The use happens later, on the same thread, while an IndexedDB cursor result is being delivered. A cursor is a way to walk through stored records one at a time. The stack runs from blink::IDBTransaction::OnResultReady through several request and dispatch functions into blink::EventTarget::FireEventListeners, which finally calls OpenCursorCallback::Invoke and reads the freed memory. The task trace adds blink::IDBCursor::CachedContinue as the origin of the work.

The renderer command line recorded in the report shows the process was started with --js-flags=--stress-incremental-marking and --expose-gc, which is consistent with a garbage-collection timing component, though the report does not state that as the cause. The ASan output also carries a MiraclePtr note: a pointer to the same region was extracted from a raw_ptr<T> before the crash, and manual analysis is required to decide whether the object could have been destroyed or overwritten between extraction and use. MiraclePtr is a Chrome hardening feature that quarantines freed memory so a dangling pointer faults instead of silently reading reused data.

Root cause

The report does not give a root cause; it explicitly defers it. What the trace implies is a lifetime problem around the callback object invoked when an IndexedDB cursor request completes. The freed region is tied to a DevTools session that was torn down, and the use occurs when the cursor event is dispatched afterwards. Likely the cursor callback, or state it reaches through, outlives the session or execution context it was created under, so a pending IndexedDB result is delivered into memory that has already been released. The report does not confirm this.

Impact

The issue is a use-after-free in the renderer, rated medium severity. A use-after-free in a browser renderer is memory corruption: in principle it can lead to further exploitation inside the sandboxed renderer process.

In general, how this kind of bug works

A use-after-free happens when an object is freed while a reference to it is still reachable, and that reference is later dereferenced. In garbage-collected browser engines the object graph is managed by a collector, but many objects also hold raw or weakly traced pointers to each other, and callbacks scheduled across task boundaries (promises, event dispatch, IPC replies, timers) can run after the owner has gone. When the owner is destroyed by an unrelated event, such as a session detaching or a frame being torn down, the pending callback still fires and touches freed memory.

The classic defences are ownership that keeps the object alive for as long as a callback can run (strong persistent handles, self-keeping references), explicit cancellation of pending callbacks on teardown, and pointer hardening such as MiraclePtr, which quarantines freed allocations so a dangling dereference faults instead of silently reading reused memory. ASan builds make the same class of bug visible during development.

How to test for it

  1. Pick a feature with asynchronous, callback-driven delivery: IndexedDB cursors and requests, File System Access, WebUSB, WebGPU, media streams, workers, and anything that talks to a browser-side service over Mojo.
  2. Build or obtain an ASan instrumented browser at a known revision, and keep the exact build arguments so the finding is reproducible.
  3. Write a page that starts the asynchronous operation and then, before the result arrives, tears down the context that owns it: close the database, navigate or remove the frame, detach the debugging session, terminate the worker, or force garbage collection at the right moment.
  4. Vary the ordering and timing: interleave the teardown with the completion, use --expose-gc and stress flags to widen the window, and repeat many times because the race may be narrow.
  5. A positive result is an ASan report naming a read or write in a freed region, with an allocation stack and a free stack that belong to different lifetimes. Save the full trace, the revision and the exact command line.
  6. Common false positives: crashes caused only by DCHECK or debug-only assertions, leaks that ASan reports as leaks rather than use-after-free, and crashes that need flags no real user or attacker controls. Check whether the trigger works without unusual flags before reporting.

How it is fixed

Fixes for this class usually do one of three things: keep the callback's owner alive until the callback has run, cancel or invalidate pending callbacks when the owning context is destroyed, or re-check that the context is still valid before dispatching the event. Where a raw pointer is involved, switching to a checked or garbage-collected reference removes the dangling access. Regression tests typically replay the teardown-during-completion sequence under ASan.

Hunting notes

These bugs cluster where asynchronous results cross a lifetime boundary: database and cursor callbacks, stream and device APIs, worker and frame teardown, and DevTools or extension sessions attaching and detaching. Recon signals include features that hold callbacks across tasks, code paths that mix garbage-collected and raw pointers, and any API where a result can arrive after the page or session that requested it has gone. To make a report land, show a minimal, deterministic reproduction, include the full sanitizer trace with allocation and free stacks, state the exact revision and build flags, and explain the lifetime mismatch in plain terms. A clear trace plus a reliable trigger is what turns a crash into an accepted security report.

Glossary

  • Bug bounty programme: a scheme where a company pays researchers for reporting security bugs responsibly.
  • CVE: a public identifier for a known security vulnerability.
  • IndexedDB: a browser feature that lets websites store structured data locally, like a small database inside the page.
  • Use after free: a bug where a program reads or writes memory it has already released.
  • AddressSanitizer (ASan): a tool built into a program that detects invalid memory accesses and prints a detailed report.
  • Heap: the area of memory a program uses for objects created while it runs.
  • Renderer: the browser process that turns a web page into what you see and runs its JavaScript, isolated from the rest of the browser.
  • Sandbox: a security boundary that limits what a process can do, so a bug inside it is harder to turn into a full compromise.
  • DevTools session: one connection between Chrome's built-in developer panel and a page.
  • Mojo: Chrome's internal messaging system that lets different parts of the browser communicate.
  • Cursor: a way to walk through stored records one at a time.
  • Callback: a function that is scheduled to run later, when some event or result arrives.
  • Garbage collector: the part of a runtime that automatically frees memory no longer in use.
  • MiraclePtr: a Chrome hardening feature that quarantines freed memory so a dangling pointer faults instead of silently reading reused data.
  • Raw pointer: a plain memory address with no automatic safety checks.
  • Root cause analysis: the work of finding the underlying logic error behind a bug.
  • Bisection: finding the exact code change that introduced a bug by testing revisions in between.
  • DCHECK: a debug-only assertion that checks an internal assumption and is compiled out in release builds.
  • False positive: a reported problem that is not actually a real, exploitable issue.
  • Regression test: an automated test that replays a fixed bug to make sure it does not come back.

More by zh1x1an1221

View all

5 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.