Skip to content
Memory corruption Advisory Advanced CVE-2024-5835

Heap buffer overflow in Tab Groups (CVE-2024-5835)

A saved tab group's UI entry in the STGEverythingMenu was not removed when the group was closed, so clicking the stale entry accessed a deleted group and caused a container-overflow. An attacker could potentially trigger a browser crash, but the report only demonstrates a crash under AddressSanitizer.

Weipeng Jiang Follow

Originally disclosed on Chrome VRP

Bounty$3,000 High View original
  • Fix shipped in 21 days

Steps to reproduce the problem

  1. download asan-linux-release-1303566.zip and unzip
  2. start a http server at the folder of poc.html
  3. run ./asan-linux-release-1303566/chrome --user-data-dir=/tmp/noexist http://127.0.0.1:8605/poc.html about:blank
  4. add the poc.html to TabGroup and then save it. Click the STGEverythingMenu Button to show the popup menu, after the poc.html is closed, click the saved group in the popup menu.

Problem Description

1. Analysis

The UI of Saved Group in the STGEverythingMenu is not deleted when the group is closed, we could still access it[1] via click the popup menu, leading to container-overflow.

void STGEverythingMenu::ExecuteCommand(int command_id, int event_flags) {
  if (command_id == IDC_CREATE_NEW_TAB_GROUP) {
    base::RecordAction(base::UserMetricsAction(
        "TabGroups_SavedTabGroups_CreateNewGroupTriggeredFromEverythingMenu"));
    browser_->command_controller()->ExecuteCommand(command_id);
  } else {
    base::RecordAction(base::UserMetricsAction(
        "TabGroups_SavedTabGroups_OpenedFromEverythingMenu"));
    const auto* const group = GetTabGroupForCommandId(command_id); // access the deleted group
    if (group->saved_tabs().empty()) {
      return;
    }
    auto* const keyed_service =
        SavedTabGroupServiceFactory::GetForProfile(browser_->profile());
    keyed_service->OpenSavedTabGroupInBrowser(browser_, group->saved_guid());
  }
}

[1] https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_everything_menu.cc;l=154

2. Bisect

This problem is introduced in this commit: https://chromium-review.googlesource.com/c/chromium/src/+/5420175 This issues affects Chrome Stable 125.0.6422.60

3. Suggested Patch

Delete the SavedGroup from popup menu when it is removed.

Summary

Security: Container-overflow in STGEverythingMenu::ExecuteCommand

Custom Questions

Type of crash:

browser

Crash state:

================================================================= ==206051==ERROR: AddressSanitizer: container-overflow on address 0x50d0004efba0 at pc 0x55712d846363 bp 0x7ffcbf6a4770 sp 0x7ffcbf6a4768 READ of size 8 at 0x50d0004efba0 thread T0 (chrome) #0 0x55712d846362 in empty third_party/libc++/src/include/vector:602:18 #1 0x55712d846362 in tab_groups::STGEverythingMenu::ExecuteCommand(int, int) chrome/browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_everything_menu.cc:155:29 #2 0x7f7800a642e5 in views::internal::MenuRunnerImpl::OnMenuClosed(views::internal::MenuControllerDelegate::NotifyType, views::MenuItemView*, int) ui/views/controls/menu/menu_runner_impl.cc:237:29 #3 0x7f7800a0cf59 in views::MenuController::ExitMenu() ui/views/controls/menu/menu_controller.cc:3232:13 #4 0x7f7800a13f7f in ReallyAccept ui/views/controls/menu/menu_controller.cc:1937:3 #5 0x7f7800a13f7f in views::MenuController::Accept(views::MenuItemView*, int) ui/views/controls/menu/menu_controller.cc:1917:3 #6 0x7f7800a1bcc2 in views::MenuController::OnKeyPressed(ui::KeyEvent const&) ui/views/controls/menu/menu_controller.cc:1740:15 #7 0x7f7800a1a5e5 in views::MenuController::OnWillDispatchKeyEvent(ui::KeyEvent*) ui/views/controls/menu/menu_controller.cc:1349:19 #8 0x7f781d29c258 in ui::EventDispatcher::DispatchEvent(ui::EventHandler*, ui::Event*) ui/events/event_dispatcher.cc:187:12 #9 0x7f781d29bd78 in ui::EventDispatcher::DispatchEventToEventHandlers(std::__Cr::vector<base::raw_ptr<ui::EventHandler, (partition_alloc::internal::RawPtrTraits)1>, std::__Cr::allocator<base::raw_ptr<ui::EventHandler, (partition_alloc::internal::RawPtrTraits)1>>>, ui::Event) ui/events/event_dispatcher.cc:174:7 #10 0x7f781d29a628 in ui::EventDispatcher::ProcessEvent(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:122:3 #11 0x7f781d299eab in ui::EventDispatcherDelegate::DispatchEventToTarget(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:82:14 #12 0x7f781d299ade in ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:54:15 #13 0x7f781d2a04d9 in ui::EventProcessor::OnEventFromSource(ui::Event*) ui/events/event_processor.cc:72:19 #14 0x7f780e596dd9 in aura::WindowTreeHost::DispatchKeyEventPostIME(ui::KeyEvent*) ui/aura/window_tree_host.cc:309:23 #15 0x7f780fdb5f85 in ui::InputMethodBase::DispatchKeyEventPostIME(ui::KeyEvent*) const ui/base/ime/input_method_base.cc:137:43 #16 0x7f77fad8e907 in ui::InputMethodAuraLinux::DispatchKeyEvent(ui::KeyEvent*) ui/base/ime/linux/input_method_auralinux.cc:210:15 #17 0x7f780e561400 in aura::WindowEventDispatcher::PreDispatchKeyEvent(aura::Window*, ui::KeyEvent*) ui/aura/window_event_dispatcher.cc:1105:54 #18 0x7f780e55df59 in aura::WindowEventDispatcher::PreDispatchEvent(ui::EventTarget*, ui::Event*) ui/aura/window_event_dispatcher.cc:562:15 #19 0x7f781d2999d3 in ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:50:34 #20 0x7f781d2a04d9 in ui::EventProcessor::OnEventFromSource(ui::Event*) ui/events/event_processor.cc:72:19 #21 0x7f781d2a454b in ui::EventSource::DeliverEventToSink(ui::Event*) ui/events/event_source.cc:119:16 #22 0x7f781d2a3b63 in ui::EventSource::SendEventToSinkFromRewriter(ui::Event const*, ui::EventRewriter const*) ui/events/event_source.cc:134:12 #23 0x7f780e5a2a50 in aura::WindowTreeHostPlatform::DispatchEvent(ui::Event*) ui/aura/window_tree_host_platform.cc:285:38 #24 0x7f7800dd7bab in views::DesktopWindowTreeHostLinux::DispatchEvent(ui::Event*) ui/views/widget/desktop_aura/desktop_window_tree_host_linux.cc:248:29 #25 0x7f7833bb702f in Invoke<void (ui::PlatformWindowDelegate::)(ui::Event ), ui::PlatformWindowDelegate , ui::Event > base/functional/bind_internal.h:738:12 #26 0x7f7833bb702f in MakeItSo<void (ui::PlatformWindowDelegate::)(ui::Event ), std::__Cr::tuple<base::internal::UnretainedWrapper<ui::PlatformWindowDelegate, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> >, ui::Event > base/functional/bind_internal.h:930:12 #27 0x7f7833bb702f in RunImpl<void (ui::PlatformWindowDelegate::)(ui::Event ), std::__Cr::tuple<base::internal::UnretainedWrapper<ui::PlatformWindowDelegate, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> >, 0UL> base/functional/bind_internal.h:1067:14 #28 0x7f7833bb702f in base::internal::Invoker<base::internal::FunctorTraits<void (ui::PlatformWindowDelegate::&&)(ui::Event), ui::PlatformWindowDelegate>, base::internal::BindState<true, true, false, void (ui::PlatformWindowDelegate::)(ui::Event), base::internal::UnretainedWrapper<ui::PlatformWindowDelegate, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void (ui::Event*)>::RunOnce(base::internal::BindStateBase*, ui::Event*) base/functional/bind_internal.h:980:12 #29 0x7f781d2bf449 in Run base/functional/callback.h:156:12 #30 0x7f781d2bf449 in ui::DispatchEventFromNativeUiEvent(ui::Event* const&, base::OnceCallback<void (ui::Event*)>) ui/events/ozone/events_ozone.cc:29:25 #31 0x7f7833cb5f49 in ui::X11Window::DispatchUiEvent(ui::Event*, x11::Event const&) ui/ozone/platform/x11/x11_window.cc:1399:3 #32 0x7f7833cb54ac in ui::X11Window::DispatchEvent(ui::Event* const&) ui/ozone/platform/x11/x11_window.cc:1351:3 #33 0x7f7833cb642f in non-virtual thunk to ui::X11Window::DispatchEvent(ui::Event* const&) ui/ozone/platform/x11/x11_window.cc #34 0x7f78209638f3 in ui::PlatformEventSource::DispatchEvent(ui::Event*) ui/events/platform/platform_event_source.cc:97:29 #35 0x7f77be2b937f in ui::X11EventSource::OnEvent(x11::Event const&) ui/events/platform/x11/x11_event_source.cc:309:5 #36 0x7f77fa8aba4e in x11::Connection::DispatchEvent(x11::Event const&) ui/gfx/x/connection.cc:544:14 #37 0x7f77fa8ab2b5 in x11::Connection::ProcessNextEvent() ui/gfx/x/connection.cc:643:3 #38 0x7f77fa8aa6eb in x11::Connection::Dispatch() ui/gfx/x/connection.cc:521:5 #39 0x7f77be2cb112 in ui::(anonymous namespace)::XSourceDispatch(_GSource*, int ()(void), void*) ui/events/platform/x11/x11_event_watcher_glib.cc:57:15 #40 0x7f77bedea04d in g_main_context_dispatch (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x5204d) (BuildId: 2c1d2f9d4a08c71a36797aeb246ab7ae377934ea)

0x50d0004efba0 is located 80 bytes inside of 136-byte region [0x50d0004efb50,0x50d0004efbd8) allocated by thread T0 (chrome) here: #0 0x55712280200d in operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cpp:86:3 #1 0x557125e8b5d0 in __libcpp_operator_new<unsigned long> third_party/libc++/src/include/new:270:10 #2 0x557125e8b5d0 in __libcpp_allocate third_party/libc++/src/include/new:294:10 #3 0x557125e8b5d0 in allocate third_party/libc++/src/include/__memory/allocator.h:119:32 #4 0x557125e8b5d0 in __allocate_at_least<std::__Cr::allocator<tab_groups::SavedTabGroup> > third_party/libc++/src/include/__memory/allocate_at_least.h:41:19 #5 0x557125e8b5d0 in __split_buffer third_party/libc++/src/include/__split_buffer:342:25 #6 0x557125e8b5d0 in std::__Cr::vector<tab_groups::SavedTabGroup, std::__Cr::allocator<tab_groups::SavedTabGroup>>::insert(std::__Cr::__wrap_iter<tab_groups::SavedTabGroup const*>, tab_groups::SavedTabGroup const&) third_party/libc++/src/include/vector:1596:49 #7 0x557125e7831d in InsertGroupImpl components/saved_tab_groups/saved_tab_group_model.cc:648:21 #8 0x557125e7831d in tab_groups::SavedTabGroupModel::Add(tab_groups::SavedTabGroup) components/saved_tab_groups/saved_tab_group_model.cc:132:3 #9 0x55712cda6a8b in tab_groups::SavedTabGroupKeyedService::SaveGroup(tab_groups::TabGroupId const&, bool) chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_keyed_service.cc:251:10 #10 0x55712e2e58e6 in TabGroupEditorBubbleView::OnSaveTogglePressed() chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc:516:30 #11 0x55712e2e90bd in Invoke<void (TabGroupEditorBubbleView::)(), TabGroupEditorBubbleView > base/functional/bind_internal.h:738:12 #12 0x55712e2e90bd in MakeItSo<void (TabGroupEditorBubbleView::const &)(), const std::__Cr::tuple<base::internal::UnretainedWrapper<TabGroupEditorBubbleView, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &> base/functional/bind_internal.h:930:12 #13 0x55712e2e90bd in RunImpl<void (TabGroupEditorBubbleView::const &)(), const std::__Cr::tuple<base::internal::UnretainedWrapper<TabGroupEditorBubbleView, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> > &, 0UL> base/functional/bind_internal.h:1067:14 #14 0x55712e2e90bd in base::internal::Invoker<base::internal::FunctorTraits<void (TabGroupEditorBubbleView:: const&)(), TabGroupEditorBubbleView>, base::internal::BindState<true, true, false, void (TabGroupEditorBubbleView::)(), base::internal::UnretainedWrapper<TabGroupEditorBubbleView, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void ()>::Run(base::internal::BindStateBase) base/functional/bind_internal.h:987:12 #15 0x7f780088d1da in base::RepeatingCallback<void ()>::Run() const & base/functional/callback.h:344:12 #16 0x7f780095e4aa in operator() ui/views/controls/button/button.cc:134:63 #17 0x7f780095e4aa in __invoke<base::Overloaded<(lambda at ../../ui/views/controls/button/button.cc:133:11), (lambda at ../../ui/views/controls/button/button.cc:134:11), (lambda at ../../ui/views/controls/button/button.cc:135:11)>, base::RepeatingCallback<void ()> &> third_party/libc++/src/include/__type_traits/invoke.h:150:25 #18 0x7f780095e4aa in invoke<base::Overloaded<(lambda at ../../ui/views/controls/button/button.cc:133:11), (lambda at ../../ui/views/controls/button/button.cc:134:11), (lambda at ../../ui/views/controls/button/button.cc:135:11)>, base::RepeatingCallback<void ()> &> third_party/libc++/src/include/__functional/invoke.h:28:10 #19 0x7f780095e4aa in Run<0UL, 1UL> third_party/abseil-cpp/absl/types/internal/variant.h:922:12 #20 0x7f780095e4aa in operator()<1UL> third_party/abseil-cpp/absl/types/internal/variant.h:910:12 #21 0x7f780095e4aa in __invoke<absl::variant_internal::PerformVisitation<base::Overloaded<(lambda at ../../ui/views/controls/button/button.cc:133:11), (lambda at ../../ui/views/controls/button/button.cc:134:11), (lambda at ../../ui/views/controls/button/button.cc:135:11)>, absl::variant<base::OnceCallback<void ()>, base::RepeatingCallback<void ()>, base::RepeatingCallback<void (const ui::Event &)> > &>, std::__Cr::integral_constant<unsigned long, 1UL> > third_party/libc++/src/include/__type_traits/invoke.h:150:25 #22 0x7f780095e4aa in invoke<absl::variant_internal::PerformVisitation<base::Overloaded<(lambda at ../../ui/views/controls/button/button.cc:133:11), (lambda at ../../ui/views/controls/button/button.cc:134:11), (lambda at ../../ui/views/controls/button/button.cc:135:11)>, absl::variant<base::OnceCallback<void ()>, base::RepeatingCallback<void ()>, base::RepeatingCallback<void (const ui::Event &)> > &>, std::__Cr::integral_constant<unsigned long, 1UL> > third_party/libc++/src/include/__functional/invoke.h:28:10 #23 0x7f780095e4aa in Run third_party/abseil-cpp/absl/types/internal/variant.h:296:12 #24 0x7f780095e4aa in Run<absl::variant_internal::PerformVisitation<base::Overloaded<(lambda at ../../ui/views/controls/button/button.cc:133:11), (lambda at ../../ui/views/controls/button/button.cc:134:11), (lambda at ../../ui/views/controls/button/button.cc:135:11)>, absl::variant<base::OnceCallback<void ()>, base::RepeatingCallback<void ()>, base::RepeatingCallback<void (const ui::Event &)> > &> > third_party/abseil-cpp/absl/types/internal/variant.h:363:16 #25 0x7f780095e4aa in visit<base::Overloaded<(lambda at ../../ui/views/controls/button/button.cc:133:11), (lambda at ../../ui/views/controls/button/button.cc:134:11), (lambda at ../../ui/views/controls/button/button.cc:135:11)>, absl::variant<base::OnceCallback<void ()>, base::RepeatingCallback<void ()>, base::RepeatingCallback<void (const ui::Event &)> > &> third_party/abseil-cpp/absl/types/variant.h:428:10 #26 0x7f780095e4aa in views::Button::PressedCallback::Run(ui::Event const&) ui/views/controls/button/button.cc:131:10 #27 0x7f7800965c89 in views::Button::NotifyClick(ui::Event const&) ui/views/controls/button/button.cc:737:15 #28 0x7f780096e64d in views::ButtonController::OnMouseReleased(ui::MouseEvent const&) ui/views/controls/button/button_controller.cc #29 0x7f781d2b4eb2 in ui::ScopedTargetHandler::OnEvent(ui::Event*) ui/events/scoped_target_handler.cc:30:24 #30 0x7f781d29c258 in ui::EventDispatcher::DispatchEvent(ui::EventHandler*, ui::Event*) ui/events/event_dispatcher.cc:187:12 #31 0x7f781d29a91f in ui::EventDispatcher::ProcessEvent(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:136:5 #32 0x7f781d299eab in ui::EventDispatcherDelegate::DispatchEventToTarget(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:82:14 #33 0x7f781d299ade in ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:54:15 #34 0x7f7800cb8370 in views::internal::RootView::OnMouseReleased(ui::MouseEvent const&) ui/views/widget/root_view.cc:557:9 #35 0x7f7800cf3fd6 in views::Widget::OnMouseEvent(ui::MouseEvent*) ui/views/widget/widget.cc:1846:20 #36 0x7f7800d9c9b4 in views::NativeWidgetAura::OnMouseEvent(ui::MouseEvent*) ui/views/widget/native_widget_aura.cc #37 0x7f781d29c258 in ui::EventDispatcher::DispatchEvent(ui::EventHandler*, ui::Event*) ui/events/event_dispatcher.cc:187:12 #38 0x7f781d29a91f in ui::EventDispatcher::ProcessEvent(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:136:5 #39 0x7f781d299eab in ui::EventDispatcherDelegate::DispatchEventToTarget(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:82:14 #40 0x7f781d299ade in ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*, ui::Event*) ui/events/event_dispatcher.cc:54:15 #41 0x7f781d2a04d9 in ui::EventProcessor::OnEventFromSource(ui::Event*) ui/events/event_processor.cc:72:19 #42 0x7f781d2a454b in ui::EventSource::DeliverEventToSink(ui::Event*) ui/events/event_source.cc:119:16 #43 0x7f781d2a3b63 in ui::EventSource::SendEventToSinkFromRewriter(ui::Event const*, ui::EventRewriter const*) ui/events/event_source.cc:134:12 #44 0x7f780e5a2a50 in aura::WindowTreeHostPlatform::DispatchEvent(ui::Event*) ui/aura/window_tree_host_platform.cc:285:38 #45 0x7f7800dd7bab in views::DesktopWindowTreeHostLinux::DispatchEvent(ui::Event*) ui/views/widget/desktop_aura/desktop_window_tree_host_linux.cc:248:29 #46 0x7f7833bb702f in Invoke<void (ui::PlatformWindowDelegate::)(ui::Event ), ui::PlatformWindowDelegate , ui::Event > base/functional/bind_internal.h:738:12 #47 0x7f7833bb702f in MakeItSo<void (ui::PlatformWindowDelegate::)(ui::Event ), std::__Cr::tuple<base::internal::UnretainedWrapper<ui::PlatformWindowDelegate, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> >, ui::Event > base/functional/bind_internal.h:930:12 #48 0x7f7833bb702f in RunImpl<void (ui::PlatformWindowDelegate::)(ui::Event ), std::__Cr::tuple<base::internal::UnretainedWrapper<ui::PlatformWindowDelegate, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0> >, 0UL> base/functional/bind_internal.h:1067:14 #49 0x7f7833bb702f in base::internal::Invoker<base::internal::FunctorTraits<void (ui::PlatformWindowDelegate::&&)(ui::Event), ui::PlatformWindowDelegate>, base::internal::BindState<true, true, false, void (ui::PlatformWindowDelegate::)(ui::Event), base::internal::UnretainedWrapper<ui::PlatformWindowDelegate, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>>, void (ui::Event*)>::RunOnce(base::internal::BindStateBase*, ui::Event*) base/functional/bind_internal.h:980:12 #50 0x7f781d2bf75e in Run base/functional/callback.h:156:12 #51 0x7f781d2bf75e in ui::DispatchEventFromNativeUiEvent(ui::Event* const&, base::OnceCallback<void (ui::Event*)>) ui/events/ozone/events_ozone.cc:37:25 #52 0x7f7833cb5f49 in ui::X11Window::DispatchUiEvent(ui::Event*, x11::Event const&) ui/ozone/platform/x11/x11_window.cc:1399:3

HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_container_overflow=0. If you suspect a false positive see also: https://github.com/google/sanitizers/wiki/AddressSanitizerContainerOverflow. SUMMARY: AddressSanitizer: container-overflow third_party/libc++/src/include/vector:602:18 in empty Shadow bytes around the buggy address: 0x50d0004ef900: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa 0x50d0004ef980: fa fa fa fa f7 fa fd fd fd fd fd fd fd fd fd fd 0x50d0004efa00: fd fd fd fd fd fd fd fd fa fa fa fa fa fa f7 fa 0x50d0004efa80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x50d0004efb00: fa fa fa fa fa fa fa fa f7 fa fc fc fc fc fc fc =>0x50d0004efb80: fc fc fc fc[fc]fc fc fc fc fc fc fa fa fa fa fa 0x50d0004efc00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fd fd fd 0x50d0004efc80: fd fd fd fd fd fd fa fa fa fa fa fa f7 fa fd fd 0x50d0004efd00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x50d0004efd80: fa fa fa fa fa fa f7 fa fd fd fd fd fd fd fd fd 0x50d0004efe00: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa 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

==206051==ADDITIONAL INFO

==206051==Note: Please include this section with the ASan report. Task trace:

==206051==END OF ADDITIONAL INFO ==206051==ABORTING

Reporter credit:

Weipeng Jiang (@Krace) of VRI

Additional Data

Category: Security
Chrome Channel: Stable
Regression: N/A

The original report as published on the Chromium issue tracker, by Weipeng Jiang (@Krace) of VRI. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

Context

Chrome's Tab Groups feature lets a user collect tabs into a named group. A group can also be saved, which persists it through the SavedTabGroupKeyedService and makes it available later from a menu. The STGEverythingMenu is the popup menu that lists saved groups and offers commands such as creating a new group or opening a saved one. Selecting an entry in that menu routes through STGEverythingMenu::ExecuteCommand, which looks up the group associated with the clicked command id and, if it still has saved tabs, asks the keyed service to reopen it in the browser.

The report describes a container-overflow in that lookup: the menu keeps a UI entry for a saved group after the group itself has been removed, so clicking the stale entry reads a SavedTabGroup out of a std::vector that no longer contains live elements. The issue was reported through the Chrome VRP by Weipeng Jiang (@Krace) of VRI and is tracked as CVE-2024-5835.

Setup

The reproduction uses an AddressSanitizer build of Chrome on Linux, asan-linux-release-1303566.zip, and a local page named poc.html served over HTTP. The report states that the issue affects Chrome Stable 125.0.6422.60. No account, extension or special privilege is needed: the whole flow is ordinary browser UI.

Finding it

The researcher observed that the UI entry for a Saved Group inside STGEverythingMenu is not deleted when the group is closed. The menu item therefore outlives the data it refers to, and the popup can still be used to reach it. The relevant code path is:

Text
void STGEverythingMenu::ExecuteCommand(int command_id, int event_flags) {
  if (command_id == IDC_CREATE_NEW_TAB_GROUP) {
    base::RecordAction(base::UserMetricsAction(
        "TabGroups_SavedTabGroups_CreateNewGroupTriggeredFromEverythingMenu"));
    browser_->command_controller()->ExecuteCommand(command_id);
  } else {
    base::RecordAction(base::UserMetricsAction(
        "TabGroups_SavedTabGroups_OpenedFromEverythingMenu"));
    const auto* const group = GetTabGroupForCommandId(command_id); // access the deleted group
    if (group->saved_tabs().empty()) {
      return;
    }
    auto* const keyed_service =
        SavedTabGroupServiceFactory::GetForProfile(browser_->profile());
    keyed_service->OpenSavedTabGroupInBrowser(browser_, group->saved_guid());
  }
}

For any command id other than IDC_CREATE_NEW_TAB_GROUP, the handler calls GetTabGroupForCommandId(command_id) and immediately dereferences the result to check saved_tabs(). If the group has been removed, that pointer refers to storage that is no longer part of the live vector contents, and the empty() check reads it anyway. The report links this code to saved_tab_group_everything_menu.cc line 154 in the Chromium source.

A bisect attributes the regression to the commit at https://chromium-review.googlesource.com/c/chromium/src/+/5420175.

Exploitation

Step 1: prepare the ASan build

Download asan-linux-release-1303566.zip and unzip it. The archive contains the instrumented Chrome binary used for the rest of the reproduction.

Step 2: serve the proof of concept

Start an HTTP server in the folder that contains poc.html. The report does not describe the contents of the page.

Step 3: launch Chrome against the page

Bash
./asan-linux-release-1303566/chrome  --user-data-dir=/tmp/noexist http://[redacted]:8605/poc.html about:blank

The command opens the local page and a blank tab.

Step 4: save the group, close the tab, then use the stale menu entry

  1. Add poc.html to a Tab Group and save it.
  2. Click the STGEverythingMenu Button to show the popup menu.
  3. Close the poc.html tab.
  4. Click the saved group in the popup menu.

At that point the menu still offers the saved group after the tab has been closed. Selecting it enters ExecuteCommand, which reaches the deleted group through GetTabGroupForCommandId and triggers the container-overflow.

Root cause

The saved-group model stores groups in a std::vector<tab_groups::SavedTabGroup>. When a group is saved, SavedTabGroupModel::Add calls InsertGroupImpl, which inserts into that vector; the ASan allocation trace shows the 136-byte region being allocated by std::__Cr::vector<tab_groups::SavedTabGroup, ...>::insert from components/saved_tab_groups/saved_tab_group_model.cc:648. The menu still resolves the old command id to a group that has been deleted.

AddressSanitizer's container-overflow check catches exactly this: the memory is still inside the vector's allocation, so it is not a use-after-free in the allocator's eyes, but it has been poisoned because it is no longer part of the container's live contents. The crash report shows the read happening in empty() on the vector:

Text
==206051==ERROR: AddressSanitizer: container-overflow on address 0x50d0004efba0 at pc 0x55712d846363 bp 0x7ffcbf6a4770 sp 0x7ffcbf6a4768
READ of size 8 at 0x50d0004efba0 thread T0 (chrome)
    #0 0x55712d846362 in empty third_party/libc++/src/include/vector:602:18
    #1 0x55712d846362 in tab_groups::STGEverythingMenu::ExecuteCommand(int, int) chrome/browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_everything_menu.cc:155:29
    #2 0x7f7800a642e5 in views::internal::MenuRunnerImpl::OnMenuClosed(views::internal::MenuControllerDelegate::NotifyType, views::MenuItemView*, int) ui/views/controls/menu/menu_runner_impl.cc:237:29

The allocation site confirms the vector and the save path:

Text
0x50d0004efba0 is located 80 bytes inside of 136-byte region [0x50d0004efb50,0x50d0004efbd8)
allocated by thread T0 (chrome) here:
    #0 0x55712280200d in operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cpp:86:3
    #1 0x557125e8b5d0 in __libcpp_operator_new<unsigned long> third_party/libc++/src/include/new:270:10
    #2 0x557125e8b5d0 in __libcpp_allocate third_party/libc++/src/include/new:294:10
    #3 0x557125e8b5d0 in allocate third_party/libc++/src/include/__memory/allocator.h:119:32
    #4 0x557125e8b5d0 in __allocate_at_least<std::__Cr::allocator<tab_groups::SavedTabGroup> > third_party/libc++/src/include/__memory/allocate_at_least.h:41:19
    #5 0x557125e8b5d0 in __split_buffer third_party/libc++/src/include/__split_buffer:342:25
    #6 0x557125e8b5d0 in std::__Cr::vector<tab_groups::SavedTabGroup, std::__Cr::allocator<tab_groups::SavedTabGroup>>::insert(std::__Cr::__wrap_iter<tab_groups::SavedTabGroup const*>, tab_groups::SavedTabGroup const&) third_party/libc++/src/include/vector:1596:49
    #7 0x557125e7831d in InsertGroupImpl components/saved_tab_groups/saved_tab_group_model.cc:648:21
    #8 0x557125e7831d in tab_groups::SavedTabGroupModel::Add(tab_groups::SavedTabGroup) components/saved_tab_groups/saved_tab_group_model.cc:132:3
    #9 0x55712cda6a8b in tab_groups::SavedTabGroupKeyedService::SaveGroup(tab_groups::TabGroupId const&, bool) chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_keyed_service.cc:251:10
    #10 0x55712e2e58e6 in TabGroupEditorBubbleView::OnSaveTogglePressed() chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc:516:30

The shadow bytes around the faulting address mark the region as container overflow (fc), and ASan aborts with SUMMARY: AddressSanitizer: container-overflow third_party/libc++/src/include/vector:602:18 in empty. The ASan output notes that the check can be disabled with ASAN_OPTIONS=detect_container_overflow=0.

Impact

The report classifies the issue as a security bug and describes the crash as occurring in the browser process. The immediate effect is an ASan container-overflow report triggered by ordinary UI interaction: save a group, close its tab, then pick the group from the everything menu. The report does not demonstrate anything beyond the container-overflow read, so no further consequence, such as memory corruption leading to code execution, is claimed. The platform records the severity as high and the bounty as 3000.00 USD.

Fix

The suggested patch in the report is to delete the saved group from the popup menu when it is removed, so that the menu can no longer resolve a command id to a group that no longer exists. The report does not describe the patch that was ultimately landed.

Variants to test

  • Other menus backed by model vectors. Look for popup or context menus that cache a command id to model object mapping and are not refreshed when the model removes an element. A positive result is a menu entry that still resolves after the underlying object is deleted, ideally caught by ASan as a container-overflow or use-after-free.
  • Save then close in different orders. Try closing the tab before saving, closing the whole group, or removing the group from the saved list while the menu is open. Any path that leaves a clickable entry pointing at removed data is the same bug class.
  • Menu held open across a model change. Open the everything menu, remove or close the group through another UI surface, then select the stale entry. A crash or ASan report on the lookup confirms the stale mapping.
  • Other vector-backed UI caches. Any place that stores indices or pointers into a std::vector of model objects and does not invalidate them on erase or shrink is worth checking with an ASan build and detect_container_overflow left at its default.

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

What happened, in plain words

Chrome lets you put several tabs into a named bundle called a Tab Group. You can also save that group, so it stays around after you close its tabs, and reopen it later from a menu. The menu that lists saved groups is called STGEverythingMenu. When you click an entry in that menu, Chrome runs a function called STGEverythingMenu::ExecuteCommand, which looks up the group that belongs to the entry you clicked and, if the group still has tabs, asks another part of Chrome to reopen it.

The bug is that the menu keeps showing an entry for a saved group even after the group itself has been removed. Clicking that leftover entry makes Chrome read data that is no longer there. The program that stores the list of saved groups, a std::vector, has already shrunk, but the menu still points at the old position. Reading past the live part of that list is called a container-overflow. A tool called AddressSanitizer (ASan), which is built into special test versions of Chrome to catch memory mistakes, notices the bad read and stops the browser.

The issue was found by Weipeng Jiang (@Krace) of VRI and reported through the Chrome VRP, Google's bug bounty programme for Chrome. It is tracked as CVE-2024-5835.

Context

A Tab Group is a way to collect related tabs under one name and colour. Saving a group means Chrome remembers it even after the tabs are closed, so you can bring it back later. The saved groups are managed by a piece of code called SavedTabGroupKeyedService, and they appear in a popup menu, STGEverythingMenu, which offers commands such as creating a new group or opening a saved one.

When you pick an entry in that menu, Chrome calls STGEverythingMenu::ExecuteCommand. That function works out which group belongs to the entry you clicked, checks whether the group still has saved tabs, and if so asks the keyed service to reopen it in the browser.

The report describes a container-overflow in that lookup. The menu keeps a visible entry for a saved group after the group itself has been removed, so clicking the stale entry reads a SavedTabGroup out of a std::vector that no longer contains live elements. A std::vector is a list-like container in C++ that stores its items in one block of memory; when items are removed, the block can stay allocated while the live part shrinks.

Setup

The reproduction uses a special build of Chrome for Linux that has AddressSanitizer compiled in, packaged as asan-linux-release-1303566.zip, plus a local page named poc.html served over HTTP. The report states that the issue affects Chrome Stable 125.0.6422.60. No account, extension or special privilege is needed: the whole flow is ordinary browser UI.

Finding it

The researcher observed that the UI entry for a Saved Group inside STGEverythingMenu is not deleted when the group is closed. The menu item therefore outlives the data it refers to, and the popup can still be used to reach it. The relevant code path is:

Text
void STGEverythingMenu::ExecuteCommand(int command_id, int event_flags) {
  if (command_id == IDC_CREATE_NEW_TAB_GROUP) {
    base::RecordAction(base::UserMetricsAction(
        "TabGroups_SavedTabGroups_CreateNewGroupTriggeredFromEverythingMenu"));
    browser_->command_controller()->ExecuteCommand(command_id);
  } else {
    base::RecordAction(base::UserMetricsAction(
        "TabGroups_SavedTabGroups_OpenedFromEverythingMenu"));
    const auto* const group = GetTabGroupForCommandId(command_id); // access the deleted group
    if (group->saved_tabs().empty()) {
      return;
    }
    auto* const keyed_service =
        SavedTabGroupServiceFactory::GetForProfile(browser_->profile());
    keyed_service->OpenSavedTabGroupInBrowser(browser_, group->saved_guid());
  }
}

Line by line:

  1. void STGEverythingMenu::ExecuteCommand(int command_id, int event_flags) is the function that runs when you choose something in the menu. command_id is a number that says which entry you picked.
  2. if (command_id == IDC_CREATE_NEW_TAB_GROUP) checks whether you picked the entry for creating a brand new group.
  3. base::RecordAction(base::UserMetricsAction(...)) records an anonymous usage statistic, so Google can count how often this menu action happens.
  4. browser_->command_controller()->ExecuteCommand(command_id); tells the browser to carry out the create-new-group command.
  5. } else { covers every other entry, which in practice means a saved group.
  6. The second base::RecordAction(...) records that a saved group was opened from this menu.
  7. const auto* const group = GetTabGroupForCommandId(command_id); looks up the group that belongs to the clicked entry. The comment // access the deleted group marks the problem: if the group was removed, this pointer refers to data that is no longer live.
  8. if (group->saved_tabs().empty()) reads the group to see whether it has any saved tabs. This read is what touches the stale memory.
  9. return; stops if the group has no tabs.
  10. auto* const keyed_service = SavedTabGroupServiceFactory::GetForProfile(browser_->profile()); fetches the service that manages saved groups for the current browser profile.
  11. keyed_service->OpenSavedTabGroupInBrowser(browser_, group->saved_guid()); asks that service to reopen the group, identified by its saved GUID (a unique identifier).

For any command id other than IDC_CREATE_NEW_TAB_GROUP, the handler calls GetTabGroupForCommandId(command_id) and immediately dereferences the result to check saved_tabs(). If the group has been removed, that pointer refers to storage that is no longer part of the live vector contents, and the empty() check reads it anyway. The report links this code to saved_tab_group_everything_menu.cc line 154 in the Chromium source.

A bisect, which means testing older and newer versions of the code to find the exact change that introduced a bug, attributes the regression to the commit at https://chromium-review.googlesource.com/c/chromium/src/+/5420175.

Exploitation

Step 1: prepare the ASan build

Download asan-linux-release-1303566.zip and unzip it. The archive contains the instrumented Chrome binary used for the rest of the reproduction. An instrumented binary is a build with extra checks compiled in, so memory mistakes are caught and reported instead of silently corrupting things.

Step 2: serve the proof of concept

Start an HTTP server in the folder that contains poc.html. The report does not describe the contents of the page. An HTTP server is a small program that hands files to the browser over the local network, so the page can be loaded like a normal website.

Step 3: launch Chrome against the page

Bash
./asan-linux-release-1303566/chrome  --user-data-dir=/tmp/noexist http://[redacted]:8605/poc.html about:blank

Line by line:

  1. ./asan-linux-release-1303566/chrome runs the Chrome binary from the unzipped folder.
  2. --user-data-dir=/tmp/noexist tells Chrome to use a throwaway profile folder, so the test does not touch your normal bookmarks, history or settings.
  3. http://[redacted]:8605/poc.html opens the local page. [redacted] means this computer, and 8605 is the port the HTTP server from step 2 is expected to listen on.
  4. about:blank opens an extra empty tab.

Step 4: save the group, close the tab, then use the stale menu entry

  1. Add poc.html to a Tab Group and save it.
  2. Click the STGEverythingMenu Button to show the popup menu.
  3. Close the poc.html tab.
  4. Click the saved group in the popup menu.

At that point the menu still offers the saved group after the tab has been closed. Selecting it enters ExecuteCommand, which reaches the deleted group through GetTabGroupForCommandId and triggers the container-overflow.

Root cause

The saved-group model stores groups in a std::vector<tab_groups::SavedTabGroup>. When a group is saved, SavedTabGroupModel::Add calls InsertGroupImpl, which inserts into that vector; the ASan allocation trace shows the 136-byte region being allocated by std::__Cr::vector<tab_groups::SavedTabGroup, ...>::insert from components/saved_tab_groups/saved_tab_group_model.cc:648. The menu still resolves the old command id to a group that has been deleted.

AddressSanitizer's container-overflow check catches exactly this: the memory is still inside the vector's allocation, so it is not a use-after-free in the allocator's eyes, but it has been poisoned because it is no longer part of the container's live contents. A use-after-free is when memory has been handed back to the system and is then used again; here the memory block is still owned by the vector, but the item inside it is no longer valid. The crash report shows the read happening in empty() on the vector:

Text
==206051==ERROR: AddressSanitizer: container-overflow on address 0x50d0004efba0 at pc 0x55712d846363 bp 0x7ffcbf6a4770 sp 0x7ffcbf6a4768
READ of size 8 at 0x50d0004efba0 thread T0 (chrome)
    #0 0x55712d846362 in empty third_party/libc++/src/include/vector:602:18
    #1 0x55712d846362 in tab_groups::STGEverythingMenu::ExecuteCommand(int, int) chrome/browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_everything_menu.cc:155:29
    #2 0x7f7800a642e5 in views::internal::MenuRunnerImpl::OnMenuClosed(views::internal::MenuControllerDelegate::NotifyType, views::MenuItemView*, int) ui/views/controls/menu/menu_runner_impl.cc:237:29

Line by line:

  1. ==206051==ERROR: AddressSanitizer: container-overflow ... is ASan announcing the kind of mistake it found, with the memory address involved and the processor registers at the moment of the crash.
  2. READ of size 8 says Chrome tried to read 8 bytes, the size of a pointer on a 64-bit machine.
  3. thread T0 (chrome) says the read happened on the main browser thread.
  4. #0 ... in empty ... vector:602:18 is the innermost frame: the empty() function of the vector, which checks whether the list has any items.
  5. #1 ... in tab_groups::STGEverythingMenu::ExecuteCommand(int, int) ... saved_tab_group_everything_menu.cc:155:29 is the caller: the menu handler from the code above.
  6. #2 ... in views::internal::MenuRunnerImpl::OnMenuClosed ... is the next frame up the stack.

The allocation site confirms the vector and the save path:

Text
0x50d0004efba0 is located 80 bytes inside of 136-byte region [0x50d0004efb50,0x50d0004efbd8)
allocated by thread T0 (chrome) here:
    #0 0x55712280200d in operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cpp:86:3
    #1 0x557125e8b5d0 in __libcpp_operator_new<unsigned long> third_party/libc++/src/include/new:270:10
    #2 0x557125e8b5d0 in __libcpp_allocate third_party/libc++/src/include/new:294:10
    #3 0x557125e8b5d0 in allocate third_party/libc++/src/include/__memory/allocator.h:119:32
    #4 0x557125e8b5d0 in __allocate_at_least<std::__Cr::allocator<tab_groups::SavedTabGroup> > third_party/libc++/src/include/__memory/allocate_at_least.h:41:19
    #5 0x557125e8b5d0 in __split_buffer third_party/libc++/src/include/__split_buffer:342:25
    #6 0x557125e8b5d0 in std::__Cr::vector<tab_groups::SavedTabGroup, std::__Cr::allocator<tab_groups::SavedTabGroup>>::insert(std::__Cr::__wrap_iter<tab_groups::SavedTabGroup const*>, tab_groups::SavedTabGroup const&) third_party/libc++/src/include/vector:1596:49
    #7 0x557125e7831d in InsertGroupImpl components/saved_tab_groups/saved_tab_group_model.cc:648:21
    #8 0x557125e7831d in tab_groups::SavedTabGroupModel::Add(tab_groups::SavedTabGroup) components/saved_tab_groups/saved_tab_group_model.cc:132:3
    #9 0x55712cda6a8b in tab_groups::SavedTabGroupKeyedService::SaveGroup(tab_groups::TabGroupId const&, bool) chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_keyed_service.cc:251:10
    #10 0x55712e2e58e6 in TabGroupEditorBubbleView::OnSaveTogglePressed() chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc:516:30

Line by line:

  1. 0x50d0004efba0 is located 80 bytes inside of 136-byte region ... says the bad address sits inside a 136-byte block of memory that was handed out earlier.
  2. allocated by thread T0 (chrome) here: starts the list of calls that created that block.
  3. #0 ... in operator new(unsigned long) ... is the low-level memory allocation function.
  4. #1 ... in __libcpp_operator_new ... and #2 ... in __libcpp_allocate ... are the C++ standard library wrappers around it.
  5. #3 ... in allocate ... is the allocator used by the vector.
  6. #4 ... in __allocate_at_least<std::__Cr::allocator<tab_groups::SavedTabGroup> > ... shows the block was sized for SavedTabGroup items.
  7. #5 ... in __split_buffer ... and #6 ... in std::__Cr::vector<...>::insert(...) show the vector growing to make room for a new item.
  8. #7 ... in InsertGroupImpl ... and #8 ... in tab_groups::SavedTabGroupModel::Add(...) are the model functions that add a saved group.
  9. #9 ... in tab_groups::SavedTabGroupKeyedService::SaveGroup(...) is the service call that saves the group.
  10. #10 ... in TabGroupEditorBubbleView::OnSaveTogglePressed() is the button press in the group editor bubble that started the save.

The shadow bytes around the faulting address mark the region as container overflow (fc), and ASan aborts with SUMMARY: AddressSanitizer: container-overflow third_party/libc++/src/include/vector:602:18 in empty. Shadow bytes are a map ASan keeps alongside real memory to record which bytes are safe to use; fc means the byte belongs to a container but is not part of its live contents. The ASan output notes that the check can be disabled with ASAN_OPTIONS=detect_container_overflow=0.

Impact

The report classifies the issue as a security bug and describes the crash as occurring in the browser process. The immediate effect is an ASan container-overflow report triggered by ordinary UI interaction: save a group, close its tab, then pick the group from the everything menu. The report does not demonstrate anything beyond the container-overflow read, so no further consequence, such as memory corruption leading to code execution, is claimed. The platform records the severity as high and the bounty as 3000.00 USD.

Fix

The suggested patch in the report is to delete the saved group from the popup menu when it is removed, so that the menu can no longer resolve a command id to a group that no longer exists. The report does not describe the patch that was ultimately landed.

Variants to test

  • Other menus backed by model vectors. Look for popup or context menus that cache a command id to model object mapping and are not refreshed when the model removes an element. A positive result is a menu entry that still resolves after the underlying object is deleted, ideally caught by ASan as a container-overflow or use-after-free.
  • Save then close in different orders. Try closing the tab before saving, closing the whole group, or removing the group from the saved list while the menu is open. Any path that leaves a clickable entry pointing at removed data is the same bug class.
  • Menu held open across a model change. Open the everything menu, remove or close the group through another UI surface, then select the stale entry. A crash or ASan report on the lookup confirms the stale mapping.
  • Other vector-backed UI caches. Any place that stores indices or pointers into a std::vector of model objects and does not invalidate them on erase or shrink is worth checking with an ASan build and detect_container_overflow left at its default.

Glossary

  • AddressSanitizer (ASan): a tool built into special test builds of programs that watches memory use and stops the program with a report when it sees an invalid read or write.
  • Bisect: testing a series of older and newer code versions to find the exact change that introduced a bug.
  • Browser process: the main Chrome process that runs the user interface and coordinates the other processes.
  • Bug bounty programme: a scheme where a company pays researchers for reporting security bugs responsibly.
  • Chrome VRP: Google's Vulnerability Reward Program for Chrome, the scheme through which this bug was reported.
  • Command id: a number that identifies which entry in a menu was chosen.
  • Container-overflow: reading or writing memory that is inside a container's allocated block but outside the part that currently holds live items.
  • CVE: a public identifier for a known security vulnerability, here CVE-2024-5835.
  • Dereference: using a pointer to read or write the value it points at.
  • GUID: a long unique identifier used to tell one saved group apart from another.
  • Heap: the area of memory a program uses for data that is created while it runs, such as the list of saved groups.
  • HTTP server: a program that serves files to a browser over the network, here on the local machine.
  • Keyed service: a Chrome component that is created per profile and provides one specific feature, here managing saved tab groups.
  • Pointer: a value that holds the memory address of some data.
  • Popup menu: a small list of choices that appears when you click a button.
  • Profile: the folder where Chrome keeps a person's settings, history and bookmarks.
  • Proof of concept (poc): a small setup that reliably demonstrates a bug.
  • Regression: a bug that was not present in an earlier version and was introduced by a later change.
  • Saved group: a Tab Group that Chrome remembers after its tabs are closed, so it can be reopened later.
  • Shadow bytes: a map ASan keeps next to real memory to record which bytes are safe to use.
  • Stable channel: the normal release version of Chrome that most people use.
  • std::vector: a C++ container that stores items in one contiguous block of memory and can grow or shrink.
  • Tab Group: a named collection of browser tabs.
  • Thread: one sequence of instructions running inside a program; the main browser work happens on thread T0.
  • Use-after-free: using memory after it has been released back to the system.
  • User metrics: anonymous counts of how often features are used, recorded by Chrome.
  • VRI: the organisation credited alongside the researcher in the report.

More by Weipeng Jiang

View all

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