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

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

A use-after-free vulnerability exists in the Windows accessibility subsystem of the browser, where a compromised renderer can trigger a re-entrant IPC call during a synchronous COM event, causing the event map to be cleared while an outer loop still holds iterators to freed memory. This could allow an attacker to escape the renderer sandbox and achieve arbitrary code execution in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 51 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A potential heap use-after-free vulnerability exists in BrowserAccessibilityManager on Windows due to iterator invalidation during synchronous accessibility event firing. If a compromised renderer triggers a re-entrant IPC call during a COM nested message loop, the underlying event map is cleared, leaving the outer loop's iterators pointing to freed memory. This freed memory is not protected by MiraclePtr, potentially allowing an attacker to escape the renderer sandbox.

Affected files:

  • ui/accessibility/platform/browser_accessibility_manager.cc
  • ui/accessibility/platform/browser_accessibility_manager_win.cc
  • ui/accessibility/ax_event_generator.h

Estimated timestamp from git blame: 2025-05-26

Description

A potential Heap-Use-After-Free (UAF) vulnerability exists in the browser process's accessibility subsystem on Windows. Specifically, BrowserAccessibilityManager::OnAccessibilityEvents iterates over generated events using a standard library iterator that becomes invalidated if re-entry occurs. Re-entry can happen because firing accessibility events on Windows involves synchronous COM calls that can spin a nested message loop. A compromised renderer process can exploit this window to trigger a re-entrant IPC, clearing the underlying event map and leaving the outer loop's iterators pointing to freed heap memory.

Technical Details

In ui/accessibility/platform/browser_accessibility_manager.cc, the OnAccessibilityEvents method processes generated events in a range-based for loop:

C++
587:   for (const auto& targeted_event : event_generator()) {
588:     BrowserAccessibility* event_target = GetFromID(targeted_event.node_id);
...  
599:     if (focus && focus != event_target && focus->IsDescendantOf(event_target)) {
600:       FireGeneratedEvent(targeted_event.event_params->event,
601:                          event_target->node());
602:     } else {
603:       deferred_events.push_back(targeted_event);
604:     }
605:   }

The event_generator() returns an AXEventGenerator object. Its begin() method returns an AXEventGenerator::Iterator, which internally maintains std::map::const_iterator and std::set::const_iterator pointing to the dynamically allocated nodes of the tree_events_ map.

On Windows, the virtual FireGeneratedEvent method is implemented in BrowserAccessibilityManagerWin::FireGeneratedEvent. Depending on the event type, this method synchronously calls Windows accessibility APIs such as ::NotifyWinEvent or UIA COM methods (e.g., ::UiaRaiseAutomationEvent).

If an Assistive Technology (AT) client is active, these COM calls can trigger a nested message loop on the browser's UI thread (which is a Single-Threaded Apartment) to prevent cross-process deadlocks while waiting for the COM call to complete.

During this nested message loop, the UI thread continues to pump messages. If a compromised renderer sends a new blink.mojom.RenderAccessibilityHost::HandleAXEvents IPC, the task is dequeued and executed, leading to a re-entrant call to BrowserAccessibilityManager::OnAccessibilityEvents.

The re-entrant call processes its own events and subsequently reaches line 638:

C++
638:   event_generator().ClearEvents();

AXEventGenerator::ClearEvents() calls tree_events_.clear(). This destroys the std::map and explicitly frees all its internal red-black tree nodes (_Rb_tree_node) and associated std::set data.

When the re-entrant call and the nested message loop finish, the original Windows COM call returns, and execution unwinds back to the original for loop at line 587. The loop implicitly calls operator++() on its AXEventGenerator::Iterator. Because the iterator relies on raw std::map node pointers, it accesses the memory that was just freed, resulting in a use-after-free.

Mitigation Bypasses

  1. MiraclePtr (BackupRefPtr): The primary UAF occurs during the traversal of standard library iterators (std::map::const_iterator). These iterators use raw pointers internally (e.g., node->next), which are not protected by MiraclePtr. Furthermore, the TargetedEvent struct explicitly marks its reference as raw_ref<const EventParams, DanglingUntriaged>, opting out of BRP protection.
  2. DCHECKs: BrowserAccessibilityManager contains a boolean flag in_on_accessibility_events_ intended to catch re-entrancy, but it is strictly guarded by #if DCHECK_IS_ON(). It does not prevent re-entrancy in release builds.

Potential Attack Steps

(Note: The following steps describe a theoretical attack scenario, as the AI agent has not executed a live proof-of-concept).

  1. Prerequisite: The attacker compromises a renderer process. An assistive technology (like a screen reader) is active, enabling the accessibility tree and Windows COM event routing.
  2. Trigger IPC: The compromised renderer sends an AXTreeUpdate via the HandleAXEvents Mojo IPC, crafting it so that a target node contains the currently focused node as a descendant (satisfying the condition at line 599).
  3. Nested Message Loop: The browser UI thread enters FireGeneratedEvent and calls a synchronous Windows API (e.g., ::NotifyWinEvent), spinning up a nested message loop.
  4. Re-entrant IPC: While the UI thread is in the nested loop, the renderer sends a second, distinct HandleAXEvents IPC.
  5. Free Memory: The nested loop dequeues the second IPC, re-enters OnAccessibilityEvents, and eventually calls ClearEvents(), freeing the std::map nodes used by the first invocation's iterator.
  6. Heap Spray / Reclaim: The attacker uses parallel WebWorkers or other IPC channels to spray the browser process heap, reclaiming the freed _Rb_tree_node memory with controlled data.
  7. Exploitation: The original COM call returns, and the outer loop calls operator++. The iterator traverses the attacker's forged heap data, granting the attacker an arbitrary memory read/write primitive, which can be escalated to arbitrary code execution (Browser RCE / Sandbox Escape).

Evaluated with Chrome root at commit: 9760e6c70cd33a320713361f17c6dcca85648c0f


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. Please feel free to reach out to me if you have concerns or feedback.

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

Impact

This could allow an attacker to escape the renderer sandbox and achieve arbitrary code execution in the browser process, though the report notes the attack is theoretical and has not been demonstrated with a live proof-of-concept.

What the attacker needed

Compromised renderer process; assistive technology active; Windows OS

The fix

The fix should ensure that the event iterator remains valid across re-entrant calls, for example by deferring event clearing or using a re-entrancy guard that is active in release builds.

How it was found

  1. Compromise a renderer process and ensure an assistive technology is active.
  2. Send an AXTreeUpdate via HandleAXEvents IPC with a node that has the focused node as a descendant.
  3. The browser UI thread enters FireGeneratedEvent and calls a synchronous Windows API, spinning a nested message loop.
  4. While in the nested loop, send a second HandleAXEvents IPC.
  5. The nested loop processes the second IPC, re-enters OnAccessibilityEvents, and calls ClearEvents(), freeing the map nodes.
  6. Spray the heap to reclaim the freed memory with controlled data, then the outer loop's iterator uses the forged data.

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 screen reader is active, the browser sends accessibility events using Windows system calls that can pause and let other messages be processed. A malicious webpage could abuse this pause to send a second message that frees memory still being used by the first message, leading to a use-after-free bug that might let the attacker run code outside the browser's sandbox.

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.