Information leak in GPU (CVE-2026-79274)
A GPU readback routine returns uninitialised padding bytes from a recycled transfer-pool block, allowing a page to read cross-origin image pixels that the browser otherwise blocks. An attacker can draw a credentialed cross-origin image, then call copyTo() on a separate same-origin canvas to recover the private image data.
Originally disclosed on Chrome VRP
- Fix shipped in 19 days
Report description
ReadbackImagePixelsINTERNAL returns unwritten transfer-pool memory as copyTo() padding, leaking cross-origin image pixels
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
The problem
VideoFrame.copyTo() accepts a per-plane destination stride, which the page is entitled to choose
— that part is as specified. The defect is downstream: the GPU readback that implements it sizes its
staging allocation from that stride, writes only height runs of width × 4 bytes, and then copies
the whole allocation into the page's ArrayBuffer. The (rows − 1) × (stride − width × 4) bytes
of inter-row padding are never written by this readback and never cleared. The allocation is a
recycled block from the renderer's transfer pool: those bytes are not indeterminate, they are
whatever the block's previous user left there. The same pool carries decoded image uploads.
The consequence is that a page can read a cross-origin image it is not allowed to read. The attached
PoC uses a victim origin whose image is credentialed: http://localhost:8001/private.png returns
a private image when that origin's session cookie is present and a public placeholder otherwise. The
attacker page, on http://localhost:8000, causes the browser to fetch it — the cookie is sent
because the two are same-site — and draws it. Chrome correctly refuses to let the page read that
canvas back, with getImageData() and toDataURL() both throwing SecurityError. The page then
calls copyTo() on a different, untainted, same-origin canvas, and the padding in the returned
buffer contains the private image. The reconstruction is exported with toDataURL(), which
succeeds.
Measured with the attached PoC on Chrome 151.0.7922.77 (Stable), default flags. The same page run twice, differing only in whether the browser holds the victim origin's cookie:
| matches the private image | matches the public placeholder | |
|---|---|---|
| control — readback before anything is loaded | 0.0 % | 0.0 % |
| without the victim origin's cookie | 0.0 % | 98.1 % |
| with the victim origin's cookie | 98.1 % | 0.0 % |
The page recovers whichever image the victim origin actually returned. An attacker's own server
requesting /private.png receives only the placeholder.
recovered.png (attached) is what the PoC exported in the cookie case; secret.png is what the
victim origin served. They are the same picture; the short green dashes across the recovered image
are the 0.4 % of the buffer this readback writes.
The page controls the amount returned: (rows − 1) × (stride − width × 4) bytes per plane per call,
about 4 MB per call in the attached PoC, bounded by the layout validation that stride × rows fit
in INT_MAX.
Environment
| Build | Chrome 151.0.7922.77 (Stable), Chrome for Testing win64 |
| Also reproduces on | Chrome 153.0.7995.0 ASAN (win32-release_x64_asan-…-1674964), byte-identical output |
| OS | Windows 11 |
| GPU | NVIDIA GeForce RTX 4080 |
| Flags | none |
Nothing beyond loading the page is required: no service worker, no cache priming, no user gesture
beyond page load, no extension, no browser or profile restart, and no special response headers on
the victim image. The attacker origin and the victim origin are different origins on the same site,
so the victim origin's SameSite=Lax cookie is sent with the image request; that is what makes the
response user-specific.
The victim image is a subresource of the attacker's document and has no renderer process of its
own; while the PoC runs the only utility processes are storage.mojom.StorageService and
network.mojom.NetworkService. The image is decoded in the attacker page's renderer, which is the
renderer whose transfer pool the readback draws from.
Analysis
RasterImplementation::ReadbackImagePixelsINTERNAL
(gpu/command_buffer/client/raster_implementation.cc):
GLuint dst_size = dst_info.computeByteSize(dst_row_bytes); // page-chosen stride
GLuint total_size =
pixels_offset +
base::bits::AlignUp(dst_size, static_cast<GLuint>(sizeof(uint64_t)));
std::unique_ptr<ScopedMappedMemoryPtr> scoped_shared_memory =
std::make_unique<ScopedMappedMemoryPtr>(total_size, helper(), mapped_memory_.get());
...
*readback_result = 0; // the only zeroing: 4 bytes
...
auto dst = base::span<uint8_t>(static_cast<uint8_t*>(dst_pixels), dst_size);
auto src = base::span<uint8_t>(static_cast<uint8_t*>(shm_address) + pixels_offset, dst_size);
base::subtle::RelaxedAtomicWriteMemcpy(dst, src); // full dst_size returned
dst_sizeis(rows − 1) × stride + width × 4, computed from the stride the page supplied.- The block comes from
MappedMemoryManager::Alloc(gpu/command_buffer/client/mapped_memory.cc), which sub-allocates from recycledMemoryChunks. There is nomemsetin that file; only a brand-new chunk is OS-fresh. - The GPU writes
rowsruns ofwidth × 4bytes atstridepitch. The(rows − 1) × (stride − width × 4)bytes between rows are never written. - The whole
dst_sizeis then copied to the caller.
The same pool serves the transfer cache — raster_implementation.cc:
return transfer_cache_.MapEntry(mapped_memory_.get(), serialized_size);
ClientImageTransferCacheEntry carries decoded image pixels, so drawing a cross-origin image writes
those pixels into this pool; the block is then freed and can be handed to a subsequent readback.
The recycled block is reused by size, which is why the readback lands on the image's block only when the staging allocation is close to, and not larger than, the image's decoded size. The PoC measures this rather than assuming it — see the table it prints.
Bisection
git log -S "computeByteSize(dst_row_bytes)" -- gpu/command_buffer/client/raster_implementation.cc
returns two commits, and git blame puts the current line on the second:
| commit | date | change |
|---|---|---|
6ef95d6a6 |
2020-07-17 | "Add synchronous SkImage readback through RasterInterface" — introduces the dst_row_bytes parameter |
69e8a3d19d |
2021-04-29 | "Add support for async ARGB readback in OOPR mode" — introduces GLuint dst_size = dst_info.computeByteSize(dst_row_bytes); |
The line has not been modified since, and git log over mapped_memory.cc shows no commit that
zeroes recycled blocks.
Using the PoC
Attached: index.html, poc.js, server.py, secret.png, public.png, recovered.png. Put them in one
directory and run:
python3 server.py
Then, in the browser under test:
- open
http://localhost:8001/loginonce — this sets the victim origin's session cookie; - open
http://localhost:8000/and let it run.
Everything is rendered into the page; DevTools are not needed. The run takes a few minutes and shows its progress; there is a Run again button. Running step 2 without step 1 is a useful negative control: the page then recovers the public placeholder instead, and says so.
server.py serves two origins: the attacker page on http://localhost:8000/ and the victim site on
http://localhost:8001/, which exposes /login and /private.png. /private.png returns
secret.png when the cookie is present and public.png otherwise. The victim handler sends no CORS
headers:
def end_headers(self):
self.send_header("Cache-Control", "no-store")
# deliberately nothing else: no access-control-allow-origin,
# no cross-origin-resource-policy, no timing-allow-origin
super().end_headers()
$ curl -I http://localhost:8001/private.png
HTTP/1.0 200 OK
Server: SimpleHTTP/0.6 Python/3.10.12
Content-Type: image/png
Content-Length: 13784 <- the public placeholder: no cookie was sent
Cache-Control: no-store
$ curl -s http://localhost:8001/private.png | wc -c
13784
$ curl -s -H "Cookie: poc_session=1" http://localhost:8001/private.png | wc -c
16839 <- the private image
Impact analysis
What the page shows
-
The victim image is cross-origin and the page cannot read it. Both of these must throw, and the page prints what was caught:
getImageData() -> SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. toDataURL() -> SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. -
Control — the same readback before the victim image has ever been loaded: 0.0 %. It is sized for a 2048×2048 allocation so that its own buffer cannot be the one recycled into the measured runs.
-
Result — the best measured run, its match percentage, and whether
toDataURL()of the reconstruction succeeded. -
Size sensitivity — four matched configurations and one deliberately mismatched one, each measured:
victim canvas its decoded size staging allocation private image public placeholder 256×256 262,144 262,084 92.4 % 0.0 % 512×512 1,048,576 1,048,576 96.2 % 0.0 % 1024×1024 4,194,304 4,194,292 98.1 % 0.0 % 1024×1024 4,194,304 4,194,292 98.1 % 0.0 % 1024×1024, readback sized 4× too large 4,194,304 16,777,156 varies 0.0 % The matched rows are consistent across runs. The oversized row is not a reliable negative — it has returned both 0.0 % and 75.3 % on this machine — which is why the PoC measures every row on every run rather than relying on the numbers above. The control, taken before anything is loaded, is 0.0 % on every run.
Without
/loginthe private and placeholder columns swap, which identifies the recovered bytes as the credentialed response rather than anything the attacker could fetch itself. -
Images — the victim image as the browser renders it, next to the reconstruction, which is on a same-origin canvas and was exported with
toDataURL().
The essential sequence
// 1. draw the cross-origin image; the page cannot read this canvas
const img = new Image();
img.src = "http://localhost:8001/private.png"; // page is on http://localhost:8000
await img.decode();
const tainted = document.createElement("canvas");
tainted.width = tainted.height = 1024;
tainted.getContext("2d").drawImage(img, 0, 0); // repeated a few times, then released
// 2. read back a small frame from a separate, untainted, same-origin canvas,
// with a stride far larger than the tight stride
const src = document.createElement("canvas");
src.width = src.height = 64;
const g = src.getContext("2d");
g.fillStyle = "#00ff00";
g.fillRect(0, 0, 64, 64);
const frame = new VideoFrame(src, {timestamp: 0});
const stride = Math.floor((1024*1024*4 - 64*4) / 63); // sized from the victim's decoded size
const buf = new Uint8Array(new ArrayBuffer(stride * 64)); // V8 zero-fills this
await frame.copyTo(buf, {rect: {x:0, y:0, width:64, height:64},
layout: [{offset: 0, stride}]});
// 3. buf now contains the cross-origin image; paint it 1024 wide and toDataURL() it
Attachments
index.html,poc.js— the proof of conceptserver.py— serves both origins; the victim handler sends no CORS headerssecret.png— what the victim origin serves to a session holding its cookiepublic.png— what it serves otherwiserecovered.png— what the PoC recovered and exported withtoDataURL()
The cause
What version of Chrome have you found the security issue in?
153.0.7995.0 (Developer Build) (64-bit), 151.0.7922.77 (Stable), Windows 11, 64-bit
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Information Leak
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 the GPU readback allocates a staging buffer sized from the page-controlled stride but only writes the actual pixel rows, leaving the inter-row padding uninitialised and then copying the whole buffer to the page.
Impact
A page could read a cross-origin image it is not allowed to read, including a credentialed private image, though the attack requires the victim origin and attacker origin to be same-site so the cookie is sent.
What the attacker needed
Attacker and victim origins are same-site; victim has a session cookie for the victim origin; victim visits the attacker page
How it was found
- Open the victim origin's login page to set its session cookie.
- Open the attacker page, which draws the credentialed cross-origin image onto a canvas.
- The attacker page creates a separate same-origin canvas and calls copyTo() with a large stride.
- The returned buffer contains the private image in its padding, which the page exports with toDataURL().
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.
When a web page draws an image from another website onto a canvas, the browser normally prevents the page from reading those pixels back, to stop data theft. Here, a GPU function that copies pixel data back to the page included extra padding bytes that were never cleared and still held data from a previous image. By choosing a large stride, the page could make the browser return those leftover bytes, which contained the private cross-origin image.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.