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

Use after free in Accessibility (CVE-2026-79183)

A use-after-free was reported in the profile menu's accessibility observer, where two synchronous platform accessibility events are fired back to back with no liveness check between them. If the menu widget is destroyed during the first event's dispatch, the observer is freed and the second dispatch dereferences the freed object.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential Use-After-Free (UAF) vulnerability exists in the browser process within ProfileMenuViewBase::AXMenuWidgetObserver::OnWidgetActivationChanged. Firing back-to-back synchronous platform accessibility events on Windows can cause reentrant UI message loop execution. If the profile menu widget is destroyed during the first event's dispatch, the observer is freed, leading to a UAF when dispatching the subsequent event.

Affected files:

  • chrome/browser/ui/views/profiles/profile_menu_view_base.cc
  • chrome/browser/ui/views/profiles/profile_menu_view_base.h

Estimated timestamp from git blame: 2020-11-02

Root Cause Analysis

In chrome/browser/ui/views/profiles/profile_menu_view_base.cc, the nested class ProfileMenuViewBase::AXMenuWidgetObserver is responsible for observing activation changes on the profile menu bubble's widget. When the widget's activation state changes, OnWidgetActivationChanged is called and fires two back-to-back synchronous platform accessibility events with no liveness guard between them:

C++
void OnWidgetActivationChanged(views::Widget* widget, bool active) override {
  if (active) {
    owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuStart,
                                               true);
    owner_->NotifyAccessibilityEventDeprecated(
        ax::mojom::Event::kMenuPopupStart, true);
  } else {
    owner_->NotifyAccessibilityEventDeprecated(
        ax::mojom::Event::kMenuPopupEnd, true); // <--- Synchronous & Reentrant
    owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuEnd,
                                               true); // <--- UAF here if 'this' is freed above
  }
}

The AXMenuWidgetObserver is heap-allocated and exclusively owned by a std::unique_ptr<AXMenuWidgetObserver> member in ProfileMenuViewBase (profile_menu_view_base.h:273):

C++
std::unique_ptr<AXMenuWidgetObserver> ax_widget_observer_;

Reentrancy & Lifetime Mechanics

When owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuPopupEnd, true) is called on Windows:

  1. It propagates through ViewAccessibility::NotifyEvent and ViewAXPlatformNodeDelegate::FireNativeEvent to AXPlatformNodeWin::NotifyAccessibilityEvent.
  2. On Windows, this fires native events using standard APIs like ::NotifyWinEvent (mapping kMenuPopupEnd to EVENT_SYSTEM_MENUPOPUPEND) and ::UiaRaiseAutomationEvent (mapping to UIA_MenuClosedEventId).
  3. Active Assistive Technology (AT) clients (like screen readers or automation hooks) intercept these events synchronously and can run nested message loops or perform synchronous COM operations.
  4. If a widget destruction or deactivation task (e.g., due to focus loss, window close, or tab-switch) runs during this reentrant pump, the widget is synchronously destroyed.
  5. During widget teardown, the associated ProfileMenuViewBase delegate is deleted. As ax_widget_observer_ is owned by ProfileMenuViewBase, its destructor is executed, deallocating the AXMenuWidgetObserver from the heap.
  6. When execution returns from the OS API event dispatch, the program attempts to evaluate the second statement (owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuEnd, true)), dereferencing this->owner_. Since this has been deallocated, this results in a Use-After-Free (UAF) read of the owner_ pointer.

Why MiraclePtr / BackupRefPtr Does Not Mitigate This

owner_ is a raw_ptr<ProfileMenuViewBase>, but the UAF occurs because the AXMenuWidgetObserver object (this) is destroyed. The observer is owned by a std::unique_ptr and has no active raw_ptr pointing to it, meaning the heap slot is not quarantined by PartitionAlloc's BackupRefPtr and can be immediately reallocated or overwritten.

Potential Trigger Path (Suggested)

Note: These are potential steps as our tooling does not have the ability to run or execute code.

  1. On Windows with an active screen reader or an automation hook listening to EVENT_SYSTEM_MENUPOPUPEND, the user clicks the profile avatar button to open the Profile Menu bubble.
  2. The user switches focus or changes tabs (e.g., via script or keyboard shortcut), triggering OnWidgetActivationChanged(active = false).
  3. The first event (kMenuPopupEnd) is dispatched. The Windows AT client's callback intercepts it and synchronously pumps messages.
  4. During the message pump, the bubble-destruction task runs, synchronously destroying ProfileMenuViewBase and deleting the AXMenuWidgetObserver.
  5. Once the AT client callback returns, Chrome attempts to execute the second event dispatch and dereferences the freed AXMenuWidgetObserver to look up owner_.

Suggested Fix

To prevent the UAF, use a liveness guard to ensure that the view and the observer are still alive between accessibility event dispatches. This can be done by tracking the owner view's lifetime with views::ViewTracker or employing the TrackAndRun utility (defined in chrome/browser/ui/views/autofill/popup/popup_view_utils.h) which is already used to resolve identical reentrancy UAFs in other Views:

C++
void OnWidgetActivationChanged(views::Widget* widget, bool active) override {
  views::ViewTracker tracker(owner_);
  if (active) {
    owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuStart, true);
    if (tracker.view()) {
      owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuPopupStart, true);
    }
  } else {
    owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuPopupEnd, true);
    if (tracker.view()) {
      owner_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuEnd, true);
    }
  }
}

Evaluated with Chrome root at commit: 3947e01999a53d4e2382e39736cb79d79c7dffcf


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the observer fires two synchronous accessibility events in a row without checking that its owner is still alive after the first one, so a reentrant destruction during dispatch leaves a dangling pointer.

Impact

A use-after-free read could crash the browser and, in principle, be exploited for memory corruption, though the text only describes the read and gives no working exploit.

What the attacker needed

Windows platform; screen reader or automation hook active; user opens the profile menu; focus change during event dispatch

The fix

The observer should track the owner view's lifetime and skip the second event dispatch if the view has gone, as the report's suggested patch does.

How it was found

  1. On Windows with an active screen reader or automation hook, the user opens the profile menu bubble.
  2. The user switches focus or changes tabs, so the widget reports it is no longer active.
  3. The first accessibility event is dispatched and the assistive technology callback synchronously pumps messages.
  4. During that pump the bubble is destroyed, deleting the observer.
  5. After the callback returns, the second event dispatch dereferences the freed observer.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a menu opens or closes, the browser tells screen readers about it by sending system messages. A screen reader can react to such a message by running other browser work straight away, and that work can close and delete the menu. The code then sends a second message using the menu object it just deleted, which is a use-after-free: reading memory that has already been given back.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

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.