Type confusion in Accessibility (CVE-2026-79175)
A logic flaw in Windows accessibility tree updates leaves a stale AXUniqueId in a parent node's hypertext cache. By wrapping the 32-bit ID counter, a compromised renderer can cause an out-of-bounds pointer cast and potential virtual method call on attacker-controlled heap data, leading to a browser process sandbox escape.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
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 security team.
Overview: A logic flaw in Windows accessibility tree updates can leave a stale AXUniqueId in a parent node's hypertext cache. By forcing the 32-bit ID counter to wrap around, a compromised renderer can cause the stale ID to point to a different internal UI node. This leads to an out-of-bounds pointer cast and a potential virtual method call on attacker-controlled heap data, resulting in a browser process sandbox escape.
Affected files:
ui/accessibility/platform/browser_accessibility_manager.ccui/accessibility/platform/browser_accessibility_com_win.ccui/accessibility/ax_tree.ccui/accessibility/platform/ax_unique_id.cc
Estimated timestamp from git blame: 2023-08-08
Summary
A potential type confusion vulnerability exists in the Windows accessibility subsystem. A logic flaw during accessibility tree updates can cause a parent node to retain a stale AXUniqueId in its hypertext cache. A compromised renderer can exploit this by wrapping the 32-bit global AXUniqueId counter, causing the stale ID to reference a newly allocated, incompatible internal UI node (AXPlatformNodeWin). When queried by a screen reader, an unsafe cast shifts the pointer out-of-bounds, potentially allowing Arbitrary Code Execution (RCE) in the unsandboxed Browser process.
Root Cause Analysis
The vulnerability stems from two interlocking failures when processing AXTreeUpdate IPCs:
- Incomplete
changesList Population: InAXTree::Unserialize(ui/accessibility/ax_tree.cc), if an ignored nodeIloses an unignored childY, its unignored parentXhas its unignored cache updated. However,Xis intentionally omitted from thechangeslist because of the checkif (unignored_ancestor->id() != node_id). - Skipped Parent Update: In
BrowserAccessibilityManager::CollectChangedNodesAndParentsForAtomicUpdate, nodeIis processed, but its parentXis explicitly skipped ifI's role iskInlineTextBox.
Consequently, X's hypertext_.hyperlinks cache is never cleared and retains the now-freed AXUniqueId of Y.
Later, when BrowserAccessibilityComWin::get_hyperlink is called, it retrieves the node using the stale ID. If the ID was reassigned to a Views UI node (AXPlatformNodeWin), it performs an unsafe downcast: auto* link = static_cast<BrowserAccessibilityComWin*>(node). It then casts this to an IAccessibleHyperlink*. Because BrowserAccessibilityComWin utilizes multiple inheritance and inherits from IAccessibleHyperlink while AXPlatformNodeWin does not, the C++ compiler applies a vtable offset that shifts the pointer completely out-of-bounds of the AXPlatformNodeWin object. A subsequent virtual method call on this interface uses adjacent heap data.
Potential Steps to Trigger
(Note: Our tooling agent cannot run code; these are suggested steps based on static analysis).
- Assume the victim is using an IA2 screen reader (e.g., NVDA) on Windows.
- From a compromised renderer, send an
AXTreeUpdateestablishing an unignored parentX, an ignored childI, and an unignored grandchildY.XcachesY'sAXUniqueId. - Send a second
AXTreeUpdatethat changesI's role tokInlineTextBox, removes itsignoredstate, and deletesY. - Due to the logic flaws,
X's hypertext cache is not invalidated. - Rapidly create and delete dummy accessibility nodes via IPC to increment the global
AXUniqueIdcounter ~2.1 billion times until it wraps around toY's freed ID. - Trigger a browser UI action that allocates a new Views node (
AXPlatformNodeWin), which receives the stale ID. - Use heap spraying techniques to control the memory immediately following this
AXPlatformNodeWinallocation. - Trigger an accessibility query on
X(e.g., via focus). The screen reader callsget_hyperlink, receives the out-of-bounds pointer, and invokes a virtual method, hijacking control flow.
Suggested Fix
- Safe Casting: In
BrowserAccessibilityComWin::get_hyperlink, verify the node type before casting. Check if the node belongs to web content beforestatic_casting toBrowserAccessibilityComWin*. - Invalidation Logic: Re-evaluate the
kInlineTextBoxoptimization inCollectChangedNodesAndParentsForAtomicUpdateto ensure it doesn't leave stale IDs in a parent's hypertext cache. Additionally, ensureAXTree::Unserializeproperly flags parents for updates when their logical unignored child list changes.
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
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 combination of an incomplete changes list in AXTree::Unserialize and a skipped parent update in CollectChangedNodesAndParentsForAtomicUpdate leaves a stale AXUniqueId in a parent's hypertext cache, which later causes an unsafe downcast when the ID is reused.
Impact
A compromised renderer could potentially achieve arbitrary code execution in the unsandboxed browser process, leading to a sandbox escape.
What the attacker needed
Victim uses an IA2 screen reader; compromised renderer; Windows OS
The fix
The fix should verify the node type before casting in get_hyperlink and ensure that parent nodes are properly flagged for updates when their unignored child list changes.
How it was found
- Assume the victim is using an IA2 screen reader (e.g., NVDA) on Windows.
- From a compromised renderer, send an AXTreeUpdate establishing an unignored parent X, an ignored child I, and an unignored grandchild Y. X caches Y's AXUniqueId.
- Send a second AXTreeUpdate that changes I's role to kInlineTextBox, removes its ignored state, and deletes Y.
- Due to the logic flaws, X's hypertext cache is not invalidated.
- Rapidly create and delete dummy accessibility nodes via IPC to increment the global AXUniqueId counter ~2.1 billion times until it wraps around to Y's freed ID.
- Trigger a browser UI action that allocates a new Views node (AXPlatformNodeWin), which receives the stale ID.
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.
This report describes a bug in how a web browser (Chrome) handles accessibility features for users with disabilities. A malicious website could exploit a mistake in the browser's internal bookkeeping to trick it into using a wrong memory address, potentially letting the attacker run code outside the browser's security 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.