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

Use after free in Skia (CVE-2026-19154)

Skia's Ganesh GL backend does not implement the Chromium workaround that avoids deleting a currently bound framebuffer object on PowerVR/Imagination Android GPUs, so a framebuffer can be deleted while still bound. A compromised renderer could use the out-of-process rasterisation path to trigger a driver-level use-after-free in the unsandboxed GPU process.

Google Chrome

Originally disclosed on Chrome VRP

Critical View original
  • Fix shipped in 29 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: A Chromium driver-bug workaround for PowerVR/Imagination GPUs on Android mitigates a driver-level Use-After-Free when deleting currently bound Framebuffer Objects (FBOs). While this workaround (#471, 'ensure_previous_framebuffer_not_deleted') is mitigated in the GLES2 command decoder, it is not implemented in Skia's Ganesh GL backend. A compromised renderer could potentially exploit this missing check on the OOP-R path to trigger a driver-level Use-After-Free in the unsandboxed Android GPU process.

Affected files:

  • third_party/skia/src/gpu/ganesh/gl/GrGLGpu.cpp
  • third_party/skia/src/gpu/gpu_workaround_list.txt

Estimated timestamp from git blame: 2026-02-11

Root Cause Analysis

Chromium implements GPU-driver-bug workaround #471 (ensure_previous_framebuffer_not_deleted) to address a native GLES driver bug in PowerVR/Imagination GPUs on Android. The bug occurs when a Framebuffer Object (FBO) is deleted while currently bound to the context. Under these conditions, the driver retains an internal stale reference to the deleted FBO across subsequent glBindFramebuffer operations, resulting in a driver-internal Use-After-Free (UAF).

In the GLES2 command decoder, this is mitigated by implementing a complete-FBO sandwich on every binding transition (gpu/command_buffer/service/gles2_cmd_decoder.cc:4535-4543) and rebinding to FBO 0 before deletion (gles2_cmd_decoder.cc:12284-12293).

However, Skia's Ganesh GL backend—which acts as an independent OpenGL producer on the same native context via SharedContextState—does not consume or implement this workaround.

In Chromium builds, Skia is compiled with SK_GPU_WORKAROUNDS_HEADER="gpu/config/gpu_driver_bug_workaround_autogen.h", which exposes ensure_previous_framebuffer_not_deleted inside the GrDriverBugWorkarounds class. However, Skia's GL backend contains no consumer for this flag:

C++
// third_party/skia/src/gpu/ganesh/gl/GrGLGpu.cpp:3219-3225
void GrGLGpu::bindFramebuffer(GrGLenum target, GrGLuint fboid) {
    GL_CALL(BindFramebuffer(target, fboid));   // Direct raw glBindFramebufferEXT call
    if (target == GR_GL_FRAMEBUFFER || target == GR_GL_DRAW_FRAMEBUFFER) {
        fBoundDrawFramebuffer = fboid;
    }
    this->onFBOChanged();
}
C++
// third_party/skia/src/gpu/ganesh/gl/GrGLGpu.cpp:3227-3251
void GrGLGpu::deleteFramebuffer(GrGLuint fboid) {
    this->handleDirtyContext();
    if (fboid == fBoundDrawFramebuffer &&
        this->caps()->workarounds().unbind_attachments_on_bound_render_fbo_delete) {
        // Only checks the Adreno sibling workaround, not the Imagination one
        ...
    }
    GL_CALL(DeleteFramebuffers(1, &fboid));            // Deletes FBO while bound
    if (fboid == fBoundDrawFramebuffer) { this->onFBOChanged(); }
}

Because create_gr_gl_interface.cc maps these calls directly to the raw native GLES driver entrypoints (glBindFramebufferEXT and glDeleteFramebuffersEXT), the safety mechanisms in the GLES2 command decoder are entirely bypassed.

Potential Trigger Path

Because our tooling does not currently have the capability to run code, this represents a potential trigger path analyzed directly from the source code:

  1. A compromised renderer initiates OOP-R rasterization on a renderable SharedImage by invoking BeginRasterCHROMIUM via RasterInterface IPC.
  2. In the GPU process, the raster decoder initiates scoped write access (SkiaGLImageRepresentation::BeginWriteAccess), which calls SkSurfaces::WrapBackendTexture to create a surface.
  3. Skia's GL backend allocates the backing FBOs in GrGLGpu::createRenderTargetObjects and binds the FBO (FBO_A) via GrGLGpu::bindFramebuffer. It marks FBO ownership as kOwned.
  4. Raster operations are written to FBO_A. The framebuffer remains bound to the active GLES context.
  5. The renderer issues EndRasterCHROMIUM, destroying the SkiaGLImageRepresentation wrapper.
  6. Releasing the last reference to the wrapped SkSurface triggers GrGLRenderTarget::onRelease(), which invokes GrGLGpu::deleteFramebuffer(FBO_A).
  7. GrGLGpu::deleteFramebuffer invokes raw glDeleteFramebuffersEXT on FBO_A while it is still active. The buggy PowerVR driver deletes the FBO but retains a stale internal reference.
  8. The renderer performs heap-grooming operations on the GPU context to reclaim the freed FBO structure's memory.
  9. The renderer performs a subsequent rasterization or draw command, causing Skia to invoke raw glBindFramebufferEXT(GR_GL_FRAMEBUFFER, FBO_B). During this state transition, the driver dereferences the stale pointer, potentially resulting in an out-of-bounds read/write or Use-After-Free (UAF) in the unsandboxed GPU process on Android.

Suggested Fix

In GrGLGpu::deleteFramebuffer, check if the ensure_previous_framebuffer_not_deleted workaround is enabled. If the FBO being deleted is currently bound (fboid == fBoundDrawFramebuffer), bind to FBO 0 before executing the deletion.

For example:

C++
if (fboid == fBoundDrawFramebuffer &&
    this->caps()->workarounds().ensure_previous_framebuffer_not_deleted) {
    this->bindFramebuffer(GR_GL_FRAMEBUFFER, 0);
}

Additionally, the workaround string ensure_previous_framebuffer_not_deleted should be added to Skia's standalone workaround list in third_party/skia/src/gpu/gpu_workaround_list.txt.

Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85


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

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

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

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

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

How it worked

Root cause

Likely Skia's Ganesh GL backend calls the raw driver bind and delete framebuffer functions directly and never checks the ensure_previous_framebuffer_not_deleted workaround, so a bound framebuffer can be deleted while still active.

Impact

On affected PowerVR/Imagination Android devices, a compromised renderer could cause an out-of-bounds read/write or use-after-free in the unsandboxed GPU process; the trigger path is only reasoned from source and was not executed.

What the attacker needed

PowerVR/Imagination GPU on Android; renderer process already compromised; out-of-process rasterisation in use

The fix

Skia's deleteFramebuffer should check the ensure_previous_framebuffer_not_deleted workaround and bind framebuffer 0 before deleting a bound framebuffer, and the workaround should be added to Skia's workaround list.

How it was found

  1. A compromised renderer starts out-of-process rasterisation on a renderable shared image.
  2. The GPU process wraps the image as a Skia surface and Skia creates and binds a framebuffer.
  3. Raster operations are drawn into that framebuffer while it stays bound.
  4. The renderer ends rasterisation, the wrapper is destroyed and Skia deletes the still-bound framebuffer.
  5. The renderer grooms the GPU heap to reclaim the freed framebuffer memory.
  6. A later bind of another framebuffer makes the driver dereference the stale pointer.

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.

Some graphics drivers on Android phones have a bug: if a program deletes a framebuffer (a temporary drawing surface held in graphics memory) while it is still in use, the driver keeps a pointer to memory that has been freed. Chromium added a workaround for this in one part of its graphics code, but the drawing library Skia, which also talks to the same driver, never got the same workaround. The report argues that a renderer process that has already been taken over could reach this path and corrupt memory in the GPU process, which is not sandboxed on Android.

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.