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

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.cc
  • ui/accessibility/mojom/ax_node_data_mojom_traits.cc
  • ui/accessibility/ax_tree.cc
  • ui/accessibility/platform/browser_accessibility_manager_auralinux.cc
  • ui/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:

  1. Craft Malicious Node: The attacker sends an AXTreeUpdate via the RenderAccessibilityHost::HandleAXEvents Mojo IPC. This update creates a node explicitly assigned an ID of -1.
  2. Attach Announcements: The malicious node is given a kAriaNotificationAnnouncements attribute containing an array of two strings. The first string is sized to exactly match the memory bucket of a BrowserAccessibility object (to serve as a heap grooming payload), while the second string triggers the subsequent logic.
  3. Store the Wrapper: The Browser process creates the node and stores its BrowserAccessibility wrapper in id_wrapper_map_[-1].
  4. Trigger Event Loop: The announcements trigger an ARIA_NOTIFICATIONS_POSTED event. BrowserAccessibilityManager::FireGeneratedEvent handles this event and fetches a raw pointer to the attacker's node wrapper: auto* wrapper = GetFromAXNode(node);.
  5. First Iteration & Node Collision: FireGeneratedEvent iterates over the announcements. On the first iteration (i = 0), it calls FireAriaNotificationEvent(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.
  6. UAF Trigger: CreateExtraAnnouncementNodes generates an internal node using GetNextNegativeInternalNodeId(), which assigns it the ID -1. The browser then calls OnNodeCreated for this internal node, executing id_wrapper_map_[-1] = CreateBrowserAccessibility(node);. This overwrites the dictionary entry, destroying the attacker's BrowserAccessibility object.
  7. Bypass MiraclePtr: Because wrapper is 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.
  8. 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 BrowserAccessibility object in memory, replacing its vtable and manager_ pointer.
  9. RCE Execution: On the second loop iteration (i = 1), FireAriaNotificationEvent(wrapper, announcements[1], ...) is called. The dangling wrapper pointer is dereferenced, leading to a hijacked virtual method call (ShouldExposeExtraAnnouncementNodes) on the attacker-controlled manager_ 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.

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

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

  1. Send an AXTreeUpdate over Mojo IPC that creates a node with ID -1.
  2. Attach an ARIA notification announcements attribute with two strings to that node.
  3. The browser stores the node's wrapper in id_wrapper_map_[-1].
  4. The announcements trigger an event that fetches a raw pointer to the wrapper.
  5. 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.
  6. 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.

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.