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

Use after free in GPU (CVE-2026-15772)

A temporary framebuffer object is deleted while still bound, and on Android the binding restoration is skipped, so certain PowerVR drivers can dereference freed state on the next bind. A compromised renderer could potentially corrupt memory in the unsandboxed GPU process and escape the sandbox.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 27 days

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: GLTextureHolder::ReadbackToMemory deletes a temporary FBO while it is still bound by ScopedFramebufferBinder. On Android with virtualized GL contexts, this can leave a deleted FBO active in certain PowerVR drivers, potentially leading to a use-after-free upon the next bind. Because the GPU process is unsandboxed by default on Android, a compromised renderer could exploit this for a sandbox escape.

Affected files:

  • gpu/command_buffer/service/shared_image/gl_texture_holder.cc

Estimated timestamp from git blame: 2022-11-17

Root Cause Analysis

In GLTextureHolder::ReadbackToMemory (gpu/command_buffer/service/shared_image/gl_texture_holder.cc), a temporary Framebuffer Object (FBO) is created and bound using gl::ScopedFramebufferBinder:

C++
  gl::GLApi* api = gl::g_current_gl_context;
  GLuint framebuffer;
  api->glGenFramebuffersEXTFn(1, &framebuffer);
  gl::ScopedFramebufferBinder scoped_framebuffer_binder(framebuffer);
  ...
  api->glDeleteFramebuffersEXTFn(1, &framebuffer);   // <-- Deleted while bound
  ...
  return true;                                       // <-- ~ScopedFramebufferBinder runs here

The FBO is deleted on line 483, but scoped_framebuffer_binder remains in scope until the end of the function on line 494. This means the FBO is deleted while it is still the bound active GL_FRAMEBUFFER.

On Android, virtualized GL contexts are active by default (use_virtualized_gl_contexts). When the destructor ~ScopedFramebufferBinder() runs, it calls state_restorer_->RestoreFramebufferBindings(). Under the SharedContextState virtual context wrapper, this restoration is a complete no-op that merely flags bindings as dirty inside the context state instead of issuing an actual glBindFramebuffer call. Consequently, the deleted FBO is left active in the GLES driver.

On certain Imagination/PowerVR drivers, deleting a bound FBO and subsequently binding a new FBO causes a driver-side use-after-free (UAF) or dereference of freed state. This is a known driver issue that Chromium protects against inside the validating decoder via workaround #471 (ensure_previous_framebuffer_not_deleted), but ScopedFramebufferBinder does not utilize this workaround.

Additionally, on early-return error paths (such as line 437), the function exits without deleting the generated framebuffer, resulting in a potential FBO resource leak.

Potential Trigger Steps

Because our tooling agent cannot execute code on physical Android hardware, these are suggested/potential steps that a compromised renderer could follow to trigger the vulnerability:

  1. Allocate Compound Image: Request a shared image with SHARED_IMAGE_USAGE_CPU_WRITE and GLES2/Raster usage flags, causing the GPU process to instantiate a CompoundImageBacking wrapping a GLTextureImageBacking.
  2. Update Texture Content: Write to the shared image so the GPU element acquires the latest content_id_.
  3. Invoke Readback: Issue a CopyToGpuMemoryBuffer request via GpuChannel Mojo. This routes to GLTextureHolder::ReadbackToMemory, generating and deleting fb1 while still bound.
  4. Rebind and Trigger UAF: Immediately issue a second readback request. When the next temporary FBO (fb2) is bound via glBindFramebufferEXT, the PowerVR driver dereferences the freed memory block of fb1, causing memory corruption in the GPU process.

Impact

A compromised renderer could potentially trigger this driver-level memory corruption. Since the GPU process is unsandboxed on Android by default, achieving arbitrary code execution inside the GPU process results in a direct sandbox escape.

Suggested Fix

We can resolve both the potential driver UAF and the resource leak on early returns by using absl::Cleanup to guarantee that the binder is destroyed and bindings are restored before the temporary FBO is deleted. Since C++ local variables are destroyed in reverse order of declaration, we can restructure the sequence as follows:

C++
  gl::GLApi* api = gl::g_current_gl_context;
  GLuint framebuffer = 0;
  api->glGenFramebuffersEXTFn(1, &framebuffer);

  absl::Cleanup delete_framebuffer = [api, framebuffer] {
    api->glDeleteFramebuffersEXTFn(1, &framebuffer);
  };

  gl::ScopedFramebufferBinder scoped_framebuffer_binder(framebuffer);

Evaluated with Chrome root at commit: 75203b87cbf6681eb7c7dda8e1d0bf781538c76a


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

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

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The temporary FBO is deleted before the scoped binder that keeps it bound goes out of scope, and on Android the virtual context wrapper makes the binder's restore a no-op, so the deleted FBO stays active in the driver.

Impact

A compromised renderer could potentially cause memory corruption in the GPU process, and since that process is unsandboxed on Android by default this could lead to a sandbox escape; the text notes the issue depends on specific PowerVR drivers.

What the attacker needed

Android device; PowerVR graphics driver; compromised renderer

The fix

The binder should be destroyed and bindings restored before the temporary FBO is deleted, for example by using a cleanup object so deletion happens after the binder goes out of scope and also on early returns.

How it was found

  1. Request a shared image with CPU write and GLES2/Raster usage so a compound backing wrapping a GL texture backing is created.
  2. Write to the shared image so the GPU element gets the latest content id.
  3. Issue a CopyToGpuMemoryBuffer request over the GPU channel, which reaches the readback path and deletes the first temporary FBO while it is still bound.
  4. Issue a second readback so the next temporary FBO is bound and the driver touches the freed memory.

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 framebuffer object is a small handle the graphics driver uses as a drawing target. The code here throws one away while it is still the active target, and on Android the cleanup step that would normally unbind it does nothing, so some graphics drivers later read memory that has already been freed. Because the graphics process on Android is not sandboxed, a bug there is more serious than usual.

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.