Integer overflow in ANGLE (CVE-2026-10018)
An integer overflow in ANGLE's IndexRange constructor makes a mixed index range containing 0xffffffff appear empty, so WebGL draw validation is skipped and an out-of-range vertex index reaches the GPU. On backends without robust buffer access this causes a GPU process crash and, with heap spray, can return attacker-placed GPU memory via readPixels.
- Fix shipped in 39 days
VULNERABILITY DETAILS
The IndexRange(uint32_t start, uint32_t end) constructor at third_party/angle/src/common/mathutil.h:875 computes mCount = end - start + 1. For IndexRange(0, 0xffffffff) this wraps to 0 and isEmpty() returns true.
ValidateDrawElementsCommon at validationES.h:1116 uses isEmpty() to gate both maxElementIndex and ValidateDrawAttribs. A WebGL1 drawElements(GL_POINTS, 2, GL_UNSIGNED_INT, 0) with OES_element_index_uint enabled and element-array buffer {0, 0xffffffff} is therefore accepted even though the second index is out of range for the bound vertex-attribute buffer. Primitive restart is off in WebGL1, so 0xffffffff reaches ComputeTypedIndexRange as a real index.
The OOB vertex fetch reaches the GPU. On ANGLE Vulkan backends whose physical device does not enable robustBufferAccess (the ES2_Vulkan_SwiftShader configuration Chromium ships for conformance testing is one such), this causes a GPU process SIGSEGV at the address (0xffffffff * stride) mod 2^32 past the bound vertex buffer. With WebGL side spray to cover the 4 GiB region past the bound VBO, readPixels returns 16 bytes of attacker placed GPU process memory.
VERSION
Chrome Version: 147.0.7727.102 stable Operating System: Multi-platform, ANGLE code. Directly verified on: macOS 26.4, Apple M1 Windows 11, NVIDIA GeForce RTX 5070 Ti Laptop GPU Ubuntu 24.04 x86_64
REPRODUCTION CASE
To see the bypass directly at JS level, open poc.html in Chrome on a backend where ANGLE runs its manual buffer-access validation.
On macOS (Apple Silicon), the default backend is already such a backend. Just open the file:
open /Applications/Google\ Chrome.app poc.html
On Windows, the default backend is D3D11 which masks the OOB. Use --use-angle=d3d9 to get an observable backend:
chrome.exe --use-angle=d3d9 --user-data-dir=C:\tmp\chrome-d3d9 path\to\poc.html
Expected output on an observable backend:
all_max_control=INVALID_OPERATION indices=[0xffffffff] min_max_wrap_probe=NO_ERROR indices=[0x0,0xffffffff] RESULT=SUSPICIOUS: mixed 0/UINT_MAX bypassed where all-UINT_MAX was rejected
On Windows D3D11/GL/Vulkan and on in-browser SwiftShader, both calls return NO_ERROR. The bypass still fires inside ANGLE; the resulting OOB is masked by the driver's robust buffer access.
To verify the memory safety consequence on the non-robust path that Chrome ships for its own conformance tests, apply poc.patch and run:
autoninja -C out/Test angle_unittests angle_end2end_tests
./out/Test/angle_unittests --gtest_filter=Utilities.IndexRanges
xvfb-run -a ./out/Test/angle_end2end_tests
--gtest_filter=WebGLDrawElementsTest.MixedUintMaxIndexRangeIsNotEmpty/ES2_Vulkan_SwiftShader
The unit test fails because isEmpty() returns true for the full uint range. The end to end test under an is_asan=true build produces an AddressSanitizer DEADLYSIGNAL whose register state has rdx = r8 = r9 = 0xfffffff4 = (0xffffffff * 12) mod 2^32. The attacker supplied index becomes the wrapped vertex fetch byte offset.
CREDIT INFORMATION Reporter credit: Rahul Raj
Context
ANGLE is the translation layer Chrome uses to run WebGL (and other graphics APIs) on top of the platform's native graphics stack, such as Vulkan, D3D11 or D3D9. Before a drawElements call reaches the GPU, ANGLE validates the element indices against the bound vertex-attribute buffers so that the GPU never fetches vertex data outside the buffer the application supplied. The component that performs this check is ValidateDrawElementsCommon in validationES.h, and it relies on an IndexRange helper defined in third_party/angle/src/common/mathutil.h.
This report describes an integer overflow in the IndexRange constructor that lets a WebGL1 draw with a mixed index range (0 and 0xffffffff) slip past that validation, producing an out-of-bounds vertex fetch on the GPU. It was filed against Google Chrome through the Chrome VRP, credited to Rahul Raj, rated medium severity, and paid a bounty of 2000.00 USD. It was disclosed on 2026-05-27 as CVE-2026-10018.
Setup
The issue is in ANGLE code and is described as multi-platform. The reporter directly verified it on:
- macOS 26.4, Apple M1
- Windows 11, NVIDIA GeForce RTX 5070 Ti Laptop GPU
- Ubuntu 24.04 x86_64
The Chrome version tested was:
Chrome Version: 147.0.7727.102 stable
Two preconditions matter for the JavaScript-level demonstration:
- The WebGL1 context must have the
OES_element_index_uintextension enabled, so that 32-bit unsigned indices are accepted. - ANGLE must be running on a backend where it performs its own manual buffer-access validation. On macOS (Apple Silicon) the default backend is already such a backend. On Windows the default backend is D3D11, which masks the out-of-bounds access, so the reporter switches to D3D9 to get an observable result.
For the memory-safety demonstration, the relevant configuration is the non-robust path that Chrome ships for its own conformance tests, ES2_Vulkan_SwiftShader, whose physical device does not enable robustBufferAccess.
Finding it
The IndexRange(uint32_t start, uint32_t end) constructor at third_party/angle/src/common/mathutil.h:875 computes:
mCount = end - start + 1
For IndexRange(0, 0xffffffff) this arithmetic wraps to 0, and consequently isEmpty() returns true.
ValidateDrawElementsCommon at validationES.h:1116 uses isEmpty() to gate both the maxElementIndex check and ValidateDrawAttribs. Because the range is reported as empty, neither check runs. A draw whose element-array buffer contains {0, 0xffffffff} is therefore accepted, even though the second index is out of range for the bound vertex-attribute buffer.
The reason 0xffffffff is treated as a real index rather than a primitive-restart marker is that primitive restart is off in WebGL1, so the value reaches ComputeTypedIndexRange as an ordinary index.
Exploitation
Step 1: Observe the validation bypass at the JavaScript level
The reporter provides a poc.html that exercises the bypass directly. On macOS (Apple Silicon), where the default backend already performs manual buffer-access validation, the file is opened with:
open /Applications/Google\ Chrome.app poc.html
On Windows, the default D3D11 backend masks the out-of-bounds access, so the reporter selects D3D9 to get an observable backend:
chrome.exe --use-angle=d3d9 --user-data-dir=C:\tmp\chrome-d3d9 path\to\poc.html
The proof of concept issues a WebGL1 drawElements(GL_POINTS, 2, GL_UNSIGNED_INT, 0) with OES_element_index_uint enabled and an element-array buffer of {0, 0xffffffff}. The expected output on an observable backend is:
all_max_control=INVALID_OPERATION indices=[0xffffffff]
min_max_wrap_probe=NO_ERROR indices=[0x0,0xffffffff]
RESULT=SUSPICIOUS: mixed 0/UINT_MAX bypassed where all-UINT_MAX was rejected
The first line is the control: a draw whose indices are all 0xffffffff is correctly rejected with INVALID_OPERATION. The second line is the probe: a draw mixing 0x0 and 0xffffffff returns NO_ERROR, showing that the mixed range bypassed the check that the all-maximum range failed. The third line is the reporter's summary of that discrepancy.
On Windows D3D11, GL and Vulkan, and on in-browser SwiftShader, both calls return NO_ERROR. The bypass still fires inside ANGLE in those configurations, but the resulting out-of-bounds access is masked by the driver's robust buffer access.
Step 2: Confirm the memory-safety consequence on the non-robust path
To verify the consequence on the non-robust path that Chrome ships for its own conformance tests, the reporter applies poc.patch and runs:
autoninja -C out/Test angle_unittests angle_end2end_tests
./out/Test/angle_unittests --gtest_filter=Utilities.IndexRanges
xvfb-run -a ./out/Test/angle_end2end_tests \
--gtest_filter=WebGLDrawElementsTest.MixedUintMaxIndexRangeIsNotEmpty/ES2_Vulkan_SwiftShader
The unit test fails because isEmpty() returns true for the full uint range. The end-to-end test, run under an is_asan=true build, produces an AddressSanitizer DEADLYSIGNAL whose register state has:
rdx = r8 = r9 = 0xfffffff4 = (0xffffffff * 12) mod 2^32
That is, the attacker-supplied index becomes the wrapped vertex-fetch byte offset. On the ES2_Vulkan_SwiftShader configuration, the out-of-bounds vertex fetch reaches the GPU and causes a GPU process SIGSEGV at the address (0xffffffff * stride) mod 2^32 past the bound vertex buffer.
Step 3: Turn the out-of-bounds fetch into a read
With WebGL side spray to cover the 4 GiB region past the bound VBO, readPixels returns 16 bytes of attacker-placed GPU process memory. In other words, the wrapped fetch offset lands in memory the attacker has arranged to occupy, and the result is read back to JavaScript through readPixels.
Root cause
The defect is an integer overflow in the IndexRange constructor. mCount = end - start + 1 is computed in 32-bit unsigned arithmetic, so the full range [0, 0xffffffff] produces 0 instead of the mathematically correct 2^32. The isEmpty() predicate then reports the range as empty, and ValidateDrawElementsCommon treats an empty range as nothing to validate, skipping both the maxElementIndex check and ValidateDrawAttribs.
The validation in ValidateDrawElementsCommon did not stop the issue. It did not stop the issue because the gate it relies on (isEmpty()) is derived from the same overflowing arithmetic that the attacker controls through the index values. The proof of concept prints the asymmetry between the all-maximum case, which is rejected, and the mixed case, which is accepted.
Impact
On backends where ANGLE performs manual buffer-access validation and the physical device does not enable robustBufferAccess, an attacker can cause a GPU process SIGSEGV at a wrapped offset past the bound vertex buffer. With WebGL side spray covering the 4 GiB region past the bound VBO, readPixels returns 16 bytes of attacker-placed GPU process memory, giving a read of GPU process memory from a web page.
On backends with robust buffer access, such as Windows D3D11, GL and Vulkan, and in-browser SwiftShader, the bypass still fires inside ANGLE but the out-of-bounds access is masked by the driver, so the memory-safety consequence is not observed there. The reporter rates the issue medium severity.
Fix
The report does not describe a specific code change. The defect it identifies is the overflow in mCount = end - start + 1 for the full 32-bit range, which makes isEmpty() return true for IndexRange(0, 0xffffffff); the unit test Utilities.IndexRanges fails because isEmpty() returns true for the full uint range.
Variants to test
- Other full-range index pairs. Try element-array buffers whose minimum and maximum indices differ by exactly
2^32 - 1in other draw paths that share theIndexRange/isEmpty()gate. A positive result is a draw that returnsNO_ERRORwhere the equivalent all-maximum draw returnsINVALID_OPERATION. - Other backends without robust buffer access. Look for configurations, like the
ES2_Vulkan_SwiftShaderone used here, where the physical device does not enablerobustBufferAccess. A positive result is a GPU process crash at an offset matching(index * stride) mod 2^32past the bound buffer. - Other index widths and restart settings. Check whether the same wrap can be reached with 16-bit indices or with primitive restart enabled, where the maximum value may be interpreted differently. A positive result is a mixed range that bypasses validation while the all-maximum range does not.
- Other validation helpers built on
isEmpty(). Audit call sites that useisEmpty()to skip validation, in ANGLE or elsewhere, for ranges that can wrap to zero. A positive result is a skipped bounds check reachable from untrusted input.
What happened, in plain words
Chrome can draw 3D graphics on a web page through a technology called WebGL. WebGL is an API: a set of functions a web page can call to ask the browser to do something, in this case to draw shapes using the graphics card (the GPU). Chrome does not talk to the GPU directly. It uses a translation layer called ANGLE, which turns WebGL requests into commands the operating system's graphics system understands, such as Vulkan on Linux, D3D11 or D3D9 on Windows.
Before ANGLE hands a drawing request to the GPU, it checks the numbers that say which points to draw. Those numbers are called indices. They point into a buffer, a block of memory holding the vertex data (the coordinates and other details of each point). The check exists so the GPU never reads outside that buffer. Reading outside a buffer is called an out-of-bounds access, and it is dangerous because the memory just past the buffer may belong to something else.
The check is done by a function called ValidateDrawElementsCommon, and it relies on a small helper called IndexRange. That helper stores a range of indices as a start and an end, and works out how many indices are in it. The report shows that for one particular range, the count calculation overflows: the number becomes too big for the space available, so it wraps around to zero, like a car odometer rolling over. When the count is zero, the helper says the range is empty, and the validation treats an empty range as nothing to check. So a drawing request with a bad index gets through, and the GPU is asked to read vertex data outside the buffer.
This was reported to Google's Chrome Vulnerability Reward Program (VRP), a scheme that pays people who find and report security bugs in Chrome. The researcher is Rahul Raj. The issue was rated medium severity, paid a bounty of 2000.00 USD, and disclosed on 2026-05-27 as CVE-2026-10018. A CVE is a public identifier given to a known security vulnerability so people can track it.
Context
ANGLE is the translation layer Chrome uses to run WebGL, and other graphics APIs, on top of the platform's native graphics stack, such as Vulkan, D3D11 or D3D9. Think of it as an interpreter at a meeting: the web page speaks WebGL, the graphics driver speaks Vulkan or D3D, and ANGLE translates between them.
Before a drawElements call reaches the GPU, ANGLE validates the element indices against the bound vertex-attribute buffers. drawElements is the WebGL function that says "draw these points, using this list of indices". The indices are numbers that pick entries out of the vertex buffer. The validation makes sure the GPU never fetches vertex data outside the buffer the application supplied. The component that performs this check is ValidateDrawElementsCommon in validationES.h, and it relies on an IndexRange helper defined in third_party/angle/src/common/mathutil.h.
This report describes an integer overflow in the IndexRange constructor that lets a WebGL1 draw with a mixed index range (0 and 0xffffffff) slip past that validation, producing an out-of-bounds vertex fetch on the GPU. An integer overflow is what happens when a calculation produces a number too large for the fixed number of bits used to store it, so the result wraps around to a small value. A constructor is the piece of code that creates an object and sets its starting values.
Setup
The issue is in ANGLE code and is described as multi-platform. The reporter directly verified it on:
- macOS 26.4, Apple M1
- Windows 11, NVIDIA GeForce RTX 5070 Ti Laptop GPU
- Ubuntu 24.04 x86_64
The Chrome version tested was:
Chrome Version: 147.0.7727.102 stable
This line records the exact Chrome release used for the test. "Stable" means the normal public release channel, not a beta or developer build.
Two preconditions matter for the JavaScript-level demonstration:
- The WebGL1 context must have the
OES_element_index_uintextension enabled, so that 32-bit unsigned indices are accepted. An extension is an optional extra feature a web page can switch on. By default WebGL1 uses smaller index numbers; this extension allows 32-bit unsigned integers, which can hold values up to0xffffffff. - ANGLE must be running on a backend where it performs its own manual buffer-access validation. A backend is the underlying graphics system ANGLE translates to. On macOS (Apple Silicon) the default backend is already such a backend. On Windows the default backend is D3D11, which masks the out-of-bounds access, so the reporter switches to D3D9 to get an observable result. "Masks" here means the driver quietly blocks or hides the bad read, so you cannot see the effect.
For the memory-safety demonstration, the relevant configuration is the non-robust path that Chrome ships for its own conformance tests, ES2_Vulkan_SwiftShader, whose physical device does not enable robustBufferAccess. Conformance tests are tests that check the software behaves according to the specification. robustBufferAccess is a GPU feature that makes out-of-bounds reads safe by returning defined values instead of touching other memory. Without it, a bad read can crash or leak memory.
Finding it
The IndexRange(uint32_t start, uint32_t end) constructor at third_party/angle/src/common/mathutil.h:875 computes:
mCount = end - start + 1
Line by line: uint32_t means an unsigned 32-bit integer, a whole number from 0 to 4294967295 (which is 0xffffffff in hexadecimal). The constructor takes a start and an end. mCount is the number of indices in the range. The formula subtracts the start from the end and adds one, because a range from 0 to 0 contains one item, not zero. For example, start 0 and end 4 gives 4 - 0 + 1 = 5 items.
For IndexRange(0, 0xffffffff) this arithmetic wraps to 0, and consequently isEmpty() returns true. The mathematically correct answer is 4294967296, but that number does not fit in 32 bits, so it rolls over to zero. isEmpty() is a function that answers "is this range empty?", and it says yes.
ValidateDrawElementsCommon at validationES.h:1116 uses isEmpty() to gate both the maxElementIndex check and ValidateDrawAttribs. To gate means to decide whether to run something. maxElementIndex is the largest index in the draw, and ValidateDrawAttribs checks the vertex attributes. Because the range is reported as empty, neither check runs. A draw whose element-array buffer contains {0, 0xffffffff} is therefore accepted, even though the second index is out of range for the bound vertex-attribute buffer.
The reason 0xffffffff is treated as a real index rather than a primitive-restart marker is that primitive restart is off in WebGL1, so the value reaches ComputeTypedIndexRange as an ordinary index. Primitive restart is a feature where a special index value tells the GPU "stop the current shape and start a new one". When it is off, that special value is just a very large index.
Exploitation
Step 1: Observe the validation bypass at the JavaScript level
The reporter provides a poc.html that exercises the bypass directly. A proof of concept (PoC) is a small program that demonstrates a bug without doing harm. On macOS (Apple Silicon), where the default backend already performs manual buffer-access validation, the file is opened with:
open /Applications/Google\ Chrome.app poc.html
This command tells macOS to open the file poc.html using the Chrome application. The backslash before the space is an escape: it tells the shell that the space is part of the application name, not a separator between arguments.
On Windows, the default D3D11 backend masks the out-of-bounds access, so the reporter selects D3D9 to get an observable backend:
chrome.exe --use-angle=d3d9 --user-data-dir=C:\tmp\chrome-d3d9 path\to\poc.html
This starts Chrome from the command line. --use-angle=d3d9 tells ANGLE to use the D3D9 backend instead of the default. --user-data-dir=C:\tmp\chrome-d3d9 gives Chrome a separate profile folder, so the test does not touch your normal browsing data. The last part is the path to the proof-of-concept page.
The proof of concept issues a WebGL1 drawElements(GL_POINTS, 2, GL_UNSIGNED_INT, 0) with OES_element_index_uint enabled and an element-array buffer of {0, 0xffffffff}. In plain words: draw 2 points, read the indices as unsigned 32-bit integers, and start reading the index list at offset 0. The index list holds two values, 0 and the largest possible 32-bit number. The expected output on an observable backend is:
all_max_control=INVALID_OPERATION indices=[0xffffffff]
min_max_wrap_probe=NO_ERROR indices=[0x0,0xffffffff]
RESULT=SUSPICIOUS: mixed 0/UINT_MAX bypassed where all-UINT_MAX was rejected
The first line is the control: a draw whose indices are all 0xffffffff is correctly rejected with INVALID_OPERATION. A control is a comparison case that should behave correctly, so you can tell the difference when the real test misbehaves. INVALID_OPERATION is the error WebGL returns when you ask for something that is not allowed.
The second line is the probe: a draw mixing 0x0 and 0xffffffff returns NO_ERROR, showing that the mixed range bypassed the check that the all-maximum range failed. NO_ERROR means WebGL accepted the request.
The third line is the reporter's summary of that discrepancy: the mixed range got through while the all-maximum range was rejected, which is suspicious because both contain the out-of-range value.
On Windows D3D11, GL and Vulkan, and on in-browser SwiftShader, both calls return NO_ERROR. The bypass still fires inside ANGLE in those configurations, but the resulting out-of-bounds access is masked by the driver's robust buffer access.
Step 2: Confirm the memory-safety consequence on the non-robust path
To verify the consequence on the non-robust path that Chrome ships for its own conformance tests, the reporter applies poc.patch and runs:
autoninja -C out/Test angle_unittests angle_end2end_tests
./out/Test/angle_unittests --gtest_filter=Utilities.IndexRanges
xvfb-run -a ./out/Test/angle_end2end_tests \
--gtest_filter=WebGLDrawElementsTest.MixedUintMaxIndexRangeIsNotEmpty/ES2_Vulkan_SwiftShader
Line by line: autoninja is a build tool that compiles the code. -C out/Test says the build output goes in the out/Test folder. angle_unittests and angle_end2end_tests are the two test programs to build. The second line runs the unit tests, filtered to just the Utilities.IndexRanges test. A unit test checks one small piece of code in isolation. The third line runs the end-to-end tests under xvfb-run, which provides a virtual display so graphics tests can run on a machine without a screen. -a picks a free display automatically. The filter selects the WebGLDrawElementsTest.MixedUintMaxIndexRangeIsNotEmpty/ES2_Vulkan_SwiftShader test, which exercises the mixed index range on the SwiftShader Vulkan configuration.
The unit test fails because isEmpty() returns true for the full uint range. The end-to-end test, run under an is_asan=true build, produces an AddressSanitizer DEADLYSIGNAL whose register state has:
rdx = r8 = r9 = 0xfffffff4 = (0xffffffff * 12) mod 2^32
AddressSanitizer is a tool built into the program that detects memory errors and reports them. DEADLYSIGNAL means the program crashed with a fatal signal, such as a segmentation fault. Registers are tiny storage slots inside the processor. rdx, r8 and r9 are names of registers. The line says all three hold the value 0xfffffff4. That value equals 0xffffffff multiplied by 12, then reduced modulo 2^32, which means keeping only the remainder after dividing by 2^32. In other words, the attacker-supplied index becomes the wrapped vertex-fetch byte offset. A byte offset is how far into memory to start reading.
On the ES2_Vulkan_SwiftShader configuration, the out-of-bounds vertex fetch reaches the GPU and causes a GPU process SIGSEGV at the address (0xffffffff * stride) mod 2^32 past the bound vertex buffer. SIGSEGV is the signal the operating system sends when a program tries to access memory it is not allowed to. stride is the number of bytes between one vertex and the next in the buffer.
Step 3: Turn the out-of-bounds fetch into a read
With WebGL side spray to cover the 4 GiB region past the bound VBO, readPixels returns 16 bytes of attacker-placed GPU process memory. Side spray means filling memory with controlled data so that a bad read is likely to land on it. A VBO is a vertex buffer object, the GPU-side buffer holding vertex data. readPixels is the WebGL function that copies pixels from the GPU back to JavaScript. In other words, the wrapped fetch offset lands in memory the attacker has arranged to occupy, and the result is read back to JavaScript through readPixels. The result is read back to JavaScript through readPixels.
Root cause
The defect is an integer overflow in the IndexRange constructor. mCount = end - start + 1 is computed in 32-bit unsigned arithmetic, so the full range [0, 0xffffffff] produces 0 instead of the mathematically correct 2^32. The isEmpty() predicate then reports the range as empty, and ValidateDrawElementsCommon treats an empty range as nothing to validate, skipping both the maxElementIndex check and ValidateDrawAttribs.
The validation in ValidateDrawElementsCommon did not stop the issue. It did not stop the issue because the gate it relies on (isEmpty()) is derived from the same overflowing arithmetic that the attacker controls through the index values. The proof of concept prints the asymmetry between the all-maximum case, which is rejected, and the mixed case, which is accepted. Asymmetry here means the two cases behave differently even though both contain the same dangerous value.
Impact
On backends where ANGLE performs manual buffer-access validation and the physical device does not enable robustBufferAccess, an attacker can cause a GPU process SIGSEGV at a wrapped offset past the bound vertex buffer. With WebGL side spray covering the 4 GiB region past the bound VBO, readPixels returns 16 bytes of attacker-placed GPU process memory, giving a read of GPU process memory from a web page.
On backends with robust buffer access, such as Windows D3D11, GL and Vulkan, and in-browser SwiftShader, the bypass still fires inside ANGLE but the out-of-bounds access is masked by the driver, so the memory-safety consequence is not observed there. The reporter rates the issue medium severity.
Fix
The report does not describe a specific code change. The defect it identifies is the overflow in mCount = end - start + 1 for the full 32-bit range, which makes isEmpty() return true for IndexRange(0, 0xffffffff); the unit test Utilities.IndexRanges fails because isEmpty() returns true for the full uint range.
Variants to test
- Other full-range index pairs. Try element-array buffers whose minimum and maximum indices differ by exactly
2^32 - 1in other draw paths that share theIndexRange/isEmpty()gate. A positive result is a draw that returnsNO_ERRORwhere the equivalent all-maximum draw returnsINVALID_OPERATION. - Other backends without robust buffer access. Look for configurations, like the
ES2_Vulkan_SwiftShaderone used here, where the physical device does not enablerobustBufferAccess. A positive result is a GPU process crash at an offset matching(index * stride) mod 2^32past the bound buffer. - Other index widths and restart settings. Check whether the same wrap can be reached with 16-bit indices or with primitive restart enabled, where the maximum value may be interpreted differently. A positive result is a mixed range that bypasses validation while the all-maximum range does not.
- Other validation helpers built on
isEmpty(). Audit call sites that useisEmpty()to skip validation, in ANGLE or elsewhere, for ranges that can wrap to zero. A positive result is a skipped bounds check reachable from untrusted input.
Glossary
- ANGLE: the translation layer Chrome uses to run WebGL on top of the platform's native graphics stack.
- API: a set of functions a program can call to ask another piece of software to do something.
- AddressSanitizer: a tool built into a program that detects memory errors and reports them.
- Backend: the underlying graphics system ANGLE translates to, such as Vulkan, D3D11 or D3D9.
- Bounty: money paid to a researcher for reporting a security bug.
- Buffer: a block of memory holding data, such as vertex coordinates or indices.
- Byte offset: how far into memory, in bytes, to start reading.
- Chrome VRP: Chrome Vulnerability Reward Program, Google's scheme that pays people who report security bugs in Chrome.
- Conformance tests: tests that check software behaves according to its specification.
- Constructor: the piece of code that creates an object and sets its starting values.
- Control: a comparison case that should behave correctly, used to tell the difference when the real test misbehaves.
- CVE: a public identifier given to a known security vulnerability so people can track it.
- D3D9 / D3D11: Direct3D versions, Microsoft's graphics APIs on Windows.
- DEADLYSIGNAL: AddressSanitizer's report that the program crashed with a fatal signal.
- drawElements: the WebGL function that draws points using a list of indices.
- Element-array buffer: the buffer holding the list of indices used by
drawElements. - Extension: an optional extra feature a web page can switch on, such as
OES_element_index_uint. - Gate: to decide whether to run something.
- GPU: graphics processing unit, the chip that draws graphics.
- Hex / hexadecimal: a base-16 way of writing numbers, where
0xffffffffis 4294967295. - Index: a number that picks an entry out of a buffer.
- INVALID_OPERATION: the error WebGL returns when you ask for something that is not allowed.
- Integer overflow: what happens when a calculation produces a number too large for the fixed number of bits used to store it, so the result wraps around.
- isEmpty(): a function that answers whether a range contains no items.
- Masked: hidden or blocked by another layer, so the effect cannot be observed.
- maxElementIndex: the largest index in a draw.
- Modulo (mod): the remainder after division;
mod 2^32keeps only what fits in 32 bits. - NO_ERROR: WebGL's way of saying the request was accepted.
- Out-of-bounds access: reading or writing memory outside the buffer that was supposed to be used.
- Primitive restart: a feature where a special index value tells the GPU to stop the current shape and start a new one.
- Proof of concept (PoC): a small program that demonstrates a bug without doing harm.
- Register: a tiny storage slot inside the processor.
- robustBufferAccess: a GPU feature that makes out-of-bounds reads safe by returning defined values instead of touching other memory.
- readPixels: the WebGL function that copies pixels from the GPU back to JavaScript.
- Side spray: filling memory with controlled data so that a bad read is likely to land on it.
- SIGSEGV: the signal the operating system sends when a program tries to access memory it is not allowed to.
- Stable: the normal public release channel of Chrome, not a beta or developer build.
- Stride: the number of bytes between one vertex and the next in a buffer.
- SwiftShader: a software implementation of a graphics API that runs on the CPU instead of a GPU.
- uint32_t: an unsigned 32-bit integer, a whole number from 0 to 4294967295.
- Unit test: a test that checks one small piece of code in isolation.
- VBO: vertex buffer object, the GPU-side buffer holding vertex data.
- Vertex: a point in a 3D shape, with coordinates and other details.
- Vulkan: a modern cross-platform graphics API.
- WebGL: a browser API for drawing 3D graphics on a web page.
- xvfb-run: a tool that provides a virtual display so graphics programs can run without a screen.