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

Inappropriate implementation in ANGLE (CVE-2026-13859)

A crafted GLSL ES 3.0 shader causes ANGLE's compiler frontend to produce an internally inconsistent AST with dangling variable references after a tree transformation pass. On the D3D and Metal backends the AST validation check is disabled, so ANGLE reports successful compilation and emits malformed shader code containing undeclared variables to the platform GPU driver compiler.

Jason Villaluna Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 4 months

Report description

A crafted GLSL ES 3.0 shader triggers an AST transformation bug in ANGLE's shared compiler frontend that produces an internally inconsistent AST (dangling variable references).


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

Summary

A crafted GLSL ES 3.0 shader triggers an AST transformation bug in ANGLE's shared compiler frontend that produces an internally inconsistent AST (dangling variable references). On the D3D (Windows) and Metal (macOS) backends, ANGLE's validateAST safety check is explicitly disabled (false), so the corrupted AST passes through uncaught. ANGLE reports successful compilation and emits malformed output code containing undeclared variable references, which is then handed directly to the platform GPU driver shader compiler (FXC/DXC or Metal shader compiler). This violates ANGLE's role as the security boundary between untrusted WebGL content and GPU drivers.

Affected Platforms

Platform Backend validateAST Impact
Windows D3D9/D3D11 false Malformed HLSL reaches FXC/DXC
macOS Metal false Malformed MSL reaches Metal compiler
Linux GL true Caught by validation (no bypass)
Android GL true Caught by validation (no bypass)

Reproducer

GLSL ES 3.0 shader (262 bytes):

GLSL
#version 300 es
precision mediump float;
int u0mode; out vec4 fragOut;
void main(){
  vec4 c = vec4(0);
  for(int i=0;i<0;i++){ if(0==u0mode){break;} }
  switch(u0mode){ case 0: case 1: ; }
  switch(u0mode){
    case 0: break;
      vec4 c = vec4(0);
      for(int i=0;i<0;i++) fragOut.g=.0;
    default: c.a=.0;
  }
}

Trigger: vec4 c is declared at function scope, then re-declared (shadowed) inside a switch/case block. Multiple switch statements with empty cases cause a tree transformation pass to drop the outer c declaration while retaining references to it, creating a dangling symbol reference in the AST.

Root Cause

  1. Shader declares vec4 c at function scope
  2. Inside a switch block, vec4 c is re-declared (shadowing)
  3. A tree transformation pass (SeparateDeclarations, PruneEmptyCases, or PruneNoOps) processes the repeated switch blocks
  4. The transformation drops the outer c declaration but leaves references to it in the default: case — AST now contains symbol ID 3006 referencing a removed declaration (symbol ID 3004)
  5. On GL/Vulkan backends, validateAST catches this (ERROR: 'c' : Found reference to undeclared or inconsistently transformed variable). On D3D/Metal, validateAST is false — the corruption passes through silently

Location: src/compiler/translator/Compiler.cpp:774 (validation gate) D3D disable: src/libANGLE/renderer/d3d/ShaderD3D.cpp:338 (validateAST = false) Metal disable: src/libANGLE/renderer/metal/ShaderMtl.mm:63 (validateAST = false)

Malformed Output Evidence

ANGLE produces the following output while reporting compilation success:

HLSL (Windows D3D path):

HLSL
switch (_u0mode) {
  case (0):
    break;
  default:
    (_c3006.w = 0.0);    // UNDECLARED - variable declaration was dropped
    break;
}

ESSL / GLSL 4.50 output:

GLSL
switch (_uu0mode) {
  case (0):
    break;
  default:
    (_uc.w = 0.0);       // UNDECLARED - same corruption
}

In all output formats, ANGLE returns compilation success while emitting code that references a variable (_c3006 / _uc) that is never declared.

Impact analysis

Any web page can exploit this without user interaction. By serving a crafted WebGL shader, an attacker bypasses ANGLE's shader validation boundary on Windows (D3D) and macOS (Metal), where the validateAST safety check is disabled. ANGLE reports successful compilation and emits malformed output code containing undeclared variable references, which is then passed directly to the platform GPU driver shader compiler (FXC/DXC on Windows, Metal compiler on macOS).

The attacker gains the ability to deliver structurally invalid shader code to GPU driver compilers that assume their input has been validated. The GPU process runs with broader privileges than the sandboxed renderer process. I believe the GPU driver shader compiler represents a separate security boundary, any vulnerability in how it handles malformed input would be a distinct bug requiring its own fix. ANGLE's role is to ensure malformed shaders never reach that boundary in the first place.


The cause

What version of Chrome have you found the security issue in?

Tested on Chrome 145.0.7632.76 (Official Build) (64-bit) (cohort: Stable) (Windows)

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Exploit Mitigation Bypass

How would you like to be publicly acknowledged for your report?

Jason Villaluna

The original report as published on the Chromium issue tracker, by Jason Villaluna. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

ANGLE is the translation layer that sits between untrusted WebGL content and the platform GPU driver. It takes GLSL ES shaders from web pages, runs them through a shared compiler frontend, and emits backend-specific code: HLSL for the D3D path on Windows, MSL for Metal on macOS, and GLSL for the GL paths on Linux and Android. Because the output is handed to driver compilers that assume their input has already been validated, ANGLE is meant to act as the security boundary between the browser and those drivers.

This report describes a crafted GLSL ES 3.0 shader that drives an AST transformation bug in that shared frontend. The result is an internally inconsistent AST with dangling variable references. On the backends where ANGLE's validateAST safety check is disabled, the corrupted AST is not caught, ANGLE reports successful compilation, and malformed output code containing undeclared variable references is passed straight to the platform driver compiler.

The issue was reported through the Chrome Vulnerability Reward Program, which covers security issues affecting the Chrome browser, against the ANGLE repository at https://chromium.googlesource.com/angle/angle/. It was tested on Chrome 145.0.7632.76 (Official Build) (64-bit) (cohort: Stable) on Windows. It is not related to a crash, and the reporter classified it as an Exploit Mitigation Bypass.

Setup

The reporter tested on Windows, where the D3D9/D3D11 backends are used. The relevant configuration is the validateAST flag per backend:

Platform Backend validateAST Impact
Windows D3D9/D3D11 false Malformed HLSL reaches FXC/DXC
macOS Metal false Malformed MSL reaches Metal compiler
Linux GL true Caught by validation (no bypass)
Android GL true Caught by validation (no bypass)

No accounts, roles or special tooling are involved: the trigger is a shader served to a browser, and the reporter's evidence is the compiler output ANGLE produces for it.

Finding it

A particular combination of declarations and control flow causes a tree transformation pass in ANGLE's shared compiler frontend to produce an AST that is internally inconsistent. The shader declares a variable at function scope, shadows it inside a switch/case block, and includes multiple switch statements with empty cases. Under those conditions a transformation pass drops the outer declaration while leaving references to it in place, so the AST ends up with a symbol reference pointing at a declaration that no longer exists.

What makes this a security finding rather than a compiler quality issue is where the inconsistency is caught. On the GL backends, validateAST is enabled and rejects the corrupted tree. On D3D and Metal, the check is explicitly disabled, so the corrupted AST passes through uncaught, compilation is reported as successful, and malformed output code is emitted.

Exploitation

Step 1: Craft the shader

The reproducer is a 262-byte GLSL ES 3.0 shader:

GLSL
#version 300 es
precision mediump float;
int u0mode; out vec4 fragOut;
void main(){
  vec4 c = vec4(0);
  for(int i=0;i<0;i++){ if(0==u0mode){break;} }
  switch(u0mode){ case 0: case 1: ; }
  switch(u0mode){
    case 0: break;
      vec4 c = vec4(0);
      for(int i=0;i<0;i++) fragOut.g=.0;
    default: c.a=.0;
  }
}

The important parts are the function-scope declaration vec4 c = vec4(0);, the re-declaration (shadowing) of vec4 c inside the second switch block, and the two switch statements, the first of which has empty cases. The default: case assigns to c.a, which is the reference that survives the transformation.

Step 2: Compile through ANGLE

When the shader is compiled, the sequence the reporter describes is:

  1. The shader declares vec4 c at function scope.
  2. Inside a switch block, vec4 c is re-declared (shadowing).
  3. A tree transformation pass (SeparateDeclarations, PruneEmptyCases, or PruneNoOps) processes the repeated switch blocks.
  4. The transformation drops the outer c declaration but leaves references to it in the default: case. The AST now contains symbol ID 3006 referencing a removed declaration (symbol ID 3004).
  5. On GL/Vulkan backends, validateAST catches this with ERROR: 'c' : Found reference to undeclared or inconsistently transformed variable. On D3D/Metal, validateAST is false, so the corruption passes through silently.

The relevant code locations are:

  • src/compiler/translator/Compiler.cpp:774 (validation gate)
  • src/libANGLE/renderer/d3d/ShaderD3D.cpp:338 (validateAST = false)
  • src/libANGLE/renderer/metal/ShaderMtl.mm:63 (validateAST = false)

Step 3: Observe the malformed output

ANGLE reports compilation success while producing output that references a variable that is never declared. On the Windows D3D path the emitted HLSL is:

HLSL
switch (_u0mode) {
  case (0):
    break;
  default:
    (_c3006.w = 0.0);    // UNDECLARED - variable declaration was dropped
    break;
}

The ESSL / GLSL 4.50 output shows the same corruption:

GLSL
switch (_uu0mode) {
  case (0):
    break;
  default:
    (_uc.w = 0.0);       // UNDECLARED - same corruption
}

In all output formats, ANGLE returns compilation success while emitting code that references a variable (_c3006 / _uc) that is never declared.

Root cause

The mistake is in the shared compiler frontend's tree transformation. When a variable is shadowed inside a switch/case block and multiple switch statements with empty cases are present, a pass among SeparateDeclarations, PruneEmptyCases or PruneNoOps removes the outer declaration but keeps the reference to it in the default: case. The AST is left with a symbol reference (ID 3006) to a declaration that has been removed (ID 3004).

The existing defence is validateAST, which is designed to catch exactly this kind of inconsistency. It works on the GL backends, where it is enabled, and rejects the shader with ERROR: 'c' : Found reference to undeclared or inconsistently transformed variable. On D3D and Metal the flag is set to false in ShaderD3D.cpp and ShaderMtl.mm, so the check never runs and the corrupted AST is emitted as code. The bypass therefore depends on the backend: the same shader is stopped on Linux and Android and passes on Windows and macOS.

Impact

Any web page can trigger this without user interaction by serving the crafted WebGL shader. On Windows (D3D) and macOS (Metal), where validateAST is disabled, the attacker bypasses ANGLE's shader validation boundary. ANGLE reports successful compilation and emits malformed output code containing undeclared variable references, which is then passed directly to the platform GPU driver shader compiler (FXC/DXC on Windows, the Metal compiler on macOS).

The attacker gains the ability to deliver structurally invalid shader code to GPU driver compilers that assume their input has been validated. The GPU process runs with broader privileges than the sandboxed renderer process. The reporter's position is that the GPU driver shader compiler represents a separate security boundary, so any vulnerability in how it handles malformed input would be a distinct bug requiring its own fix; ANGLE's role is to ensure malformed shaders never reach that boundary in the first place. The report does not demonstrate a specific driver-side fault, so the concrete consequence beyond the validation bypass is not shown.

Fix

The report does not describe a fix. The report does not describe a fix.

Variants to test

  • A positive result is a compile that reports success while the emitted code references an undeclared symbol.
  • A positive result is the same dangling reference appearing in the output.
  • A positive result is an AST inconsistency that survives to code generation.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

A security researcher found a way to make a web browser's graphics translation layer produce broken code and then hand that broken code to the software that talks to your graphics card. The browser thinks everything went fine. The graphics driver receives instructions that reference a variable that was never declared, which is like a recipe telling you to "add the sauce from step 4" when step 4 was deleted.

To understand why that matters, you need a little background on how a web page draws 3D graphics. A web page can use a technology called WebGL, which lets JavaScript code send small programs called shaders to the graphics card. A shader is a program that runs on the GPU (the graphics processing unit, the chip that draws images). Browsers do not let web pages talk to the GPU directly, because a malicious page could then attack the GPU driver, which is a piece of software with a lot of power on your machine. Instead, the browser passes the shader through a translation layer called ANGLE. ANGLE reads the shader, checks it, and rewrites it into the language that the platform's graphics driver understands. On Windows that language is HLSL, on macOS it is MSL, and on Linux and Android it is GLSL.

ANGLE is supposed to be the security boundary: the guard that makes sure only well-formed, safe shaders ever reach the driver. The researcher found a shader that slips past the guard on Windows and macOS. The guard exists and works on Linux and Android, but on Windows and macOS it is switched off. So the broken shader reaches the driver compiler, which trusts that its input has already been checked.

The report was filed through the Chrome Vulnerability Reward Program, a scheme where Google pays people for reporting security bugs in Chrome. The researcher tested on Chrome 145.0.7632.76 (Official Build) (64-bit) (cohort: Stable) on Windows. The bug does not crash the browser. The researcher classified it as an "Exploit Mitigation Bypass", which means a safety measure that should stop bad input was bypassed rather than broken in itself.

Context

Let us unpack the pieces one at a time.

WebGL is a browser feature that lets a web page draw 3D scenes using the graphics card. It is an API: an API (Application Programming Interface) is a defined set of commands that one piece of software offers to another. Think of a restaurant menu: you can order only what is on the menu, and the kitchen decides how to cook it. WebGL is the menu the browser offers to web pages for graphics.

GLSL ES is the programming language shaders are written in for WebGL. A shader is a small program, usually just a few lines, that tells the GPU how to colour each pixel or where to place each corner of a shape. GLSL ES 3.0 is one version of that language.

ANGLE is the translator. It takes the GLSL ES shader from the web page and rewrites it into whatever the local graphics driver wants. On Windows that is HLSL (High Level Shading Language, used by Microsoft's Direct3D, or D3D). On macOS it is MSL (Metal Shading Language, used by Apple's Metal). On Linux and Android it is GLSL again, passed to the open GL driver. ANGLE exists because web pages must not talk to drivers directly: a driver is complex, runs with high privileges, and a bug in it could be serious. ANGLE is the checkpoint.

AST stands for Abstract Syntax Tree. When a compiler reads a program, it does not keep the raw text; it builds a tree-shaped model of the program's structure. A declaration of a variable is one node in the tree, and a use of that variable is another node that points at the declaration. If a later step in the compiler deletes the declaration node but leaves the use pointing at it, the tree is inconsistent: a reference dangles. That is the core of this bug.

validateAST is a safety check inside ANGLE. After the compiler has transformed the tree, this check walks over it and confirms that every reference still points at something that exists. If not, it rejects the shader. It is a seatbelt. On Linux and Android the seatbelt is fastened. On Windows and macOS it is deliberately unfastened.

The report was filed against the ANGLE source repository at https://chromium.googlesource.com/angle/angle/. The relevant configuration is the validateAST flag per backend:

Platform Backend validateAST Impact
Windows D3D9/D3D11 false Malformed HLSL reaches FXC/DXC
macOS Metal false Malformed MSL reaches Metal compiler
Linux GL true Caught by validation (no bypass)
Android GL true Caught by validation (no bypass)

Read the table like this. The first column is the operating system. The second is the graphics backend, meaning the specific driver family ANGLE targets on that system. The third is whether the validateAST safety check is switched on (true) or off (false). The fourth is what happens as a result. On Windows and macOS the check is off, so malformed code reaches the driver's own shader compiler: FXC and DXC are Microsoft's HLSL compilers, and the Metal compiler is Apple's. On Linux and Android the check is on, so the bad shader is stopped.

No accounts, roles or special tools are needed to trigger this. The trigger is simply a shader served to a browser, and the evidence is the compiler output ANGLE produces for it.

Finding it

A particular combination of declarations and control flow makes one of ANGLE's tree transformation passes produce an inconsistent AST. A transformation pass is a step in a compiler that rewrites the tree into a simpler or more convenient form before generating output. Think of an editor cutting and pasting paragraphs: usually the result reads fine, but if a cut removes a definition and a later paragraph still says "see above", the document is now broken.

The shader declares a variable at function scope, meaning the variable is visible throughout the function. It then declares a variable with the same name inside a switch/case block. That is called shadowing: the inner declaration hides the outer one for the duration of the inner block, like a local rule in a small town overriding a national law. The shader also contains multiple switch statements, one of which has empty cases. Under those conditions a transformation pass drops the outer declaration while leaving references to it in place, so the AST ends up with a symbol reference pointing at a declaration that no longer exists.

What makes this a security finding rather than a compiler quality issue is where the inconsistency is caught. On the GL backends, validateAST is enabled and rejects the corrupted tree. On D3D and Metal, the check is explicitly disabled, so the corrupted AST passes through uncaught, compilation is reported as successful, and malformed output code is emitted.

Exploitation

Step 1: Craft the shader

The reproducer is a 262-byte GLSL ES 3.0 shader:

GLSL
#version 300 es
precision mediump float;
int u0mode; out vec4 fragOut;
void main(){
  vec4 c = vec4(0);
  for(int i=0;i<0;i++){ if(0==u0mode){break;} }
  switch(u0mode){ case 0: case 1: ; }
  switch(u0mode){
    case 0: break;
      vec4 c = vec4(0);
      for(int i=0;i<0;i++) fragOut.g=.0;
    default: c.a=.0;
  }
}

Line by line, in plain words:

  • #version 300 es tells the compiler this is GLSL ES version 3.00, the language version used by WebGL 2.
  • precision mediump float; sets the default precision for floating point numbers. Precision is how many bits of accuracy the GPU uses; mediump is a middle setting.
  • int u0mode; declares an integer variable named u0mode. The u0 prefix is a naming convention for a value supplied from outside the shader, though here it is just a plain variable.
  • out vec4 fragOut; declares the output of the shader: a vector of four numbers (red, green, blue, alpha) that becomes the colour of the pixel.
  • void main(){ starts the main function, the entry point that runs for every pixel.
  • vec4 c = vec4(0); declares a four-number variable c at function scope and sets it to zero. This is the outer declaration that will later be dropped.
  • for(int i=0;i<0;i++){ if(0==u0mode){break;} } is a loop that never runs, because the condition i<0 is false from the start. It exists to add a bit of control flow around the switch statements.
  • switch(u0mode){ case 0: case 1: ; } is a switch statement with two empty cases. It does nothing, but its presence matters to the transformation pass.
  • switch(u0mode){ starts the second switch, the one that contains the shadowing.
  • case 0: break; handles the value 0 by leaving the switch immediately.
  • vec4 c = vec4(0); re-declares c inside this case block. This is the shadowing declaration.
  • for(int i=0;i<0;i++) fragOut.g=.0; is another loop that never runs; its body would set the green channel of the output to zero.
  • default: c.a=.0; handles every other value by setting the alpha channel of c to zero. This is the reference that survives the transformation.
  • The closing braces end the switch and the function.

The important parts are the function-scope declaration vec4 c = vec4(0);, the re-declaration (shadowing) of vec4 c inside the second switch block, and the two switch statements, the first of which has empty cases. The default: case assigns to c.a, which is the reference that survives the transformation.

Step 2: Compile through ANGLE

When the shader is compiled, the sequence the reporter describes is:

  1. The shader declares vec4 c at function scope.
  2. Inside a switch block, vec4 c is re-declared (shadowing).
  3. A tree transformation pass (SeparateDeclarations, PruneEmptyCases, or PruneNoOps) processes the repeated switch blocks.
  4. The transformation drops the outer c declaration but leaves references to it in the default: case. The AST now contains symbol ID 3006 referencing a removed declaration (symbol ID 3004).
  5. On GL/Vulkan backends, validateAST catches this with ERROR: 'c' : Found reference to undeclared or inconsistently transformed variable. On D3D/Metal, validateAST is false, so the corruption passes through silently.

A few words on the names in step 3. SeparateDeclarations, PruneEmptyCases and PruneNoOps are the names of compiler passes that tidy up the tree: separating declarations from other statements, removing switch cases that do nothing, and removing operations that have no effect. The report names these three as the candidates for the pass that goes wrong, without pinning it to one. A symbol ID is simply a number the compiler gives each declared name so it can refer to it internally; 3004 is the outer c, 3006 is the reference that should point at it.

The relevant code locations are:

  • src/compiler/translator/Compiler.cpp:774 (validation gate)
  • src/libANGLE/renderer/d3d/ShaderD3D.cpp:338 (validateAST = false)
  • src/libANGLE/renderer/metal/ShaderMtl.mm:63 (validateAST = false)

These are file paths inside the ANGLE source code, with a line number after the colon. The first is where the validation gate is called. The second and third are where the D3D and Metal backends switch the check off.

Step 3: Observe the malformed output

ANGLE reports compilation success while producing output that references a variable that is never declared. On the Windows D3D path the emitted HLSL is:

HLSL
switch (_u0mode) {
  case (0):
    break;
  default:
    (_c3006.w = 0.0);    // UNDECLARED - variable declaration was dropped
    break;
}

This is the translated shader as the Windows driver would receive it. The switch on _u0mode is the same switch as before, with the compiler's internal underscore prefix added to the name. The case (0) branch simply breaks. The default branch sets the w component of _c3006 to zero. The comment in the report marks the problem: _c3006 is never declared anywhere in this output. The declaration was dropped, but the use was kept.

The ESSL / GLSL 4.50 output shows the same corruption:

GLSL
switch (_uu0mode) {
  case (0):
    break;
  default:
    (_uc.w = 0.0);       // UNDECLARED - same corruption
}

Here the same thing happens in the GLSL output: _uc is assigned to but never declared. The name differs because each backend mangles names its own way, but the shape of the bug is identical.

In all output formats, ANGLE returns compilation success while emitting code that references a variable (_c3006 / _uc) that is never declared.

Root cause

The mistake is in the shared compiler frontend's tree transformation. When a variable is shadowed inside a switch/case block and multiple switch statements with empty cases are present, a pass among SeparateDeclarations, PruneEmptyCases or PruneNoOps removes the outer declaration but keeps the reference to it in the default: case. The AST is left with a symbol reference (ID 3006) to a declaration that has been removed (ID 3004).

The existing defence is validateAST, which is designed to catch exactly this kind of inconsistency. It works on the GL backends, where it is enabled, and rejects the shader with ERROR: 'c' : Found reference to undeclared or inconsistently transformed variable. On D3D and Metal the flag is set to false in ShaderD3D.cpp and ShaderMtl.mm, so the check never runs and the corrupted AST is emitted as code. The bypass therefore depends on the backend: the same shader is stopped on Linux and Android and passes on Windows and macOS.

Impact

Any web page can trigger this without user interaction by serving the crafted WebGL shader. On Windows (D3D) and macOS (Metal), where validateAST is disabled, the attacker bypasses ANGLE's shader validation boundary. ANGLE reports successful compilation and emits malformed output code containing undeclared variable references, which is then passed directly to the platform GPU driver shader compiler (FXC/DXC on Windows, the Metal compiler on macOS).

The attacker gains the ability to deliver structurally invalid shader code to GPU driver compilers that assume their input has been validated. This matters because of how Chrome separates its work into processes. The renderer process, which runs the web page, is sandboxed: it is locked down so that even if a page is malicious, it cannot do much harm. The GPU process, which talks to the graphics driver, runs with broader privileges. A sandbox is like a glass wall around a dangerous exhibit: you can look, but you cannot reach through. If malformed input can cross from the sandboxed side to the privileged side, the wall has a gap.

The reporter's position is that the GPU driver shader compiler represents a separate security boundary, so any vulnerability in how it handles malformed input would be a distinct bug requiring its own fix; ANGLE's role is to ensure malformed shaders never reach that boundary in the first place. The report does not demonstrate a specific driver-side fault, so the concrete consequence beyond the validation bypass is not shown.

Fix

The report does not describe a fix. The report does not describe a fix.

Variants to test

  • A positive result is a compile that reports success while the emitted code references an undeclared symbol.
  • A positive result is the same dangling reference appearing in the output.
  • A positive result is an AST inconsistency that survives to code generation.

Glossary

  • ANGLE: the translation layer in Chrome that converts WebGL shaders into the graphics language of the local platform, and acts as the security boundary before the GPU driver.
  • API: a defined set of commands one piece of software offers to another, like a menu you can order from.
  • AST (Abstract Syntax Tree): a tree-shaped model of a program's structure that a compiler builds and then transforms.
  • Backend: the platform-specific part of a graphics stack, such as D3D on Windows, Metal on macOS, or GL on Linux and Android.
  • Chrome VRP (Vulnerability Reward Program): Google's scheme that pays researchers for reporting security bugs in Chrome.
  • Compiler frontend: the part of a compiler that reads source code and builds the AST, before backend-specific code is generated.
  • D3D (Direct3D): Microsoft's graphics API used on Windows.
  • Dangling reference: a pointer from one part of a program to something that has been deleted, so the pointer no longer leads anywhere valid.
  • DXC: Microsoft's modern HLSL compiler.
  • Exploit Mitigation Bypass: a class of bug where a safety measure meant to stop bad input is circumvented, rather than broken outright.
  • FXC: Microsoft's older HLSL compiler.
  • GLSL / GLSL ES: the shading language used with OpenGL, and its variant for embedded and web use (WebGL).
  • GPU: graphics processing unit, the chip that draws images and runs shaders.
  • GPU process: the Chrome process that talks to the graphics driver, running with broader privileges than the sandboxed renderer.
  • HLSL: High Level Shading Language, Microsoft's shading language for Direct3D.
  • Metal / MSL: Apple's graphics API and its shading language.
  • Precision: the number of bits of accuracy used for a numeric type in a shader.
  • Renderer process: the sandboxed Chrome process that runs a web page.
  • Sandbox: a locked-down environment that limits what a process can do, so a compromise cannot spread.
  • Shader: a small program that runs on the GPU to colour pixels or position geometry.
  • Shadowing: declaring a variable with the same name as an outer one, hiding the outer one inside the inner block.
  • Symbol ID: an internal number a compiler assigns to a declared name so it can refer to it.
  • Transformation pass: a compiler step that rewrites the AST into a simpler or more convenient form.
  • validateAST: ANGLE's safety check that verifies the transformed AST is internally consistent before code is generated.
  • WebGL: the browser API that lets web pages draw 3D graphics using the GPU.

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.