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

Out of bounds memory access in ANGLE (CVE-2026-10999)

ANGLE's D3D11 backend truncates a 64-bit vertex attribute offset to a 32-bit signed integer, causing a negative offset that shifts the source pointer before the buffer. A compromised renderer could trigger a heap out-of-bounds read in the GPU process.

c6eed09fc8b174b0f3eebedcceb1e792 Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Integer truncation in ANGLE D3D11 VertexDataManager leads to heap OOB read from compromised renderer on Windows

Summary

ANGLE's D3D11 backend truncates a 64-bit vertex attribute offset to a 32-bit signed integer when performing CPU-side vertex format conversion. When a compromised renderer supplies an offset of 0x80000000 or larger, the truncation produces a negative value that shifts the source data pointer backward past the buffer allocation. The subsequent copy reads heap memory preceding the buffer. The crash occurs in the GPU process on the GPU scheduler thread. Platform: Windows only (requires the D3D11 ANGLE backend).

Bisect

Introducing Commit: 2597fb6469a315f4942b867727c074e78bf2233a (ANGLE repo)

The commit refactored vertex array handling for ES 3.1 Vertex Attrib Binding support. It replaced direct field accesses with calls to ComputeVertexAttributeOffset, which returns a GLintptr (64-bit), but stored the result in a plain int (32-bit). Before this commit the offset was computed inline from narrower fields that could not exceed 32-bit range.

Root Cause

When a WebGL page calls gl.vertexAttribPointer with a vertex format that requires CPU-side conversion on the D3D11 backend, the draw path reaches VertexDataManager::StoreStaticAttrib. This function retrieves the attribute's byte offset through ComputeVertexAttributeOffset, which returns a GLintptr, and immediately truncates it to int:

C++
// third_party/angle/src/libANGLE/renderer/d3d/VertexDataManager.cpp
const int offset = static_cast<int>(ComputeVertexAttributeOffset(attrib, binding));

The truncated value is then added to the system-memory copy of the vertex buffer:

C++
ANGLE_TRY(bufferD3D->getData(context, &sourceData));
if (sourceData)
{
    sourceData += offset;
}

When the original offset is 0x80000000 (2,147,483,648), static_cast<int> wraps it to -2,147,483,648. Adding this negative value to sourceData moves the pointer two gigabytes backward. However, the pointer does not land a full two gigabytes away from the buffer because storeVertexAttributes subsequently applies a compensating forward adjustment derived from startIndex:

C++
int startIndex = offset / static_cast<int>(ComputeVertexAttributeStride(attrib, binding));

In VertexBuffer11::storeVertexAttributes, the start parameter (which is -startIndex) is multiplied by the stride and added to the input pointer:

C++
// third_party/angle/src/libANGLE/renderer/d3d/d3d11/VertexBuffer11.cpp
const uint8_t *input = sourceData;
if (instances == 0 || binding.getDivisor() == 0)
{
    input += inputStride * start;
}

For offset 0x80000000 and stride 3, the arithmetic works out as follows. The truncated offset is -2,147,483,648. The start index is -2,147,483,648 divided by 3, which C++ truncates toward zero to -715,827,882. The negated start index, 715,827,882, is multiplied by stride 3 to give 2,147,483,646. The net displacement is -2,147,483,648 plus 2,147,483,646, which equals -2. The copy function therefore reads starting two bytes before the 256-byte buffer allocation, and ASAN reports a heap-buffer-overflow at exactly that location.

Only vertex formats that require CPU-side conversion reach StoreStaticAttrib. On D3D11 Feature Level 10.0 and above, GL_BYTE normalized with four components maps to DXGI_FORMAT_R8G8B8A8_SNORM and uses direct storage with no CPU copy. With three components, however, the format maps to R8G8B8_SNORM, which has no native D3D11 equivalent and is tagged VERTEX_CONVERT_CPU. This forces the attribute through the static conversion path where the truncation occurs.

Two renderer-side checks ordinarily reject offsets above INT_MAX before they reach the GPU process. WebGLRenderingContextBase::ValidateValueFitNonNegInt32 in the Blink layer rejects values exceeding std::numeric_limits<int>::max(), and GLES2Implementation::ValidateOffset in the GPU command buffer client performs the same check using base::IsValueInRangeForNumericType<int32_t>. Both checks execute exclusively in the renderer process. ValidateValueFitNonNegInt32 resides under third_party/blink/renderer/, which is Blink rendering engine code that runs in the renderer. ValidateOffset resides under gpu/command_buffer/client/, which is the client half of Chromium's GPU command buffer architecture; the client serializes GL calls into shared-memory command buffers within the renderer process, while the service half under gpu/command_buffer/service/ deserializes and executes them in the GPU process. Neither patched function is linked into or invoked by the GPU process. Under the compromised-renderer threat model these checks carry no security weight, and the attached patch.diff removes them to demonstrate the bug.

A natural question is whether ANGLE's own draw-time validation catches the oversized offset before StoreStaticAttrib runs. The answer is no. ANGLE's element-limit validation, which compares the vertex buffer's byte size against the attribute offset to determine how many elements can be fetched, is gated on mBufferAccessValidationEnabled. On the D3D11 backend this flag is unconditionally false because renderer11_utils.cpp sets robustBufferAccessBehaviorKHR to true:

C++
// third_party/angle/src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp
// Direct3D guarantees to return zero for any resource that is accessed out of bounds.
extensions->robustBufferAccessBehaviorKHR = true;

The resulting computation in Context.cpp disables the validation:

C++
mBufferAccessValidationEnabled =
    !mSupportedExtensions.robustBufferAccessBehaviorKHR && mRequiresRobustBehavior;

D3D11's out-of-bounds guarantee covers GPU-side resource reads, but it does not protect the CPU-side memcpy that ANGLE performs in its vertex format conversion routines. The validation gap allows the truncated offset to pass through unchecked on every Windows system with a D3D11 GPU.

Reproduce

This issue was tested on Chromium commit cdd1f63c02 on Windows 10 x64 with an ASAN build. The bug requires the D3D11 ANGLE backend, so it applies only to Windows.

Because the vulnerable code path in the GPU process is guarded by two renderer-side range checks that reject offsets above INT_MAX, reproducing the bug requires simulating a compromised renderer. The attached patch.diff removes the upper-bound check from GLES2Implementation::ValidateOffset in the GPU command buffer client and from WebGLRenderingContextBase::ValidateValueFitNonNegInt32 in the Blink WebGL layer. Both functions reside in the renderer process, so modifying them is consistent with the compromised-renderer threat model. No GPU-process code is changed.

To begin, check out the tested revision and apply the patch.

cd D:\chromium\src
git checkout cdd1f63c02
git apply patch.diff

Configure an ASAN build by creating out/asan-release/args.gn with the following content.

is_asan = true
is_debug = false
is_component_build = true
symbol_level = 1
dcheck_always_on = false

Then build Chrome.

autoninja -C out/asan-release chrome

Launch Chrome and open the PoC.

set ASAN_OPTIONS=detect_odr_violation=0
out\asan-release\chrome.exe --enable-logging=stderr --no-first-run --no-default-browser-check --user-data-dir=%TEMP%\poc file:///D:/chromium/src/poc.html

The GPU process will print an AddressSanitizer heap-buffer-overflow report to stderr and abort. The browser process will log "GPU process exited unexpectedly." The expected ASAN summary line is:

SUMMARY: AddressSanitizer: heap-buffer-overflow copyvertex.inc.h:102
  in rx::CopyNativeVertexData<signed char,3,4,127>

After reproducing, restore the tree with git checkout -- . to undo the renderer patch.

ASAN log

==31140==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x11cdfac6447e at pc 0x7ff8e74db30c bp 0x004c03bfd2d0 sp 0x004c03bfd318
READ of size 3 at 0x11cdfac6447e thread T0
    #0 0x7ff8e74db30b in _asan_memcpy+0x25b (D:\chromium\src\out\asan-release\clang_rt.asan_dynamic-x86_64.dll+0x18004b30b)
    #1 0x7ff819469c24 in rx::CopyNativeVertexData<signed char,3,4,127> D:\chromium\src\third_party\angle\src\libANGLE\renderer\copyvertex.inc.h:102
    #2 0x7ff819bc3c8f in rx::VertexBuffer11::storeVertexAttributes D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\VertexBuffer11.cpp:133
    #3 0x7ff819c96530 in rx::StaticVertexBufferInterface::storeStaticAttribute D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\VertexBuffer.cpp:299
    #4 0x7ff819c9a233 in rx::VertexDataManager::StoreStaticAttrib D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\VertexDataManager.cpp:406
    #5 0x7ff819bc2059 in rx::VertexArray11::updateDirtyAttribs D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\VertexArray11.cpp:277
    #6 0x7ff819bc162c in rx::VertexArray11::syncStateForDraw D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\VertexArray11.cpp:151
    #7 0x7ff819b6680a in rx::StateManager11::updateState D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\StateManager11.cpp:2001
    #8 0x7ff819adc11d in rx::Context11::drawArrays D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\Context11.cpp:285
    #9 0x7ff819165dc0 in GL_DrawArrays D:\chromium\src\third_party\angle\src\libGLESv2\entry_points_gles_2_0_autogen.cpp:1819
    #10 0x7ff8dd51de75 in gl::RealGLApi::glDrawArraysFn D:\chromium\src\ui\gl\gl_gl_api_implementation.cc:390
    #11 0x7ff835f7dc6f in gpu::gles2::GLES2DecoderPassthroughImpl::DoDrawArrays D:\chromium\src\gpu\command_buffer\service\gles2_cmd_decoder_passthrough_doers.cc:1155
    #12 0x7ff835f4235c in gpu::gles2::GLES2DecoderPassthroughImpl::DoCommandsImpl<0> D:\chromium\src\gpu\command_buffer\service\gles2_cmd_decoder_passthrough.cc:742
    #13 0x7ff8347fc37d in gpu::CommandBufferService::Flush D:\chromium\src\gpu\command_buffer\service\command_buffer_service.cc:267
    #14 0x7ff835ca6b54 in gpu::CommandBufferStub::OnAsyncFlush D:\chromium\src\gpu\ipc\service\command_buffer_stub.cc:504
    #15 0x7ff835ca5a1e in gpu::CommandBufferStub::ExecuteDeferredRequest D:\chromium\src\gpu\ipc\service\command_buffer_stub.cc:173
    #16 0x7ff835cd21ff in gpu::GpuChannel::ExecuteDeferredRequest D:\chromium\src\gpu\ipc\service\gpu_channel.cc:833
    #17 0x7ff835ce30c2 in base::internal::Invoker<...>::RunOnce D:\chromium\src\base\functional\bind_internal.h:982
    #18 0x7ff83484a66f in base::internal::Invoker<...>::RunImpl<...> D:\chromium\src\base\functional\bind_internal.h:1069
    #19 0x7ff8348197ef in gpu::Scheduler::ExecuteSequence D:\chromium\src\gpu\command_buffer\service\scheduler.cc:707
    #20 0x7ff834817915 in gpu::Scheduler::RunNextTask D:\chromium\src\gpu\command_buffer\service\scheduler.cc:625
    #21 0x7ff83481cc18 in base::internal::Invoker<...>::RunOnce D:\chromium\src\base\functional\bind_internal.h:982
    #22 0x7ff8e8a420d8 in base::TaskAnnotator::RunTaskImpl D:\chromium\src\base\task\common\task_annotator.cc:229
    #23 0x7ff8e8ad6471 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl D:\chromium\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:475
    #24 0x7ff8e8ad52d3 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork D:\chromium\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:346
    #25 0x7ff8e88a5060 in base::MessagePumpDefault::Run D:\chromium\src\base\message_loop\message_pump_default.cc:42
    #26 0x7ff8e8ad820f in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run D:\chromium\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:650
    #27 0x7ff8e8993cbd in base::RunLoop::Run D:\chromium\src\base\run_loop.cc:135
    #28 0x7ff8ad0dbdb9 in content::GpuMain D:\chromium\src\content\gpu\gpu_main.cc:479

0x11cdfac6447e is located 2 bytes before 256-byte region [0x11cdfac64480,0x11cdfac64580)
allocated by thread T0 here:
    #0 0x7ff8e74dc8df in _asan_wrap_memcpy+0x73f (D:\chromium\src\out\asan-release\clang_rt.asan_dynamic-x86_64.dll+0x18004c8df)
    #1 0x7ff819f99bcd in angle::MemoryBuffer::resize D:\chromium\src\third_party\angle\src\common\MemoryBuffer.cpp:40
    #2 0x7ff819ad0a24 in rx::Buffer11::SystemMemoryStorage::resize D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\Buffer11.cpp:1691
    #3 0x7ff819ac2e34 in rx::Buffer11::getData D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\Buffer11.cpp:375
    #4 0x7ff819c99c00 in rx::VertexDataManager::StoreStaticAttrib D:\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\VertexDataManager.cpp:375

SUMMARY: AddressSanitizer: heap-buffer-overflow D:\chromium\src\third_party\angle\src\libANGLE\renderer\copyvertex.inc.h:102 in rx::CopyNativeVertexData<signed char,3,4,127>
Shadow bytes around the buggy address:
  0x11cdfac64180: fd fa fa fa fa fa fa fa fa fa fa fa fa fa f7 fa
  0x11cdfac64200: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x11cdfac64280: fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa
  0x11cdfac64300: fa fa fa fa fa fa f7 fa fd fd fd fd fd fd fd fd
  0x11cdfac64380: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
=>0x11cdfac64400: fd fa fa fa fa fa fa fa fa fa fa fa fa fa f7[fa]
  0x11cdfac64480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x11cdfac64500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x11cdfac64580: fa fa fa fa fa fa f7 fa fd fd fd fd fd fd fd fd
  0x11cdfac64600: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x11cdfac64680: fd fa fa fa fa fa fa fa fa fa fa fa fa fa f7 fa

Credit

Please use c6eed09fc8b174b0f3eebedcceb1e792 as the credit for this vulnerability. Thank you.

The original report as published on the Chromium issue tracker, by c6eed09fc8b174b0f3eebedcceb1e792. 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

Likely a 64-bit offset was truncated to a 32-bit signed integer, and the resulting negative value was used without validation in the GPU process.

Impact

A compromised renderer could cause an out-of-bounds read in the GPU process, potentially leading to information disclosure or a crash, but only on Windows with the D3D11 backend.

What the attacker needed

Compromised renderer; Windows with D3D11 backend; renderer-side checks bypassed

How it was found

  1. Check out the tested Chromium revision and apply the provided patch that removes renderer-side range checks.
  2. Configure an ASAN build with the given GN arguments.
  3. Build Chrome using autoninja.
  4. Launch Chrome with ASAN options and open the proof-of-concept HTML file.
  5. Observe the GPU process printing an AddressSanitizer heap-buffer-overflow report and aborting.

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 graphics library used by Chrome on Windows makes a mistake when handling a number that describes where vertex data starts. It stores a large number in a smaller container, which turns it negative, so the program reads memory from before the intended buffer. This only matters if an attacker already controls the renderer process, which is a serious compromise.

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 by c6eed09fc8b174b0f3eebedcceb1e792

View all

52 more disclosed reports, best first.

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.