Out of bounds write in GPU (CVE-2026-9872)
A GPU fallback readback path allocates a tightly packed RGBA scratch buffer but the native read still honours an attacker-set pack alignment, so rows are written at a wider stride than allocated. A web page using WebGL2 on Android could write attacker-controlled pixel data past the end of the GPU process heap buffer.
- Fix shipped in 37 days
Report description
Validating Decoder Stale PACK_ALIGNMENT causes GPU Heap OOB Write
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?
The problem
Please describe the technical details of the vulnerability
PrepareUnpackBuffer() allocates a width * height * 4 RGBA scratch buffer and calls glReadPixels(..., GL_RGBA, GL_UNSIGNED_BYTE, ...) on Android for the fallback readback path used by GL_RGB / GL_FLOAT uploads. The code assumes tightly packed rows, but attacker-controlled GL_PACK_ALIGNMENT is still honored because the validating decoder forwards pack state to native GL and Blink resets only unpack state before this path. With PACK_ALIGNMENT = 8 and width = 3, each row is written with a 16-byte stride even though only 12 bytes per row are allocated.
The PoC sets PACK_ALIGNMENT = 8 and uploads a 3 x 8192 source canvas with per-row markers via texImage2D(GL_TEXTURE_2D, 0, GL_RGB9_E5, GL_RGB, GL_HALF_FLOAT, srcCanvas), reaching PrepareUnpackBuffer() on Android with the undersized buffer.
At those dimensions, the allocation is 98304 bytes, but rows are written at 16-byte stride. The last 2048 rows therefore go out of bounds, yielding 24576 bytes of attacker-controlled data written over roughly 32 KB beyond the allocation.
Steps to Reproduce
Serve poc.html over HTTP and open it in Chrome on Android. No flags required.
Crash Evidence
- Symbolized ASan stack trace (from Android content shell) attached as symbolized_stack_trace.txt
- Chrome Stable tombstone is from com.android.chrome:privileged_process* (CrGpuMain), signal 11 SEGV_ACCERR (write), with the fault in ReadPixels/glReadPixels
- chrome://crashes
0e2b36268c1779c4or311f8eaf5e9c3abb
Proposed Fix
Either compute the allocation using the effective packed row stride, or temporarily force a safe GL_PACK_ALIGNMENT around the internal glReadPixels call and restore the previous value.
Bisect
Introduced by commit 986a220965888 (Add readback path for CopyTextureCHROMIUM, 2017-03-30), which added the fallback readback path and its tight-row allocation assumption.
Impact analysis
- Web-accessible via WebGL2 on Android, no compromised renderer required.
- GPU process linear heap overwrite of attacker-controlled pixel data, 24576 bytes, deterministic geometry.
- On current Android phone builds, this reaches the GPU process without the Android GPU sandbox enabled by default.
The cause
What version of Chrome have you found the security issue in?
147.0.7727.101 (Official Build) (64-bit)
Is the security issue related to a crash?
Yes, it is related to a crash.
Choose the type of vulnerability
Memory Corruption (in a non-sandboxed process)
How would you like to be publicly acknowledged for your report?
cinzinga
Context
This is a Chrome VRP report about an out of bounds write in the GPU process of Chrome on Android, tracked as CVE-2026-9872 and rated critical. The affected code lives in the GPU command buffer service, specifically in the copy texture path:
https://source.chromium.org/chromium/chromium/src/+/main:gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
The feature involved is the fallback readback path used when a GL_RGB / GL_FLOAT texture upload cannot be handled directly. PrepareUnpackBuffer() allocates a width * height * 4 RGBA scratch buffer and calls glReadPixels(..., GL_RGBA, GL_UNSIGNED_BYTE, ...) on Android to fill it. That buffer is meant to hold tightly packed rows.
Setup
- Target: Chrome on Android, version
147.0.7727.101 (Official Build) (64-bit). - Reachability: WebGL2 from a web page, no compromised renderer required.
- No flags required to reproduce.
- The PoC is served as
poc.htmlover HTTP and opened in Chrome on Android. - Crash evidence was collected from an Android content shell (symbolized ASan stack trace) and from Chrome Stable (tombstone).
Finding it
The researcher noticed that the allocation in PrepareUnpackBuffer() assumes tightly packed rows, but the attacker-controlled GL_PACK_ALIGNMENT is still honoured on this path. The validating decoder forwards pack state to native GL, and Blink resets only unpack state before this path, so pack state survives into the internal glReadPixels call.
With PACK_ALIGNMENT = 8 and width = 3, each row is written with a 16-byte stride even though only 12 bytes per row are allocated. That mismatch between the allocation size and the stride used by glReadPixels is the bug.
Exploitation
Step 1: Set the pack alignment and upload a source canvas
The PoC sets PACK_ALIGNMENT = 8 and uploads a 3 x 8192 source canvas with per-row markers via:
texImage2D(GL_TEXTURE_2D, 0, GL_RGB9_E5, GL_RGB, GL_HALF_FLOAT, srcCanvas)
This reaches PrepareUnpackBuffer() on Android with the undersized buffer.
Step 2: Serve and open the page
Serve poc.html over HTTP and open it in Chrome on Android. No flags are required.
Step 3: Observe the crash
At these dimensions the allocation is 98304 bytes, but rows are written at a 16-byte stride. The last 2048 rows therefore go out of bounds, yielding 24576 bytes of attacker-controlled data written over roughly 32 KB beyond the allocation.
The crash evidence recorded in the report:
- A symbolized ASan stack trace from Android content shell, attached as
symbolized_stack_trace.txt. - A Chrome Stable tombstone from
com.android.chrome:privileged_process*(CrGpuMain), signal 11SEGV_ACCERR(write), with the fault inReadPixels/glReadPixels. - Crash IDs visible in
chrome://crashes:0e2b36268c1779c4or311f8eaf5e9c3abb.
Root cause
PrepareUnpackBuffer() sizes its scratch buffer as width * height * 4, which is correct only for tightly packed rows. The internal glReadPixels call, however, uses whatever GL_PACK_ALIGNMENT is currently set. Because the validating decoder forwards pack state to native GL and Blink resets only unpack state before this path, a page can leave PACK_ALIGNMENT at a value that makes each row wider than the allocation assumes.
The report traces the behaviour back to commit 986a220965888 (Add readback path for CopyTextureCHROMIUM, 2017-03-30), which introduced the fallback readback path together with its tight-row allocation assumption.
Impact
- Web-accessible via WebGL2 on Android, with no compromised renderer required.
- A GPU process linear heap overwrite with attacker-controlled pixel data, 24576 bytes, at deterministic geometry.
- On current Android phone builds, the report states this reaches the GPU process without the Android GPU sandbox enabled by default.
- The vulnerability class is memory corruption in a non-sandboxed process, and the issue is related to a crash.
Fix
The report proposes two options: either compute the allocation using the effective packed row stride, or temporarily force a safe GL_PACK_ALIGNMENT around the internal glReadPixels call and restore the previous value afterwards.
What happened, in plain words
A security researcher found a bug in Google Chrome, the web browser, on Android phones. The bug lets a normal web page, with no special permissions and no trickery beyond loading it, write data past the end of a memory area inside Chrome's GPU process. The GPU process is the part of the browser that talks to the graphics hardware to draw what you see. Writing past the end of a memory area is called an out of bounds write, and it is a classic memory corruption bug: the program puts data where it was not supposed to go, and whatever lived there gets overwritten.
The bug was reported through the Chrome Vulnerability Reward Program (Chrome VRP), a scheme where Google pays people for finding and privately reporting security problems in Chrome. The researcher was acknowledged as cinzinga. The issue is tracked as CVE-2026-9872. A CVE is a public catalogue number given to a known security flaw so people can refer to it unambiguously.
To understand the rest, you need a few ideas from how browsers draw 3D graphics:
- WebGL2 is a programming interface (an API) that lets a web page ask the browser to draw 3D graphics using the graphics card. An API is simply a fixed set of commands one program can send to another; think of a restaurant menu: you can only order what is listed, but the kitchen has to handle every listed order correctly.
- GPU stands for graphics processing unit, the chip that draws images. Chrome runs the code that drives it in a separate process, the GPU process, so that a crash or bug there does not take down the whole browser.
- Texture is the graphics term for an image stored in GPU memory. Uploading a texture means copying pixel data from the page into that GPU-side image.
- Pixel format describes how each pixel's colour is stored: for example RGBA means four channels (red, green, blue, alpha), and GL_RGB means three channels. Different formats take different numbers of bytes per pixel.
- Buffer is just a block of memory reserved to hold data. A scratch buffer is a temporary one used during a calculation.
- Heap is the pool of memory a program borrows from when it needs space at runtime. A heap overwrite means data was written into memory the program did not intend to hand out for that purpose.
- Sandbox is a security boundary that limits what a process can do even if it is compromised. The report notes that on current Android phone builds the GPU process is reached without the Android GPU sandbox being enabled by default.
Context
The report concerns an out of bounds write in the GPU process of Chrome on Android. The affected code is in the GPU command buffer service, the part of Chrome that receives drawing commands from the page and passes them to the graphics driver. Specifically, the bug is in the copy texture path, the code that copies one texture into another. The report points at this file:
https://source.chromium.org/chromium/chromium/src/+/main:gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
This is a link into the Chromium source code browser, a website where anyone can read Chrome's source code. The path after the colon names the file inside the project: it lives under gpu/command_buffer/service/ and is called gles2_cmd_copy_texture_chromium.cc. The .cc ending means it is C++ source code.
The feature involved is a fallback readback path. A fallback is what a program does when the fast, direct way of doing something is not available: it takes a slower detour instead. Here, when a texture upload in the GL_RGB / GL_FLOAT format cannot be handled directly, Chrome falls back to reading pixels back from the GPU into ordinary memory, converting them, and uploading them again. Reading pixels back is done with a graphics command called glReadPixels, which copies pixels out of GPU memory into a buffer you supply.
The function PrepareUnpackBuffer() prepares that buffer. It allocates width * height * 4 bytes, that is, four bytes for every pixel of the image (one byte each for red, green, blue and alpha), and then calls glReadPixels(..., GL_RGBA, GL_UNSIGNED_BYTE, ...) on Android to fill it. The buffer is meant to hold tightly packed rows: each row of pixels starts immediately after the previous one, with no gaps.
Setup
The conditions needed to reproduce the bug, as listed in the report:
- Target: Chrome on Android, version
147.0.7727.101 (Official Build) (64-bit). - Reachability: a web page using WebGL2 is enough. No compromised renderer is required. The renderer is the process that runs the page's code; normally an attacker would need to break into it first, but here the page can trigger the bug directly.
- No flags required: Chrome's experimental flags (hidden settings used for testing) do not need to be changed.
- The proof of concept (PoC), a small test page demonstrating the bug, is served as
poc.htmlover HTTP and opened in Chrome on Android. HTTP is the ordinary protocol browsers use to fetch web pages. - Crash evidence was collected in two ways: from an Android content shell (a bare-bones test browser used by developers) with a symbolized ASan stack trace, and from Chrome Stable (the normal release build) with a tombstone.
Two of those terms deserve a plain explanation. ASan stands for AddressSanitizer, a debugging tool built into compiled programs that watches memory accesses and reports when code reads or writes outside a valid area; a stack trace is the list of function calls that led to the problem, and symbolized means those calls are shown with readable function names instead of raw addresses. A tombstone is Android's crash record: when a native program crashes, Android writes a file describing the signal, the faulting address and the call stack.
Finding it
The researcher noticed a mismatch. The allocation in PrepareUnpackBuffer() assumes tightly packed rows, but a setting called GL_PACK_ALIGNMENT, which the web page controls, is still honoured on this path.
What is GL_PACK_ALIGNMENT? When the GPU hands pixel rows back to the CPU, it can pad each row so that it starts on a memory address that is a multiple of some number. That number is the pack alignment. It exists for performance: some hardware reads memory faster when rows begin at aligned addresses. The padding is invisible in the pixel data itself, but it changes how many bytes each row occupies in the destination buffer. If a row is 12 bytes of actual pixels and the alignment is 8, the GPU rounds the row up to the next multiple of 8, which is 16 bytes, and leaves 4 bytes of padding at the end of the row.
The report explains why the page's setting survives into the internal call. Chrome's validating decoder, the component that checks commands coming from the page before passing them on, forwards pack state to the native GL layer. Blink, Chrome's rendering engine, resets only the unpack state before this path, not the pack state. So the pack alignment chosen by the page is still in effect when the internal glReadPixels runs.
With PACK_ALIGNMENT = 8 and width = 3, each row is written with a 16-byte stride even though only 12 bytes per row are allocated. Stride means the distance in memory from the start of one row to the start of the next. The allocation was sized for 12-byte rows, but the write uses 16-byte rows, so every row after the first lands further along than the buffer allows. That mismatch between the allocation size and the stride used by glReadPixels is the bug.
Exploitation
Step 1: Set the pack alignment and upload a source canvas
The PoC sets PACK_ALIGNMENT = 8 and uploads a 3 x 8192 source canvas with per-row markers via:
texImage2D(GL_TEXTURE_2D, 0, GL_RGB9_E5, GL_RGB, GL_HALF_FLOAT, srcCanvas)
Line by line, in plain words:
texImage2Dis the WebGL command that uploads pixel data into a texture. The name means "two-dimensional texture image".GL_TEXTURE_2Dsays the texture is a flat two-dimensional image.0is the mipmap level. Mipmaps are smaller pre-shrunk copies of a texture used when it is drawn far away; level 0 means the full-size image.GL_RGB9_E5is the internal format, the exact way the GPU is asked to store the texture. It is a compact format that packs colour information into a small number of bits per pixel.GL_RGBis the format of the data being supplied: three colour channels, no alpha.GL_HALF_FLOATis the type of each value: half-precision floating point numbers, a compact way to store decimals.srcCanvasis the source: an HTML canvas element, a drawing surface the page fills with pixels. Here it is3pixels wide and8192pixels tall, and each row carries a marker so the researcher can tell rows apart in memory afterwards.
This combination is what reaches PrepareUnpackBuffer() on Android with the undersized buffer: the GL_RGB / GL_FLOAT style upload cannot be handled directly, so Chrome takes the fallback readback path.
Step 2: Serve and open the page
Serve poc.html over HTTP and open it in Chrome on Android. No flags are required. Serving the file over HTTP simply means putting it on a small web server and loading its address in the browser, which is the normal way a web page reaches a user.
Step 3: Observe the crash
At these dimensions the allocation is 98304 bytes, but rows are written at a 16-byte stride. The arithmetic: 3 pixels wide times 4 bytes per pixel is 12 bytes per row, times 8192 rows is 98304 bytes. But the GPU writes 16 bytes per row, so the last 2048 rows go out of bounds, yielding 24576 bytes of attacker-controlled data written over roughly 32 KB beyond the allocation. Attacker-controlled means the bytes come from the page's own pixel data, so the page decides what gets written into the neighbouring memory.
The crash evidence recorded in the report:
- A symbolized ASan stack trace from Android content shell, attached as
symbolized_stack_trace.txt. - A Chrome Stable tombstone from
com.android.chrome:privileged_process*(CrGpuMain), signal 11SEGV_ACCERR(write), with the fault inReadPixels/glReadPixels. - Crash IDs visible in
chrome://crashes:0e2b36268c1779c4or311f8eaf5e9c3abb.
A few of those need unpacking. com.android.chrome:privileged_process* is the name Android gives to Chrome's privileged process, and CrGpuMain is the entry point of the GPU process's main loop, so the tombstone shows the crash happened in the GPU process. Signal 11 is the operating system's way of saying a program touched memory it was not allowed to touch; SEGV_ACCERR means the access was a write to a page of memory the process had no permission to write. The fault being in ReadPixels/glReadPixels points at the exact call that ran off the end of the buffer. chrome://crashes is a built-in Chrome page that lists recent crash reports, and the two strings are the identifiers of the crashes recorded there.
Root cause
PrepareUnpackBuffer() sizes its scratch buffer as width * height * 4, which is correct only for tightly packed rows. The internal glReadPixels call, however, uses whatever GL_PACK_ALIGNMENT is currently set. Because the validating decoder forwards pack state to native GL and Blink resets only unpack state before this path, a page can leave PACK_ALIGNMENT at a value that makes each row wider than the allocation assumes.
The report traces the behaviour back to commit 986a220965888 (Add readback path for CopyTextureCHROMIUM, 2017-03-30), which introduced the fallback readback path together with its tight-row allocation assumption. A commit is a recorded change to a code repository; this one is dated 2017-03-30 and its message says it added the readback path for CopyTextureCHROMIUM. In other words, the faulty assumption has been in the code since that change.
Impact
- Web-accessible via WebGL2 on Android, with no compromised renderer required. Any page the user visits could attempt it.
- A GPU process linear heap overwrite with attacker-controlled pixel data, 24576 bytes, at deterministic geometry. Deterministic means the same dimensions always produce the same overflow, so the attacker can plan exactly what gets overwritten.
- On current Android phone builds, the report states this reaches the GPU process without the Android GPU sandbox enabled by default.
- The vulnerability class is memory corruption in a non-sandboxed process, and the issue is related to a crash.
Fix
The report proposes two options: either compute the allocation using the effective packed row stride, so the buffer is big enough for the padded rows the GPU will actually write, or temporarily force a safe GL_PACK_ALIGNMENT around the internal glReadPixels call and restore the previous value afterwards, so the internal call always writes tightly packed rows regardless of what the page set.
Glossary
- API: a fixed set of commands one program can send to another, like a menu you can order from.
- ASan (AddressSanitizer): a debugging tool that detects and reports out of bounds memory accesses in compiled programs.
- Blink: Chrome's rendering engine, the component that turns HTML, CSS and JavaScript into what you see.
- Buffer: a block of memory reserved to hold data.
- Chrome VRP: the Chrome Vulnerability Reward Program, Google's scheme that pays researchers for privately reporting security bugs in Chrome.
- Commit: a recorded change to a code repository, identified by a hash such as
986a220965888. - CVE: a public catalogue number assigned to a known security vulnerability.
- Deterministic: producing the same result every time, so it can be predicted and planned for.
- Fallback: a slower alternative path a program takes when the direct way is unavailable.
- GL_PACK_ALIGNMENT: a graphics setting that pads each pixel row when data is read back from the GPU, so rows start at aligned memory addresses.
- glReadPixels: the graphics command that copies pixels out of GPU memory into a buffer supplied by the program.
- GPU: graphics processing unit, the chip that draws images; Chrome runs its driver code in a separate GPU process.
- Heap: the pool of memory a program borrows from at runtime.
- HTTP: the ordinary protocol browsers use to fetch web pages.
- Memory corruption: a bug where a program writes data into memory it should not touch, potentially changing other data or crashing.
- Mipmap: a smaller pre-shrunk copy of a texture used when it is drawn at a distance; level 0 is the full-size image.
- Out of bounds write: writing data past the end of an allocated memory area.
- Pixel format: how each pixel's colour is stored, for example RGBA (four channels) or GL_RGB (three channels).
- PoC (proof of concept): a small test that demonstrates a bug.
- Renderer: the browser process that runs a web page's code.
- Sandbox: a security boundary that limits what a process can do even if it is compromised.
- Scratch buffer: a temporary buffer used during a calculation.
- Signal 11 / SEGV_ACCERR: the operating system's report that a program accessed memory it had no permission to access; ACCERR means the access was a write to a page it could not write.
- Stack trace: the list of function calls that led to a crash; symbolized means shown with readable names.
- Stride: the distance in memory from the start of one row of pixels to the start of the next.
- texImage2D: the WebGL command that uploads pixel data into a two-dimensional texture.
- Texture: an image stored in GPU memory.
- Tombstone: Android's crash record file describing a native crash.
- Validating decoder: the Chrome component that checks commands from the page before passing them to the native graphics layer.
- WebGL2: a browser API that lets web pages draw 3D graphics using the GPU.