Use after free in Accessibility (CVE-2026-7344)
A use-after-free exists in the Windows accessibility code where a node can be destroyed during a synchronous COM call and then added to a global set, leaving a dangling pointer. An attacker who compromises a renderer could potentially trigger this to achieve a browser-process sandbox escape.
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 without the Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.
Overview: A potential Use-After-Free exists in the Windows accessibility implementation where a node can be destroyed during a synchronous COM call and subsequently added to a global set. This results in a permanently dangling pointer that is later dereferenced via virtual function calls. The issue can potentially be triggered by a compromised renderer to achieve a browser-process sandbox escape.
Affected files:
ui/accessibility/platform/ax_platform_node_win.ccui/accessibility/platform/ax_platform_node_base.hui/accessibility/platform/ax_platform_node.h
Estimated timestamp from git blame: 2026-02-24
Summary
A potential Use-After-Free (UAF) vulnerability exists in the browser process on Windows within the AXPlatformNodeWin accessibility implementation. The issue is caused by a deterministic race condition during the firing of alert events. A node can be destroyed during a synchronous COM/Win32 call before it is added to a global tracking set. This results in a permanently dangling pointer in a global container, which is later dereferenced via virtual function calls. Because the container stores raw pointers, MiraclePtr does not mitigate the issue.
Vulnerability Details
- Reentrant Event Notification: In
ui/accessibility/platform/ax_platform_node_win.cc,NotifyAccessibilityEvent(kAlert)fires events to the OS using::NotifyWinEvent(line 760) and::UiaRaiseAutomationEvent(line 789). As documented in Chromium, firing these events can cause UIA to call back into Chromium's APIs, leading to synchronous reentrancy and pumping the thread's Single-Threaded Apartment (STA) message loop. - The Race Condition: If a compromised renderer queues an IPC to close the UI element (e.g.,
window.close()) immediately after triggering an alert event, the IPC can be processed during the reentrant message pump inside::UiaRaiseAutomationEvent. - Premature Destruction: Processing the IPC destroys the
views::View, which in turn destroys itsViewAXPlatformNodeDelegate. The delegate owns theAXPlatformNodevia aunique_ptr, which callsAXPlatformNodeWin::Destroy()(line 685). - Missed Removal: The first action in
Destroy()isRemoveAlertTarget(). However, because execution is still paused insideNotifyAccessibilityEventand hasn't reached the addition step, the node is not in the set, and the removal is a no-op. - Adding the Dangling Pointer: Once the synchronous OS call returns,
NotifyAccessibilityEventresumes. At line 795, it callsAddAlertTarget(), which blindly inserts the now-freed (or soon-to-be-freed)thispointer into the process-globalabsl::flat_hash_set<AXPlatformNodeWin*>returned byGetAlertTargets(). - Permanent Dangling Pointer: Crucially, the destructor
~AXPlatformNodeWin()(lines 399-405) does not callRemoveAlertTarget(). The pointer remains in the set permanently. - The Dereference: The dangling pointer is dereferenced when an assistive technology queries the "alerts" relation via
IAccessible2_2::get_relationTargetsOfType(L"alerts"). This method iterates overGetAlertTargets()(line 2147) and callsIsDescendant(target), which invokes the pure virtual methodtarget->IsDescendantOf(this). This results in a vtable fetch and an indirect call on freed memory.
Potential Exploitation Steps
(Note: These are suggested steps based on code analysis; our tooling has not executed a working proof-of-concept.)
- An attacker compromises a renderer process.
- The attacker triggers a UI element in the browser process that fires a
kAlertevent (e.g., a Geolocation permission prompt). - Immediately after, the attacker sends an IPC to close the prompt.
- The
kAlertevent triggers the synchronous::UiaRaiseAutomationEventcall, which pumps the message loop, processes the close IPC, and destroys the node. - The node's raw pointer is leaked into the global
GetAlertTargetsset. - The attacker grooms the browser process heap to control the vtable of the reclaimed object.
- The attacker triggers a query for the "alerts" relation, causing a virtual call on the dangling pointer, leading to arbitrary code execution in the browser process (sandbox escape).
Suggested Fix
There are two main ways to fix this:
- Update
AddAlertTarget()orNotifyAccessibilityEventto check if the node has been destroyed before adding it to the set (e.g.,if (event_type == ax::mojom::Event::kAlert && !IsDestroyed())). - Modify the destructor
AXPlatformNodeWin::~AXPlatformNodeWin()to ensureRemoveAlertTarget()is called when the object memory is actually freed.
Evaluated with Chrome root at commit: 661452647ddb2827305122ff3273bd5dea403f09
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. 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 adds the node to a global set after a synchronous call that can re-enter and destroy the node, and the destructor does not remove it from that set.
Impact
A compromised renderer could potentially escape the sandbox and achieve arbitrary code execution in the browser process, though the report notes no working proof-of-concept has been executed.
What the attacker needed
Compromised renderer process; Windows accessibility features active
The fix
The fix should either check whether the node has been destroyed before adding it to the set, or ensure the destructor removes the node from the set.
How it was found
- Compromise a renderer process.
- Trigger a UI element in the browser process that fires a kAlert event, such as a Geolocation permission prompt.
- Immediately send an IPC to close the prompt.
- The kAlert event causes a synchronous call that pumps the message loop, processes the close IPC, and destroys the node.
- The node's raw pointer is added to the global alert targets set.
- Groom the browser process heap to control the vtable of the reclaimed object.
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 it has already freed, and later uses that reference as if the memory were still valid. Here, a browser component for accessibility on Windows can free an object during a callback, then store a pointer to that freed object in a global list. Later, when assistive technology asks for related items, the browser follows the stale pointer and may crash or run attacker-controlled 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.