Use after free in Passwords (CVE-2026-10000)
A use-after-free vulnerability exists in the password generation popup on Windows, where a compromised renderer can trigger destruction of popup views during a synchronous accessibility event, leading to memory corruption or arbitrary code execution in the browser process.
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 (UAF) vulnerability exists in the password generation popup on Windows. Synchronous re-entrancy during accessibility event firing allows a compromised renderer to trigger the destruction of the popup's views while they are still being accessed by the browser process. This can lead to memory corruption or arbitrary code execution in the unsandboxed browser process.
Affected files:
chrome/browser/ui/views/passwords/password_generation_popup_view_views.ccchrome/browser/ui/views/autofill/popup/popup_base_view.cc
Estimated timestamp from git blame: 2024-01-19
Root Cause Analysis
A potential Use-After-Free (UAF) vulnerability has been identified in PasswordGenerationPopupViewViews::ButtonSelectionUpdated on Windows. The issue stems from caching a raw pointer to a child view across a synchronous re-entrancy point triggered by Windows UI Automation (UIA).
In chrome/browser/ui/views/passwords/password_generation_popup_view_views.cc, the function ButtonSelectionUpdated caches a local pointer to nudge_password_buttons_view_ and calls NotifyAXSelection:
void PasswordGenerationPopupViewViews::ButtonSelectionUpdated() {
// ...
auto* nudge_password_buttons =
static_cast<NudgePasswordButtons*>(nudge_password_buttons_view_);
if (controller_->accept_button_selected()) {
NotifyAXSelection(*nudge_password_buttons->GetAcceptButton()); // Re-entrancy point
} else if (controller_->cancel_button_selected()) {
NotifyAXSelection(*nudge_password_buttons->GetCancelButton());
}
nudge_password_buttons->UpdateFocus(controller_->accept_button_selected()); // Potential UAF
}
The call to NotifyAXSelection reaches PopupBaseView::NotifyAXSelection, which fires accessibility events (such as kMenuStart or kMenuPopupStart). On Windows, these events reach ::UiaRaiseAutomationEvent synchronously. When a UIA client (such as a screen reader) is active, this Windows API call can synchronously pump the message loop (STA pump).
If a compromised renderer has queued a Mojo message that triggers a state update in the popup (e.g., PasswordGenerationDriver::ShowPasswordEditingPopup), that message can be processed during this nested message loop. This results in a call to PasswordGenerationPopupViewViews::UpdateState(), which synchronously destroys the popup's child views:
void PasswordGenerationPopupViewViews::UpdateState() {
password_view_ = nullptr;
nudge_password_buttons_view_ = nullptr; // Nulling member raw_ptr
RemoveAllChildViews(); // Synchronously deletes child views
CreateLayoutAndChildren();
}
When the UIA pump returns, the original ButtonSelectionUpdated execution flow continues. The local pointer nudge_password_buttons now points to freed memory, and the subsequent call to UpdateFocus results in a Use-After-Free. Additionally, PopupBaseView::NotifyAXSelection may dereference a dangling reference to the selected_view after the re-entrant call returns.
MiraclePtr / BRP Protection
MiraclePtr (BRP) does not mitigate this issue because:
- The vulnerability involves a function-local raw pointer (
nudge_password_buttons) and a reference (selected_view). - The
raw_ptrmembernudge_password_buttons_view_is explicitly set tonullptrinUpdateState()immediately before destruction, ensuring the object is not held in the quarantine when it is deleted.
Suggested Potential Reproduction Steps
- Ensure Windows is running with an active UIA client (e.g., Narrator).
- From a compromised renderer, trigger the password generation popup.
- Send a Mojo message to the browser process (e.g.,
ShowPasswordEditingPopup) that would triggerUpdateState(). - Trigger navigation within the popup (e.g., via a synthetic arrow key event) to cause
ButtonSelectionUpdatedto be called. - Observe the browser process dereferencing the dangling pointer in
ButtonSelectionUpdatedafter the synchronous accessibility event firing returns.
Fix Suggestion
Avoid using raw pointers to views across calls that can trigger synchronous re-entrancy. The ButtonSelectionUpdated function should either use base::WeakPtr to track the lifetime of the NudgePasswordButtons view or re-verify the validity of nudge_password_buttons_view_ after the call to NotifyAXSelection. More broadly, firing accessibility events on Windows should be evaluated for re-entrancy safety.
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.
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 function caches a raw pointer to a child view and then calls a function that can synchronously process other messages, which may destroy that view, leaving the pointer dangling.
Impact
This could lead to memory corruption or arbitrary code execution in the unsandboxed browser process, but only if a UIA client is active and the renderer is already compromised.
What the attacker needed
Windows with active UIA client; compromised renderer
The fix
The function should use a weak pointer or re-verify the view's validity after the accessibility event call.
How it was found
- Ensure Windows is running with an active UIA client (e.g., Narrator).
- From a compromised renderer, trigger the password generation popup.
- Send a Mojo message to the browser process that would trigger UpdateState().
- Trigger navigation within the popup to cause ButtonSelectionUpdated to be called.
- Observe the browser process dereferencing the dangling pointer after the synchronous accessibility event firing returns.
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 is a bug where a program keeps using memory after it has been freed, which can let an attacker control what happens next. Here, a malicious webpage could cause the browser to free part of its password popup while still using it, potentially allowing the attacker to run code on the user's computer.
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.