Use after free in Autofill (CVE-2026-11636)
A use-after-free was identified in the desktop Autofill popup on Windows: firing native accessibility events synchronously pumps the COM message loop, allowing a queued task to delete the row view while a bare reference to it is still held. An attacker could potentially trigger this by causing suggestions to update during that pump, leading to a crash or memory corruption.
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 desktop Autofill popup UI on Windows. When updating the selected cell, firing native accessibility events synchronously pumps the STA COM message loop. If a queued UI thread task executes during this pump and updates the suggestions, the underlying row view is deleted, leading to a use-after-free when the function resumes execution.
Affected files:
chrome/browser/ui/views/autofill/popup/popup_view_views.ccchrome/browser/ui/views/autofill/popup/popup_row_view.cc
Estimated timestamp from git blame: 2023-02-16
Description
A potential Use-After-Free (UAF) vulnerability has been identified in PopupViewViews::SetSelectedCell (located in chrome/browser/ui/views/autofill/popup/popup_view_views.cc) on Windows.
When updating the selected cell of the Autofill popup, the code obtains a bare C++ reference to the target PopupRowView on the stack. It then invokes SetSelectedCell on this row, which eventually calls NotifyAXSelection to fire native Windows accessibility (MSAA/UIA) events. Firing these native events on Windows synchronously pumps the Single-Threaded Apartment (STA) COM message loop.
If a queued UI thread task (such as an IPC task from the renderer containing updated suggestions) is processed during this synchronous pump, it can invoke OnSuggestionsChanged(). This synchronously invokes CreateSuggestionViews(), which clears and deletes all existing child row views via RemoveAllChildViews(). When the nested event pump returns, the stack reference to the deleted PopupRowView is dereferenced to call ScrollViewToVisible(), resulting in a Use-After-Free on a bare reference that is not protected by MiraclePtr/BackupRefPtr.
Potential Step-by-Step Trigger Sequence
- User Interaction: A Windows user with an active accessibility utility (such as Narrator or NVDA) triggers an Autofill popup and navigates it (e.g., using keyboard arrow keys).
- Selection Initiation:
PopupViewViews::SetSelectedCellis invoked, and retrieves a bare reference to the row:PopupRowView& new_selected_row = GetPopupRowViewAt(...). - Event Dispatching:
new_selected_row.SetSelectedCell(...)is called, which callsNotifyAXSelectionto fire native accessibility events. - STA Message Pump: The Windows accessibility subsystem synchronously pumps the message loop on the UI thread to dispatch the COM messages.
- Re-entrant Deletion: A queued UI task runs re-entrantly during the pump, executing
OnSuggestionsChanged()and deleting all existingPopupRowViewelements. - Use-After-Free: After the pump completes,
new_selected_row.ScrollViewToVisible()is executed on the deleted reference, initiating a virtual method dispatch via the deleted object's vtable.
Note: These steps represent a potential execution flow based on static analysis; our tooling does not currently have the capability to run code or execute a live proof of concept.
Suggested Fix
To prevent this re-entrant Use-After-Free, track the lifetime of the new_selected_row view across synchronous accessibility calls using a views::ViewTracker. If the view is destroyed during the call, execution should return early:
// chrome/browser/ui/views/autofill/popup/popup_view_views.cc
// Wrap the view in a tracker to detect re-entrant destruction
views::ViewTracker row_tracker(&new_selected_row);
new_selected_row.SetSelectedCell(cell_index->second);
// Check if the row view was destroyed during the synchronous call
if (!row_tracker.view()) {
return;
}
new_selected_row.ScrollViewToVisible();
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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
Likely the code holds a bare C++ reference to a PopupRowView across a call that can synchronously pump the Windows message loop, without tracking whether the view is destroyed re-entrantly.
Impact
The use-after-free could lead to a crash or memory corruption, but the report is based on static analysis and no live proof of concept was executed.
What the attacker needed
Windows desktop Chrome; an active accessibility utility; user opens and navigates the Autofill popup; a queued task updates suggestions during the pump
The fix
The report suggests tracking the row view's lifetime with a views::ViewTracker and returning early if the view was destroyed during the synchronous accessibility call.
How it was found
- A Windows user with an accessibility utility active opens the Autofill popup and navigates it with the keyboard.
- SetSelectedCell obtains a bare reference to the target row view.
- SetSelectedCell on the row fires native accessibility events.
- The Windows accessibility subsystem synchronously pumps the UI thread message loop.
- A queued task runs OnSuggestionsChanged, which deletes all existing row views.
- After the pump returns, ScrollViewToVisible is called on the deleted row reference.
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 pointer to an object after that object has been deleted, then tries to use it. Here, showing an accessibility event on Windows lets other queued work run in the middle of a function, and that work can delete the row the function is still holding a reference to. The report is based on reading the code, not on running an exploit.
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.