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

Out of bounds write in ANGLE (CVE-2026-17675)

ANGLE's Pixel Local Storage implementation lacks guards on resource-resizing entry points, so resizing an attached renderbuffer during an active PLS session enlarges the rendering area beyond the PLS backing texture. A compromised renderer could then trigger out-of-bounds image writes in the GPU process, potentially leading to memory corruption and a sandbox escape on platforms where the GPU process is privileged.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A vulnerability in ANGLE's Pixel Local Storage (PLS) implementation potentially allows out-of-bounds image writes in the GPU process. By resizing an attached renderbuffer or texture during an active PLS session, the rendering area can exceed PLS dimensions, leading to OOB writes. This could result in memory corruption and a potential sandbox escape on platforms like Android where the GPU process is privileged.

Affected files:

  • third_party/angle/scripts/generate_entry_points.py
  • third_party/angle/src/libANGLE/validationES.cpp
  • third_party/angle/src/libANGLE/Framebuffer.cpp
  • third_party/angle/src/libANGLE/Renderbuffer.cpp
  • third_party/angle/src/compiler/translator/tree_ops/RewritePixelLocalStorage.cpp

Estimated timestamp from git blame: Unknown (Google3 checkout)

Description

A potential out-of-bounds (OOB) write vulnerability exists in ANGLE's implementation of the GL_ANGLE_shader_pixel_local_storage extension. When a Pixel Local Storage (PLS) session is active, resizing an attached renderbuffer or texture can enlarge the rendering area beyond the dimensions of the PLS backing textures. This leads to out-of-bounds writes on backends that use the ImageLoadStore implementation (such as Vulkan and D3D11).

Root Cause

The vulnerability stems from missing guards in the autogenerated GLES entry points for resource resizing functions. Specifically, glRenderbufferStorage*, glTexImage*, and glTexStorage* are missing from the PLS_DISABLE_LIST and PLS_DISABLE_WILDCARDS in third_party/angle/scripts/generate_entry_points.py. This list determines which entry points receive an implicit guard to end an active PLS session via context->endPixelLocalStorageImplicit().

Because these functions lack the guard, a user can modify the storage of a bound and attached resource while PLS is active. Furthermore, the validation logic in third_party/angle/src/libANGLE/validationES2.cpp and validationES3.cpp does not check for active PLS sessions during these operations.

Potential Attack Scenario

A compromised renderer could potentially trigger this vulnerability using the following steps:

  1. Request and enable the GL_ANGLE_shader_pixel_local_storage extension.
  2. Create a framebuffer and attach a 64x64 depth renderbuffer (RB).
  3. Bind a 64x64 texture (T) to PLS plane 0 using glFramebufferTexturePixelLocalStorageANGLE.
  4. Start a PLS session: glBeginPixelLocalStorageANGLE(1, {GL_LOAD_OP_ZERO_ANGLE}). This passes validation as the RB and T dimensions match.
  5. Resize the depth attachment while the session is active: glBindRenderbuffer(GL_RENDERBUFFER, RB); glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT16, 4096, 4096). Due to the missing guard, the session is not terminated, and the rendering area expands to 4096x4096.
  6. Execute a draw call with a PLS-enabled fragment shader. The ANGLE translator (RewritePixelLocalStorage.cpp) emits imageStore calls using gl_FragCoord.xy as coordinates without clamping. Fragments at the edge of the 4096x4096 area will write far beyond the 64x64 bounds of the PLS backing texture.

In the Vulkan backend, ANGLE typically does not enable robustImageAccess (it only enables robustBufferAccess), meaning OOB storage-image writes are undefined and can lead to memory corruption in the GPU process. On Android, where the GPU process is often unsandboxed, this represents a significant sandbox escape vector.

Suggested Fix

  1. Add glRenderbufferStorage*, glTexImage*, and glTexStorage* (including multisample and 3D variants) to the PLS_DISABLE_LIST or PLS_DISABLE_WILDCARDS in third_party/angle/scripts/generate_entry_points.py to ensure PLS sessions are implicitly ended before resizing.
  2. Add explicit validation checks in validationES2.cpp and validationES3.cpp for these entry points to return GL_INVALID_OPERATION if a PLS session is active.
  3. Consider adding coordinate clamping in RewritePixelLocalStorage.cpp to provide a defense-in-depth measure against OOB accesses.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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.

The original report as published on the Chromium issue tracker. 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 the autogenerated GLES entry points for renderbuffer and texture storage functions were omitted from the PLS disable list, so they do not implicitly end an active PLS session, and validation does not reject them either.

Impact

Could result in memory corruption in the GPU process and a potential sandbox escape on platforms like Android where the GPU process is privileged; the text notes ANGLE typically does not enable robustImageAccess on Vulkan, so the writes are undefined.

What the attacker needed

Compromised renderer; GPU process privileged (e.g. Android); Vulkan or D3D11 backend

The fix

Should be fixed by adding the storage and image entry points to the PLS disable list so sessions end implicitly, adding validation to reject them during an active session, and optionally clamping coordinates as defence in depth.

How it was found

  1. Enable the GL_ANGLE_shader_pixel_local_storage extension.
  2. Create a framebuffer and attach a 64x64 depth renderbuffer.
  3. Bind a 64x64 texture to PLS plane 0.
  4. Begin a PLS session with a zero load operation.
  5. Resize the depth renderbuffer to 4096x4096 while the session is active.
  6. Draw with a PLS-enabled fragment shader so imageStore writes past the 64x64 texture bounds.

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.

Pixel Local Storage lets a shader keep a small scratch image in fast GPU memory while drawing. The code that manages this scratch image did not stop you from resizing the drawing surface mid-session, so the shader could write past the end of the scratch image. That kind of out-of-bounds write can corrupt GPU memory and, on some phones, help break out of 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.

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.