Use after free in PageInfo (CVE-2025-12437)
A heap-use-after-free occurs in Chrome's PageInfo code when the page info bubble is closing, leading to a write to freed memory. An attacker could potentially exploit this to cause a crash or possibly execute arbitrary code, though the report does not demonstrate exploitation.
Originally disclosed on Chrome VRP
- Fix shipped in 39 days
Steps to reproduce the problem
- i will be updating soon
Problem Description
================================================================= ==11072==ERROR: AddressSanitizer: heap-use-after-free on address 0x11f90ac4a4f0 at pc 0x7ffdc8b6a9fc bp 0x0021f1ffab70 sp 0x0021f1ffabb8 WRITE of size 4 at 0x11f90ac4a4f0 thread T0 #0 0x7ffdc8b6a9fb in PageInfoInfoBarDelegate::set_reload_type C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\page_info_infobar_delegate.h:31 #1 0x7ffdc8b6a9fb in ChromePageInfoDelegate::CreateInfoBarDelegate(enum content::ReloadType) C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\chrome_page_info_delegate.cc:226:15 #2 0x7ffde101ffb0 in PageInfo::OnUIClosing(bool ) C:\b\s\w\ir\cache\builder\src\components\page_info\page_info.cc:796:20 #3 0x7ffdc94f5841 in PageInfoBubbleView::OnWidgetDestroying(class views::Widget ) C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\views\page_info\page_info_bubble_view.cc:352:17 #4 0x7ffdcaecbb91 in std::__Cr::__invoke C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include__type_traits\invoke.h:203 #5 0x7ffdcaecbb91 in std::__Cr::invoke C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include__functional\invoke.h:29 #6 0x7ffdcaecbb91 in base::ObserverList<class views::WidgetObserver, 0, 1, class base::internal::CheckedObserverAdapter>::Notify<void (__cdecl views::WidgetObserver::)(class views::Widget ), class views::Widget >(void (__cdecl views::WidgetObserver::)(class views::Widget ), class views::Widget const &) C:\b\s\w\ir\cache\builder\src\base\observer_list.h:398:7 #7 0x7ffdcaec04ab in views::Widget::HandleWidgetDestroying(void) C:\b\s\w\ir\cache\builder\src\ui\views\widget\widget.cc:2719:14 #8 0x7ffdcadeff52 in views::DesktopWindowTreeHostWin::HandleDestroying(void) C:\b\s\w\ir\cache\builder\src\ui\views\widget\desktop_aura\desktop_window_tree_host_win.cc:1052:30 #9 0x7ffdcae80324 in views::HWNDMessageHandler::OnDestroy(void) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.cc:1891:14 #10 0x7ffdcae74182 in views::HWNDMessageHandler::ProcessWindowMessage(struct HWND_, unsigned int, unsigned __int64, __int64, __int64 &, unsigned long) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.h:468:5 #11 0x7ffdcae7151d in views::HWNDMessageHandler::OnWndProc(unsigned int, unsigned __int64, int64) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.cc:1178:7 #12 0x7ffdcf592d7c in gfx::WindowImpl::WndProc(struct HWND, unsigned int, unsigned __int64, int64) C:\b\s\w\ir\cache\builder\src\ui\gfx\win\window_impl.cc:313:18 #13 0x7ffdcf59185e in base::win::WrappedWindowProc<&gfx::WindowImpl::WndProc(struct HWND, unsigned int, unsigned __int64, int64)>(struct HWND, unsigned int, unsigned __int64, __int64) C:\b\s\w\ir\cache\builder\src\base\win\wrapped_window_proc.h:74:10 #14 0x7ffedc787cf5 (C:\WINDOWS\System32\USER32.dll+0x180017cf5) #15 0x7ffedc78757b (C:\WINDOWS\System32\USER32.dll+0x18001757b) #16 0x7ffedc7b8562 (C:\WINDOWS\System32\USER32.dll+0x180048562) #17 0x7ffeddb47253 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x180167253) #18 0x7ffedb182543 (C:\WINDOWS\System32\win32u.dll+0x180002543) #19 0x7ffdcae8c07f in base::internal::DecayedFunctorTraits<void (HWNDMessageHandler::)(),base::WeakPtrviews::HWNDMessageHandler &&>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:731 #20 0x7ffdcae8c07f in base::internal::InvokeHelper<1,base::internal::FunctorTraits<void (HWNDMessageHandler::&&)(),base::WeakPtrviews::HWNDMessageHandler &&>,void,0>::MakeItSo C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:947 #21 0x7ffdcae8c07f in base::internal::Invoker<base::internal::FunctorTraits<void (HWNDMessageHandler::&&)(),base::WeakPtrviews::HWNDMessageHandler &&>,base::internal::BindState<1,1,0,void (HWNDMessageHandler::)(),base::WeakPtrviews::HWNDMessageHandler >,void ()>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1060 #22 0x7ffdcae8c07f in base::internal::Invoker<struct base::internal::FunctorTraits<void (__cdecl views::HWNDMessageHandler::&&)(void), class base::WeakPtr<class views::HWNDMessageHandler> &&>, struct base::internal::BindState<1, 1, 0, void (__cdecl views::HWNDMessageHandler::)(void), class base::WeakPtr<class views::HWNDMessageHandler>>, (void)>::RunOnce(class base::internal::BindStateBase *) C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:973:12 #23 0x7ffdcc859cb3 in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:156 #24 0x7ffdcc859cb3 in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:207:34 #25 0x7ffdcc82ceb9 in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:104 #26 0x7ffdcc82ceb9 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(class base::LazyNow *) C:\b\s\
Summary
heap-use-after-free C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\page_info_infobar_dele
Custom Questions
Reporter credit:
Puf
Additional Data
Category: Security
Chrome Channel: Not sure
Regression: N/A \
Context
This is a Chrome Vulnerability Reward Program (VRP) report about a use-after-free in the PageInfo feature of Google Chrome. PageInfo is the component involved in the crash, with the bubble view in page_info_bubble_view.cc. and the report concerns the interaction between that bubble and the info bar delegate it creates when the bubble is closing. The report's Reporter credit field reads "Puf".
The submission consists of a crash dump from an AddressSanitizer build and a short summary, rather than a narrative of manual testing.
Setup
The report does not describe the operating system build, Chrome version, channel or flags used. The only environment detail it gives is under Additional Data, where the Chrome Channel is listed as "Not sure" and Regression as "N/A". The crash trace itself shows a Windows build: the stack passes through USER32.dll, ntdll.dll and win32u.dll, and through the Windows-specific views::DesktopWindowTreeHostWin and views::HWNDMessageHandler classes. The binary was built with AddressSanitizer, as shown by the ==11072==ERROR: AddressSanitizer line and the C:\b\s\w\ir\cache\builder\src\... source paths, which indicate a Chromium builder checkout.
The reproduction steps section is effectively empty. It reads:
1. i will be updating soon
2.
3.
So the report does not state the exact user actions that trigger the bug; the crash trace is the substantive evidence.
Finding it
The researcher captured an AddressSanitizer report of a heap-use-after-free. The header of the report identifies the fault precisely:
==11072==ERROR: AddressSanitizer: heap-use-after-free on address 0x11f90ac4a4f0 at pc 0x7ffdc8b6a9fc bp 0x0021f1ffab70 sp 0x0021f1ffabb8
WRITE of size 4 at 0x11f90ac4a4f0 thread T0
The key facts from that line are that the fault is a write, not a read, of four bytes, on the main thread (T0), to an address that ASan has already marked as freed. A write to freed memory can corrupt whatever object later reuses that allocation.
Exploitation
The report does not contain a weaponised exploit, a proof-of-concept page, or any request or response. What it contains is the call stack that produces the crash, which is the useful part for understanding the bug. The top frames are:
#0 0x7ffdc8b6a9fb in PageInfoInfoBarDelegate::set_reload_type C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\page_info_infobar_delegate.h:31
#1 0x7ffdc8b6a9fb in ChromePageInfoDelegate::CreateInfoBarDelegate(enum content::ReloadType) C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\chrome_page_info_delegate.cc:226:15
#2 0x7ffde101ffb0 in PageInfo::OnUIClosing(bool *) C:\b\s\w\ir\cache\builder\src\components\page_info\page_info.cc:796:20
#3 0x7ffdc94f5841 in PageInfoBubbleView::OnWidgetDestroying(class views::Widget *) C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\views\page_info\page_info_bubble_view.cc:352:17
Reading these frames from the bottom up gives the sequence of events:
- The PageInfo bubble's widget is being destroyed.
PageInfoBubbleView::OnWidgetDestroyingis invoked as a widget observer callback (frame #3). - That callback calls
PageInfo::OnUIClosing(frame #2), the component-level handler for the bubble UI going away. OnUIClosingcallsChromePageInfoDelegate::CreateInfoBarDelegatewith acontent::ReloadTypeargument (frame #1).CreateInfoBarDelegatecallsPageInfoInfoBarDelegate::set_reload_type(frame #0), and that write of size 4 is the operation that touches the freed allocation.
The rest of the stack shows how the widget destruction was reached, and it is a normal Windows message path rather than anything unusual:
#4 0x7ffdcaecbb91 in std::__Cr::__invoke C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__type_traits\invoke.h:203
#5 0x7ffdcaecbb91 in std::__Cr::invoke C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__functional\invoke.h:29
#6 0x7ffdcaecbb91 in base::ObserverList<class views::WidgetObserver, 0, 1, class base::internal::CheckedObserverAdapter>::Notify<void (__cdecl views::WidgetObserver::*)(class views::Widget *), class views::Widget *>(void (__cdecl views::WidgetObserver::*)(class views::Widget *), class views::Widget *const &) C:\b\s\w\ir\cache\builder\src\base\observer_list.h:398:7
#7 0x7ffdcaec04ab in views::Widget::HandleWidgetDestroying(void) C:\b\s\w\ir\cache\builder\src\ui\views\widget\widget.cc:2719:14
#8 0x7ffdcadeff52 in views::DesktopWindowTreeHostWin::HandleDestroying(void) C:\b\s\w\ir\cache\builder\src\ui\views\widget\desktop_aura\desktop_window_tree_host_win.cc:1052:30
#9 0x7ffdcae80324 in views::HWNDMessageHandler::OnDestroy(void) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.cc:1891:14
#10 0x7ffdcae74182 in views::HWNDMessageHandler::_ProcessWindowMessage(struct HWND__*, unsigned int, unsigned __int64, __int64, __int64 &, unsigned long) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.h:468:5
#11 0x7ffdcae7151d in views::HWNDMessageHandler::OnWndProc(unsigned int, unsigned __int64, __int64) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.cc:1178:7
#12 0x7ffdcf592d7c in gfx::WindowImpl::WndProc(struct HWND__*, unsigned int, unsigned __int64, __int64) C:\b\s\w\ir\cache\builder\src\ui\gfx\win\window_impl.cc:313:18
#13 0x7ffdcf59185e in base::win::WrappedWindowProc<&gfx::WindowImpl::WndProc(struct HWND__*, unsigned int, unsigned __int64, __int64)>(struct HWND__*, unsigned int, unsigned __int64, __int64) C:\b\s\w\ir\cache\builder\src\base\win\wrapped_window_proc.h:74:10
#14 0x7ffedc787cf5 (C:\WINDOWS\System32\USER32.dll+0x180017cf5)
#15 0x7ffedc78757b (C:\WINDOWS\System32\USER32.dll+0x18001757b)
#16 0x7ffedc7b8562 (C:\WINDOWS\System32\USER32.dll+0x180048562)
#17 0x7ffeddb47253 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x180167253)
#18 0x7ffedb182543 (C:\WINDOWS\System32\win32u.dll+0x180002543)
In other words, the OS delivers a window-destroy message, HWNDMessageHandler::OnDestroy runs, the desktop window tree host handles the destruction, views::Widget::HandleWidgetDestroying notifies its observer list, and the PageInfo bubble view is one of those observers. The observer notification is what re-enters PageInfo code while the widget is being torn down.
The remaining frames show the task plumbing that led into the message handling, ending with the task annotator:
The trace is truncated mid-frame at #26, so the frames below it are not available. The report's Summary section restates the finding in one line:
heap-use-after-free C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\page_info_infobar_dele
That path is itself cut off at page_info_infobar_dele, but it points at the same page_info_infobar_delegate file named in frame #0.
Root cause
The crash occurs because PageInfo::OnUIClosing creates an info bar delegate and sets its reload type while the PageInfo bubble's widget is in the middle of being destroyed. The write in PageInfoInfoBarDelegate::set_reload_type lands on memory that has already been freed, which means the object the delegate is being written into, or a member it writes through, was released earlier in the teardown sequence.
What the trace does establish is the ordering problem: teardown of the bubble UI triggers a callback that still expects to build and configure an info bar delegate. The observer notification path (base::ObserverList<views::WidgetObserver> via views::Widget::HandleWidgetDestroying) is a legitimate mechanism, and the PageInfo bubble view is registered as an observer, so nothing in the framework prevents the callback from running during destruction.
Impact
The report's summary classifies the issue as a heap-use-after-free. The crash is a write of four bytes to freed heap memory on the browser's main thread, reached through ordinary UI teardown of the PageInfo bubble. The report does not demonstrate control over the freed allocation, does not show a path from the corruption to code execution, and does not describe any attacker-controlled input that reaches the faulty write. Any impact beyond a browser crash is not established by the material here.
Fix
It records the crash and the stack that produces it, and the reproduction steps were left as a placeholder ("i will be updating soon"). What the trace implies should change is the lifetime handling around PageInfo::OnUIClosing: the info bar delegate should not be created or written to from the widget-destroying path unless its lifetime is guaranteed to outlive that callback, for example by holding it through an owning or weak reference that is checked before use. The report itself does not say which approach was taken.
Variants to test
The report gives no payloads or endpoints, so the variants below are derived from the structure of the bug rather than from anything the researcher tried. Each is a concrete thing to probe in similar UI code.
- Close the PageInfo bubble through different routes (clicking outside it, pressing Escape, navigating away, closing the tab) and watch for the same ASan write in
set_reload_type. A positive result is a heap-use-after-free report with frame #0 inPageInfoInfoBarDelegate::set_reload_typeand frame #2 inPageInfo::OnUIClosing. - Trigger a reload while the bubble is open, so that the reload type is set close to the moment the widget is destroyed. A positive result is the same write-of-size-4 report, ideally with a free stack that identifies the released allocation.
- Exercise other observers of
views::WidgetObserverthat create delegates or info bars fromOnWidgetDestroying. A positive result is any use-after-free whose top frame is a setter called from a widget-destroying callback. - Repeat the teardown under memory pressure or with rapid open and close cycles, to make reuse of the freed allocation more likely. A positive result is a crash that is no longer a clean ASan report, which would indicate the freed slot was reallocated before the write.
What happened, in plain words
Chrome has a page information bubble, which internally is called PageInfo. Internally, Chrome calls this feature PageInfo. When the bubble closes, Chrome creates an info bar delegate and sets a reload type on it.
This report is about a bug in that closing sequence. Chrome freed some memory, and then, while the bubble was still being torn down, a piece of code wrote four bytes into that same memory. Writing into memory that has already been freed is called a use-after-free. It is dangerous because the memory may since have been handed to something else, so the write can corrupt an unrelated object.
The report was filed through the Chrome Vulnerability Reward Program (VRP), the scheme Google runs to pay people who report security bugs in Chrome. The report's Reporter credit field reads "Puf". A CVE is a public catalogue number given to a known security flaw so people can refer to it unambiguously.
The submission is not a story of manual testing. It is a crash dump produced by a special instrumented build of Chrome, plus a one-line summary. The reproduction steps were left as a placeholder.
Setup
The report does not say which version of Chrome, which release channel, which operating system build or which command-line flags were used. Under Additional Data it lists the Chrome Channel as "Not sure" and Regression as "N/A".
The crash trace itself shows a Windows machine. The stack passes through USER32.dll, ntdll.dll and win32u.dll, which are core Windows system libraries, and through Chrome classes whose names end in Win, meaning they are the Windows-specific versions of Chrome's window code. The binary was built with AddressSanitizer, a tool that watches memory and stops the program the moment it is used wrongly. The ==11072==ERROR: AddressSanitizer line and the C:\b\s\w\ir\cache\builder\src\... source paths show this was a Chromium builder checkout, that is, a build machine's copy of the Chrome source code.
The reproduction steps section is effectively empty. It reads:
1. i will be updating soon
2.
3.
So the report does not state the exact user actions that trigger the bug. The crash trace is the real evidence.
Finding it
The researcher captured an AddressSanitizer report of a heap-use-after-free. The heap is the pool of memory a program uses for objects it creates while running, as opposed to memory reserved up front. The header of the report identifies the fault precisely:
==11072==ERROR: AddressSanitizer: heap-use-after-free on address 0x11f90ac4a4f0 at pc 0x7ffdc8b6a9fc bp 0x0021f1ffab70 sp 0x0021f1ffabb8
WRITE of size 4 at 0x11f90ac4a4f0 thread T0
Line by line:
==11072==ERROR: AddressSanitizer: heap-use-after-freeis the tool announcing the kind of mistake it caught: memory from the heap was used after being freed.on address 0x11f90ac4a4f0is the memory location involved. It is a number, like a house number, that identifies one spot in memory.at pc 0x7ffdc8b6a9fc bp 0x0021f1ffab70 sp 0x0021f1ffabb8records where the processor was when it happened: the program counter (the instruction being run) and the base and stack pointers (bookkeeping for the current function call).WRITE of size 4means the program was storing four bytes, not reading them.thread T0means this happened on the main thread, the one that runs the browser's user interface.
The key facts are that the fault is a write, not a read, of four bytes, on the main thread, to an address that AddressSanitizer has already marked as freed. A write to freed memory is the more dangerous kind of use-after-free, because it can corrupt whatever object later reuses that allocation.
Exploitation
The report contains no weaponised exploit, no proof-of-concept web page, and no network request or response. What it contains is the call stack that produces the crash. A call stack is the list of functions that were running at the moment of the crash, most recent first, like a stack of letters where the top one is the last written. It is the useful part for understanding the bug. The top frames are:
#0 0x7ffdc8b6a9fb in PageInfoInfoBarDelegate::set_reload_type C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\page_info_infobar_delegate.h:31
#1 0x7ffdc8b6a9fb in ChromePageInfoDelegate::CreateInfoBarDelegate(enum content::ReloadType) C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\chrome_page_info_delegate.cc:226:15
#2 0x7ffde101ffb0 in PageInfo::OnUIClosing(bool *) C:\b\s\w\ir\cache\builder\src\components\page_info\page_info.cc:796:20
#3 0x7ffdc94f5841 in PageInfoBubbleView::OnWidgetDestroying(class views::Widget *) C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\views\page_info\page_info_bubble_view.cc:352:17
Each line has the same shape: a frame number, the memory address of the code, the name of the function, and the source file and line where it lives. Frame #0 is the innermost function, the one that actually performed the bad write. Frame #3 is the function that called it, and so on down the list.
Reading these frames from the bottom up gives the sequence of events:
- The PageInfo bubble's widget is being destroyed. A widget is Chrome's name for a window or panel on screen.
PageInfoBubbleView::OnWidgetDestroyingis invoked as a widget observer callback (frame #3). An observer is an object that has signed up to be told when something happens; here, the bubble view has signed up to hear that its widget is going away. - That callback calls
PageInfo::OnUIClosing(frame #2), the component-level handler for the bubble's user interface going away. OnUIClosingcallsChromePageInfoDelegate::CreateInfoBarDelegatewith acontent::ReloadTypeargument (frame #1). A delegate is a helper object that does work on behalf of another object.ReloadTypedescribes what kind of page reload occurred.CreateInfoBarDelegatecallsPageInfoInfoBarDelegate::set_reload_type(frame #0), and that write of size 4 is the operation that touches the freed allocation.
The rest of the stack shows how the widget destruction was reached, and it is a normal Windows message path rather than anything unusual:
#4 0x7ffdcaecbb91 in std::__Cr::__invoke C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__type_traits\invoke.h:203
#5 0x7ffdcaecbb91 in std::__Cr::invoke C:\b\s\w\ir\cache\builder\src\third_party\libc++\src\include\__functional\invoke.h:29
#6 0x7ffdcaecbb91 in base::ObserverList<class views::WidgetObserver, 0, 1, class base::internal::CheckedObserverAdapter>::Notify<void (__cdecl views::WidgetObserver::*)(class views::Widget *), class views::Widget *>(void (__cdecl views::WidgetObserver::*)(class views::Widget *), class views::Widget *const &) C:\b\s\w\ir\cache\builder\src\base\observer_list.h:398:7
#7 0x7ffdcaec04ab in views::Widget::HandleWidgetDestroying(void) C:\b\s\w\ir\cache\builder\src\ui\views\widget\widget.cc:2719:14
#8 0x7ffdcadeff52 in views::DesktopWindowTreeHostWin::HandleDestroying(void) C:\b\s\w\ir\cache\builder\src\ui\views\widget\desktop_aura\desktop_window_tree_host_win.cc:1052:30
#9 0x7ffdcae80324 in views::HWNDMessageHandler::OnDestroy(void) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.cc:1891:14
#10 0x7ffdcae74182 in views::HWNDMessageHandler::_ProcessWindowMessage(struct HWND__*, unsigned int, unsigned __int64, __int64, __int64 &, unsigned long) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.h:468:5
#11 0x7ffdcae7151d in views::HWNDMessageHandler::OnWndProc(unsigned int, unsigned __int64, __int64) C:\b\s\w\ir\cache\builder\src\ui\views\win\hwnd_message_handler.cc:1178:7
#12 0x7ffdcf592d7c in gfx::WindowImpl::WndProc(struct HWND__*, unsigned int, unsigned __int64, __int64) C:\b\s\w\ir\cache\builder\src\ui\gfx\win\window_impl.cc:313:18
#13 0x7ffdcf59185e in base::win::WrappedWindowProc<&gfx::WindowImpl::WndProc(struct HWND__*, unsigned int, unsigned __int64, __int64)>(struct HWND__*, unsigned int, unsigned __int64, __int64) C:\b\s\w\ir\cache\builder\src\base\win\wrapped_window_proc.h:74:10
#14 0x7ffedc787cf5 (C:\WINDOWS\System32\USER32.dll+0x180017cf5)
#15 0x7ffedc78757b (C:\WINDOWS\System32\USER32.dll+0x18001757b)
#16 0x7ffedc7b8562 (C:\WINDOWS\System32\USER32.dll+0x180048562)
#17 0x7ffeddb47253 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x180167253)
#18 0x7ffedb182543 (C:\WINDOWS\System32\win32u.dll+0x180002543)
In plain words, reading from the bottom up: Windows delivers a message saying a window is being destroyed (frames #14 to #18 are inside Windows itself). Chrome's handler for that message, HWNDMessageHandler::OnDestroy, runs (frame #9). The desktop window tree host, the layer that connects a Chrome window to the Windows desktop, handles the destruction (frame #8). views::Widget::HandleWidgetDestroying then notifies its observer list (frame #7), which is the list of objects that asked to be told about this event. The PageInfo bubble view is one of those observers, so the notification re-enters PageInfo code while the widget is being torn down.
The remaining frames show the task plumbing that led into the message handling, ending with the task annotator:
These frames are Chrome's internal machinery for running queued work. A task is a unit of work the browser schedules to run later on a thread. A callback is a function handed over to be called at the right moment. A weak pointer is a reference that does not keep an object alive and can tell you when the object is gone. The names here are long because they are template code that wraps the real function, but the meaning is simple: a scheduled task ran, and it ended up in the window message handler.
The trace is truncated mid-frame at #26, so the frames below it are not available. The report's Summary section restates the finding in one line:
heap-use-after-free C:\b\s\w\ir\cache\builder\src\chrome\browser\ui\page_info\page_info_infobar_dele
That path is itself cut off at page_info_infobar_dele, but it points at the same page_info_infobar_delegate file named in frame #0.
Root cause
The crash occurs because PageInfo::OnUIClosing creates an info bar delegate and sets its reload type while the PageInfo bubble's widget is in the middle of being destroyed. The write in PageInfoInfoBarDelegate::set_reload_type lands on memory that has already been freed. That means the object the delegate is being written into, or a member it writes through, was released earlier in the teardown sequence. The exact ownership mistake is not stated.
What the trace does establish is the ordering problem: teardown of the bubble's user interface triggers a callback that still expects to build and configure an info bar delegate. The observer notification path (base::ObserverList<views::WidgetObserver> via views::Widget::HandleWidgetDestroying) is a legitimate mechanism, and the PageInfo bubble view is registered as an observer, so nothing in the framework prevents the callback from running during destruction. The likely explanation is that the delegate's lifetime is not tied to the bubble's lifetime, so the closing path can reach a delegate that is no longer alive. A useful everyday comparison: a shop assistant promises to fetch an item from a shelf, but the shelf is cleared before they get there, and they still reach for the spot where it used to be.
Impact
The report's summary classifies the issue as a heap-use-after-free. The crash is a write of four bytes to freed heap memory on the browser's main thread, reached through ordinary teardown of the PageInfo bubble. The report does not demonstrate control over the freed allocation, does not show a path from the corruption to code execution, and does not describe any attacker-controlled input that reaches the faulty write. Any impact beyond a browser crash is not established by the material here.
Fix
It records the crash and the stack that produces it, and the reproduction steps were left as a placeholder ("i will be updating soon"). What the trace implies should change is the lifetime handling around PageInfo::OnUIClosing: the info bar delegate should not be created or written to from the widget-destroying path unless its lifetime is guaranteed to outlive that callback, for example by holding it through an owning or weak reference that is checked before use. The report itself does not say which approach was taken.
Variants to test
The report gives no payloads or endpoints, so the variants below are derived from the structure of the bug rather than from anything the researcher tried. Each is a concrete thing to probe in similar user interface code.
- Close the PageInfo bubble through different routes (clicking outside it, pressing Escape, navigating away, closing the tab) and watch for the same AddressSanitizer write in
set_reload_type. A positive result is a heap-use-after-free report with frame #0 inPageInfoInfoBarDelegate::set_reload_typeand frame #2 inPageInfo::OnUIClosing. - Trigger a reload while the bubble is open, so that the reload type is set close to the moment the widget is destroyed. A positive result is the same write-of-size-4 report, ideally with a free stack that identifies the released allocation.
- Exercise other observers of
views::WidgetObserverthat create delegates or info bars fromOnWidgetDestroying. A positive result is any use-after-free whose top frame is a setter called from a widget-destroying callback. - Repeat the teardown under memory pressure or with rapid open and close cycles, to make reuse of the freed allocation more likely. A positive result is a crash that is no longer a clean AddressSanitizer report, which would indicate the freed slot was reallocated before the write.
Glossary
- AddressSanitizer (ASan): a tool built into a test build of a program that detects memory mistakes, such as using memory after it has been freed, and stops the program with a report.
- Advisory: a public record describing a security flaw, usually without a working exploit.
- Allocation: a block of memory handed out by the program for an object to use.
- Bounty: money paid by a company to someone who reports a security flaw.
- Callback: a function handed to another piece of code so it can be called later, when something happens.
- Call stack: the list of functions that were running at a given moment, most recent first.
- Chrome Channel: the release track of Chrome a user runs, such as stable or beta.
- Chrome VRP: Google's Vulnerability Reward Program for Chrome, which pays for security reports.
- CVE: a public catalogue number for a known security flaw.
- CVSS: a standard scoring system for the severity of security flaws.
- Delegate: a helper object that performs work on behalf of another object.
- Free / freed: returning a block of memory to the program so it can be reused.
- Heap: the pool of memory a program uses for objects created while it runs.
- Heap-use-after-free: using memory from the heap after it has been freed.
- Info bar: a small strip of information Chrome shows near the top of the page.
- Main thread: the thread that runs the browser's user interface.
- Observer: an object that has registered to be told when something happens.
- PageInfo: the Chrome feature behind the page information bubble next to the address bar.
- Program counter (pc): the address of the instruction the processor was running.
- Regression: a bug that did not exist in an earlier version and was introduced by a later change.
- Reload type: a value describing what kind of page reload occurred.
- Reproduction steps: the actions a user takes to make a bug happen.
- Severity: a rating of how serious a security flaw is.
- Stack pointer (sp) / base pointer (bp): bookkeeping values that track the current function call on the processor's stack.
- Task: a unit of work the browser schedules to run later on a thread.
- Thread: a sequence of instructions the processor runs; a program can have several at once.
- Use-after-free: using memory after it has been freed.
- Weak pointer: a reference to an object that does not keep it alive and can report when the object is gone.
- Widget: Chrome's name for a window or panel on screen.
- Write of size 4: storing four bytes of data into memory.