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

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

A use-after-free vulnerability exists in the browser process because a pointer to a view is stored without protection and not cleared when the view is destroyed. An attacker could potentially trigger the bug by causing a download bubble to be shown, removing a download, and then having the user press a keyboard shortcut, leading to a virtual call on freed memory.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 13 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 vulnerability exists in the browser process due to a dangling pointer in WidgetDelegate's initially_focused_view. This occurs because the pointer is stored in an unprotected std::optional and is not cleared when the referenced View is destroyed. Triggering accessibility shortcuts like F6 or Alt+Shift+A can result in a virtual function call on freed memory.

Affected files:

  • chrome/browser/ui/focus/browser_focus_controller_delegate_views.cc
  • ui/views/widget/widget_delegate.h
  • chrome/browser/ui/views/download/bubble/download_toolbar_ui_controller.cc
  • ui/views/widget/widget_delegate.cc
  • ui/views/window/dialog_delegate.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Description

A potential Use-After-Free (UAF) vulnerability has been identified in the browser process, specifically within BrowserFocusControllerDelegateViews::ActivateFirstInactiveBubbleForAccessibility(). The issue stems from how WidgetDelegate manages its initially_focused_view pointer, which is used to determine focus when a bubble or dialog is activated for accessibility.

Root Cause Analysis

In ui/views/widget/widget_delegate.h, the initially_focused_view field is defined as:

C++
std::optional<View*> initially_focused_view;

Because this pointer is wrapped in std::optional, it is not converted to raw_ptr<View> by Chromium's automated rewriter and thus lacks MiraclePtr/BackupRefPtr protection. Furthermore, there is no mechanism (such as a ViewTracker or ViewObserver) to clear this pointer if the referenced View is destroyed during the lifetime of the delegate.

In the context of the Download Bubble, this field can be set to a child view (e.g., a button within a download row). If that download row is removed while the bubble remains open, the pointer becomes dangling.

Vulnerable Sink

The vulnerability is potentially triggered when a user presses the F6 (Rotate Pane Focus) or Alt+Shift+A (Focus Inactive Popup) keyboard shortcuts. The following code path in chrome/browser/ui/focus/browser_focus_controller_delegate_views.cc retrieves the dangling pointer and performs a virtual call:

C++
// line 112
views::View* focusable = bubble->GetInitiallyFocusedView();
// ...
if (focusable) {
  focusable->RequestFocus(); // Virtual call on potentially freed memory
}

Potential Attack Scenario

While these steps are theoretical and have not been validated by a running proof-of-concept, an attacker could potentially trigger the vulnerability as follows:

  1. Induce the browser to show the Download Bubble in an inactive state (e.g., by initiating multiple downloads from a site).
  2. Cause a specific download to be removed (e.g., via interaction in another tab or automated cleanup), which destroys the associated View that was captured as the initially_focused_view.
  3. The user, perhaps guided by a screen reader or keyboard navigation, presses F6 or Alt+Shift+A to focus the bubble.
  4. The system attempts to call RequestFocus() on the dangling pointer, potentially allowing an attacker who has groomed the heap to gain arbitrary code execution in the unsandboxed browser process.

Suggested Fix

The initially_focused_view should be managed using a views::ViewTracker or a base::WeakPtr<views::View> to ensure the pointer is invalidated when the View is destroyed. Additionally, the kAnchoredDialogKey property should be audited to ensure it does not bypass modern memory safety protections.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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

The initially_focused_view pointer is stored in an unprotected std::optional and is not cleared when the referenced View is destroyed.

Impact

An attacker could potentially gain arbitrary code execution in the unsandboxed browser process, but the scenario is theoretical and has not been validated.

What the attacker needed

User presses F6 or Alt+Shift+A; download bubble is open; a download is removed

The fix

The initially_focused_view should be managed using a views::ViewTracker or a base::WeakPtr<views::View> to ensure the pointer is invalidated when the View is destroyed.

How it was found

  1. Induce the browser to show the Download Bubble in an inactive state.
  2. Cause a specific download to be removed, destroying the associated View.
  3. Press F6 or Alt+Shift+A to focus the bubble.
  4. The system attempts to call RequestFocus() on the dangling pointer.

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.

A use-after-free happens when a program keeps a reference to memory that has already been freed. Here, the browser remembers which button should get focus in a popup, but if that button is removed, the memory is freed and the reference becomes invalid. Pressing certain keys can then make the browser try to use that freed memory, which could crash or, in theory, let an attacker run code.

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.