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

Use after free in Views (CVE-2026-19158)

A use-after-free was reported in the App Menu's zoom controls: a synchronous accessibility alert can let an assistive-technology client reenter the browser and close the menu, freeing the zoom view and its label. The report claims this could lead to memory corruption in the unsandboxed browser process, though the trigger was only reasoned from static code analysis and not validated.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 21 days

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 AppMenu::ZoomView::UpdateZoomControls because a synchronous platform accessibility alert is notified without a liveness guard. Reentrant UI events during synchronous event dispatch on Windows can trigger a menu teardown, causing subsequent heap operations on freed ZoomView and Label instances. This can lead to memory corruption in the unsandboxed browser process.

Affected files:

  • chrome/browser/ui/views/toolbar/app_menu.cc

Estimated timestamp from git blame: 2018-03-12

Root Cause Analysis

In AppMenu::ZoomView::UpdateZoomControls inside chrome/browser/ui/views/toolbar/app_menu.cc, the code fires a synchronous platform kAlert accessibility event. Immediately after this call, with no liveness or validity check on the view, it performs a write to an inline member variable zoom_label_max_width_:

C++
// chrome/browser/ui/views/toolbar/app_menu.cc:906-926
void UpdateZoomControls(bool on_construction = false) {
  WebContents* contents = GetActiveWebContents();
  int zoom = 100;
  if (contents) {
    ...
    increment_button_->SetEnabled(zoom < contents->GetMaximumZoomPercent());
    decrement_button_->SetEnabled(zoom > contents->GetMinimumZoomPercent());
  }
  zoom_label_->SetText(base::FormatPercent(zoom));
  if (!on_construction) {
    // An alert notification will ensure that the zoom label is always
    // announced even if is not focusable.
    zoom_label_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kAlert,
                                                    true);          // Synchronous Event Call
  }
  zoom_label_max_width_.reset();                                    // Write to member of |this|
}

On Windows, zoom_label_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kAlert, true) triggers synchronous native UI Automation (UIA) and MSAA event firing (::NotifyWinEvent and ::UiaRaiseAutomationEvent in ui/accessibility/platform/ax_platform_node_win.cc).

Per ui/views/SECURITY.md, executing these synchronous COM/UIA calls invokes a nested Single-Threaded Apartment (STA) message pump. An active UIA client (such as a screen reader or assistive technology) can process this alert and reenter Chromium synchronously by invoking accessible actions.

Specifically, if the client queries the collapse pattern (IExpandCollapseProvider::Collapse) on the app menu button:

  1. The call enters BrowserAppMenuButton::HandleAccessibleAction with ax::mojom::Action::kCollapse.
  2. This invokes CloseMenu() and synchronously resets the unique pointer to AppMenu via menu_.reset().
  3. Synchronous menu runner cleanup (~MenuRunnerImpl) destroys the parent MenuItemView structure, which immediately deletes the ZoomView and its child zoom_label_ from the PartitionAlloc heap.

When control returns:

  1. Inside ViewAccessibility::NotifyEvent, view_->OnAccessibilityEvent(event_type) is called. Since view_ (zoom_label_) has been freed, this results in a virtual call Use-After-Free (UAF).
  2. Inside AppMenu::ZoomView::UpdateZoomControls, zoom_label_max_width_.reset() is called. Since this (ZoomView) has been freed, this writes a boolean flag to a fixed offset inside the freed PartitionAlloc slot.

Because these operations are performed via raw implicit this pointers and raw C++ object references, MiraclePtr (BackupRefPtr) does not offer protection.


Suggested/Potential Trigger Steps

Note: These steps are based on static code path analysis and have not been validated with a live proof-of-concept exploit.

  1. Run Chrome on Windows with an active UI Automation client or screen reader.
  2. Open the 3-dot App Menu.
  3. Click the '+' or '−' button in the Zoom row.
  4. During the synchronous UiaRaiseAutomationEvent inside NotifyAccessibilityEventDeprecated, the UIA client issues an IExpandCollapseProvider::Collapse call on the app menu button.
  5. BrowserAppMenuButton::HandleAccessibleAction(kCollapse) executes, calling CloseMenu(), which synchronously deletes the AppMenu, ZoomView, and zoom_label_.
  6. Upon return, the browser process accesses the freed zoom_label_ during OnAccessibilityEvent and writes to the freed ZoomView memory slot during zoom_label_max_width_.reset().

Recommended Fix

To prevent UAF from reentrant menu teardowns during accessibility events, wrap the synchronous event notification in a views::ViewTracker to verify if the view is still alive before executing any further operations.

C++
void UpdateZoomControls(bool on_construction = false) {
  WebContents* contents = GetActiveWebContents();
  int zoom = 100;
  if (contents) {
    ...
    increment_button_->SetEnabled(zoom < contents->GetMaximumZoomPercent());
    decrement_button_->SetEnabled(zoom > contents->GetMinimumZoomPercent());
  }
  zoom_label_->SetText(base::FormatPercent(zoom));
  if (!on_construction) {
    views::ViewTracker tracker(this);
    zoom_label_->NotifyAccessibilityEventDeprecated(ax::mojom::Event::kAlert,
                                                    true);
    if (!tracker.view()) {
      return;
    }
  }
  zoom_label_max_width_.reset();
}

Evaluated with Chrome root at commit: b5b015ea5f690560237d1f0cff1405844cd12b8d


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 code fires a synchronous platform accessibility event and then keeps using the view without checking whether it is still alive, so a reentrant action can free it first.

Impact

The report claims this could cause memory corruption in the unsandboxed browser process, but the trigger was not validated with a live proof of concept.

What the attacker needed

Windows; an active screen reader or UIA client; user opens the app menu and zooms

The fix

The report recommends wrapping the synchronous accessibility notification in a view tracker and returning early if the view is no longer alive; it does not say the issue was fixed.

How it was found

  1. Run Chrome on Windows with an active UI Automation client or screen reader.
  2. Open the 3-dot App Menu.
  3. Click the '+' or '−' button in the Zoom row.
  4. During the synchronous accessibility event, the client issues a collapse call on the app menu button.
  5. The collapse handler closes the menu, synchronously deleting the app menu, zoom view and label.
  6. On return, the browser touches the freed label and writes to the freed zoom view.

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 program frees a chunk of memory but keeps using it afterwards, that is a use-after-free. Here, showing an accessibility alert lets another program (a screen reader) send a command back into the browser that closes the menu and destroys the zoom controls, and the browser then keeps touching that destroyed memory. The report says this could corrupt memory, but nobody has actually demonstrated it.

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.