Skip to content
Info disclosure Advisory Advanced CVE-2026-78958

Uninitialized resource in Skia (CVE-2026-78958)

A logic error in Skia Graphite's QueueManager updates the last added recording ID before insertion completes, so if insertion fails the tracker remains advanced. An attacker could then drop a recording that clears a SharedImage, and a later recording would read uninitialized GPU memory, potentially leaking cross-origin data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: Skia Graphite's QueueManager updates its tracking of the last added recording ID before completing the insertion process. If insertion subsequently fails, the tracker remains incremented, allowing an attacker to drop a recording (e.g., a SharedImage clear) without failing the strict ordering check for future recordings, leading to a potential leak of uninitialized GPU memory.

Affected files:

  • third_party/skia/src/gpu/graphite/QueueManager.cpp
  • third_party/skia/src/gpu/graphite/QueueManager.h

Estimated timestamp from git blame: 2026-01-20

Summary

A logic error in Skia Graphite's QueueManager causes the internal tracking of recording IDs to be updated prematurely. If a recording fails during insertion after this update occurs, the system's state becomes desynchronized. This allows subsequent recordings to pass ordering checks and execute, even though a preceding recording was dropped. This can be exploited to bypass GPU memory initialization, leading to a reliable cross-origin information leak.

Vulnerability Details

In third_party/skia/src/gpu/graphite/QueueManager.cpp, the addRecording function is responsible for adding commands from a Recording to the current command buffer. For contexts requiring ordered recordings (such as Chrome's), it verifies that the incoming recording ID is exactly one greater than the last added ID. However, the tracking map fLastAddedRecordingIDs is updated prematurely at line 133:

C++
128:        RETURN_FAIL_IF(recordingID && info.fRecording->priv().uniqueID() != *recordingID + 1,
129:                       InsertStatus::kOutOfOrderRecording,
130:                       "Recordings are expected to be replayed in order");
131:
132:        // Note the new Recording ID.
133:        fLastAddedRecordingIDs.set(recorderID, info.fRecording->priv().uniqueID());

Following this update, there are multiple RETURN_FAIL_IF checks for operations like command buffer setup (line 145) or lazy proxy instantiation (lines 173, 178). If any of these fail, the function returns an error, but the fLastAddedRecordingIDs state is not rolled back.

Because the counter has been advanced, a subsequent recording ($N+1$) will be accepted even if recording $N$ failed to execute. The failed recording $N$ is dropped.

Potential Exploitation Steps

Note: These are suggested steps based on code analysis; we do not yet have a working proof-of-concept.

  1. From a compromised renderer, an attacker creates a new SharedImage. Its internal IsCleared() state is initially false.
  2. The attacker binds the image and issues a BeginRasterCHROMIUM command.
  3. In RasterDecoderImpl::DoBeginRasterCHROMIUM, Chrome observes that the image needs clearing and issues a clear command to the Skia Canvas. This clear operation becomes part of recording $N$.
  4. Crucially, Chrome immediately marks the SharedImage as cleared via shared_image_->SetCleared() (in raster_decoder.cc), assuming the recording will successfully execute.
  5. The attacker intentionally exhausts GPU memory (e.g., by allocating many large textures) and flushes the context.
  6. Chrome snaps recording $N$ and submits it to QueueManager::addRecording. The ID tracker is updated to $N$.
  7. Due to the induced OOM, setupCommandBuffer() or a proxy instantiation fails. addRecording returns a failure status (e.g., kAddCommandsFailed).
  8. In Chrome's GraphiteSharedContext::insertRecording, this failure is treated as recoverable (unlike kOutOfOrderRecording). The context is kept alive, but the clear commands are dropped.
  9. The attacker frees memory and issues a command to read from the SharedImage (recording $N+1$). Since Chrome's state indicates it is cleared, no further clear is issued.
  10. QueueManager::addRecording accepts recording $N+1$ because the tracker expects $N+1$.
  11. The GPU executes recording $N+1$, reading uninitialized GPU memory that may contain cross-origin data.

Recommended Fix

The update to fLastAddedRecordingIDs should be deferred until the end of QueueManager::addRecording(), after all potential failure points have passed. Alternatively, a rollback mechanism should be implemented in the RETURN_FAIL_IF macro or failure paths.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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

Impact

This could lead to a reliable cross-origin information leak by reading uninitialized GPU memory, though no working proof-of-concept is provided.

What the attacker needed

Compromised renderer; ability to exhaust GPU memory

The fix

The update to fLastAddedRecordingIDs should be deferred until the end of addRecording, after all potential failure points, or a rollback mechanism should be implemented.

How it was found

  1. From a compromised renderer, create a new SharedImage with IsCleared() false.
  2. Bind the image and issue BeginRasterCHROMIUM, causing Chrome to issue a clear command as part of recording N.
  3. Chrome marks the SharedImage as cleared immediately.
  4. Exhaust GPU memory and flush the context, causing recording N to fail during insertion after the ID tracker is updated.
  5. Free memory and issue a read from the SharedImage as recording N+1, which is accepted and reads uninitialized GPU 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.

Skia is a graphics library used by Chrome to draw things on the GPU. A small bookkeeping mistake means that if a drawing command fails, the system still thinks it succeeded, so later commands can read leftover GPU memory that may contain data from other websites.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.