Use after free in Accessibility (CVE-2026-9902)
The browser process accepted negative node IDs from a compromised renderer without validation, causing an ID collision that freed a BrowserAccessibility object while a raw pointer to it was still in use. An attacker with a compromised renderer could then reclaim that memory and hijack a virtual call, potentially escaping the sandbox.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 58 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer can send an accessibility tree update with negative node IDs, which are meant to be reserved for internal browser nodes. This causes an ID collision that triggers a Use-After-Free in the Browser process during ARIA notification processing, leading to a potential Sandbox Escape.
Affected files:
ui/accessibility/platform/browser_accessibility_manager.ccui/accessibility/mojom/ax_node_data_mojom_traits.ccui/accessibility/ax_tree.ccui/accessibility/platform/browser_accessibility_manager_auralinux.ccui/accessibility/platform/browser_accessibility.cc
Estimated timestamp from git blame: 2025-10-22
Root Cause
In Chromium's accessibility system, negative node IDs are reserved for internal nodes generated by the Browser process (e.g., extra announcement nodes for ARIA notifications). However, when the Browser process deserializes an AXTreeUpdate from the renderer, it blindly accepts the provided node IDs without validation. Specifically, in ui/accessibility/mojom/ax_node_data_mojom_traits.cc, StructTraits::Read executes out->id = data.id(); without enforcing that the ID is strictly positive.
Vulnerability Mechanism and Proposed Attack Steps
An attacker with a compromised renderer can exploit this missing validation to achieve Sandbox Escape Remote Code Execution (RCE) in the Browser process. The suggested steps to trigger the vulnerability are:
- Craft Malicious Node: The attacker sends an
AXTreeUpdatevia theRenderAccessibilityHost::HandleAXEventsMojo IPC. This update creates a node explicitly assigned an ID of-1. - Attach Announcements: The malicious node is given a
kAriaNotificationAnnouncementsattribute containing an array of two strings. The first string is sized to exactly match the memory bucket of aBrowserAccessibilityobject (to serve as a heap grooming payload), while the second string triggers the subsequent logic. - Store the Wrapper: The Browser process creates the node and stores its
BrowserAccessibilitywrapper inid_wrapper_map_[-1]. - Trigger Event Loop: The announcements trigger an
ARIA_NOTIFICATIONS_POSTEDevent.BrowserAccessibilityManager::FireGeneratedEventhandles this event and fetches a raw pointer to the attacker's node wrapper:auto* wrapper = GetFromAXNode(node);. - First Iteration & Node Collision:
FireGeneratedEventiterates over the announcements. On the first iteration (i = 0), it callsFireAriaNotificationEvent(wrapper, announcements[0], ...). On AuraLinux (with ATK < 2.50.0), this attempts to fetch an "extra announcement node". Because they don't exist yet for this tree,AXTree::CreateExtraAnnouncementNodes()is invoked. - UAF Trigger:
CreateExtraAnnouncementNodesgenerates an internal node usingGetNextNegativeInternalNodeId(), which assigns it the ID-1. The browser then callsOnNodeCreatedfor this internal node, executingid_wrapper_map_[-1] = CreateBrowserAccessibility(node);. This overwrites the dictionary entry, destroying the attacker'sBrowserAccessibilityobject. - Bypass MiraclePtr: Because
wrapperis a stack-allocated raw pointer (auto*), no MiraclePtr (BRP) reference count is incremented. The object's memory is immediately freed and made available for reallocation. - Heap Grooming: During the remainder of the first iteration, synchronous ATK notification processing allocates the attacker's first announcement string. This payload reclaims the newly freed
BrowserAccessibilityobject in memory, replacing its vtable andmanager_pointer. - RCE Execution: On the second loop iteration (
i = 1),FireAriaNotificationEvent(wrapper, announcements[1], ...)is called. The danglingwrapperpointer is dereferenced, leading to a hijacked virtual method call (ShouldExposeExtraAnnouncementNodes) on the attacker-controlledmanager_pointer.
Proposed Fix
Enforce that all AXNodeIDs originating from the renderer are strictly positive. Add validation to reject data.id() <= 0 in StructTraits<ax::mojom::AXNodeDataDataView, ui::AXNodeData>::Read. Similar validation should also be considered for root_id and node_id_to_clear in AXTreeUpdate deserialization.
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
Results from 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
The browser process deserialised AXTreeUpdate from the renderer without checking that node IDs were strictly positive, allowing a renderer-supplied negative ID to collide with an internal node ID.
Impact
An attacker with a compromised renderer could potentially achieve sandbox escape and remote code execution in the browser process, though the report notes this is a potential issue and the exploit depends on specific platform conditions.
What the attacker needed
Compromised renderer; AuraLinux with ATK < 2.50.0
The fix
The fix should enforce that all AXNodeIDs from the renderer are strictly positive by rejecting data.id() <= 0 during deserialisation, and similar validation should be considered for root_id and node_id_to_clear.
How it was found
- Send an AXTreeUpdate over Mojo IPC that creates a node with ID -1.
- Attach an ARIA notification announcements attribute with two strings to that node.
- The browser stores the node's wrapper in id_wrapper_map_[-1].
- The announcements trigger an event that fetches a raw pointer to the wrapper.
- During the first iteration, an internal extra announcement node is created with the same ID -1, overwriting the map entry and freeing the attacker's wrapper.
- The first announcement string reclaims the freed memory, and the second iteration dereferences the dangling pointer to hijack a virtual call.
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 renderer is the part of the browser that draws web pages and is kept in a sandbox so a hacked page cannot harm the rest of the computer. The browser process trusted a number sent by the renderer that should only be used internally, which made it delete an object while still holding a pointer to it. If an attacker can control what fills that freed memory, they might run code outside the 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.