Out of bounds read in ANGLE (CVE-2026-9928)
A heap buffer underflow read occurs in ANGLE's TranslatorHLSL when a function body is pruned to empty but a flag incorrectly indicates a return value, leading to an out-of-bounds read and a virtual call on invalid memory. An attacker could potentially achieve remote code execution in the GPU process on Windows.
Jeff Muizelaar - Mozilla Follow
Originally disclosed on Chrome VRP
- Fix shipped in 49 days
Report description
Heap buffer underflow read with wild virtual call in [@ sh::AddDefaultReturnStatements] via empty function body in TranslatorHLSL
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
https://chromium.googlesource.com/angle/angle
The problem
Please describe the technical details of the vulnerability
The parser sets mFunctionReturnsValue=true when it lexes "return 1;" inside the
if-block, but then addIfElse sees the constant false condition and prunes the entire block.
appendStatement skips the resulting nullptr, leaving the function body empty. The
addFunctionDefinition check passes because mFunctionReturnsValue is already true.
AddDefaultReturnStatements then calls bodyNode->getSequence()->back() without an empty check, reading out of bounds. The out of bounds read is then used a TIntermNode* with a virtual call to TIntermBranch *getAsBranchNode()
See attached for a shader compilation test that crashes.
Our bug for this is https://bugzilla.mozilla.org/show_bug.cgi?id=2029814. It has a bunch more detail that might only be relevant to Firefox but I can add you if you'd like.
Impact analysis
Potentially remote execution in the GPU process on Windows.
The cause
What version of Chrome have you found the security issue in?
Stable
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Remote Code Execution (RCE)
How would you like to be publicly acknowledged for your report?
Jeff Muizelaar - Mozilla
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 parser sets mFunctionReturnsValue to true before dead-code elimination removes the return statement, and AddDefaultReturnStatements does not check for an empty statement list before accessing the last element.
Impact
Potentially remote execution in the GPU process on Windows.
What the attacker needed
Crafted shader
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 shader compiler (ANGLE) processes a specially crafted shader. It mistakenly thinks a function returns a value, but the function body ends up empty. When it tries to add a default return statement, it reads past the end of an empty list, which can crash or be exploited to run 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.