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

Uninitialized Use in WebCodecs (CVE-2026-5888)

When Chromium decodes VP9 video with an alpha channel, the alpha plane is allocated without initialisation and only the visible-width pixels are written, leaving per-row padding bytes uninitialised. Because WebCodecs copyTo() validates the requested rectangle against the coded size rather than the visible rectangle, script can copy and read those leftover heap bytes.

Paolo Gentry Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 45 days

Report description

Uninitialized alpha-plane padding in VP9-with-alpha external frame buffer decode causes renderer heap data disclosure via WebCodecs VideoFrame.copyTo(codedRect)


Bug location

Where do you want to report your vulnerability?

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

Which URL (or repository) have you found the vulnerability in?

https://github.com/chromium/chromium


The problem

Please describe the technical details of the vulnerability

When decoding WebM VP9 content with alpha enabled, Chromium allocates an uninitialized alpha-plane buffer and fills only the visible-width alpha pixels. If the decoded frame's coded width is greater than its visible width (e.g. due to stride alignment), the per-row padding bytes in the alpha plane are never written and remain uninitialized. WebCodecs VideoFrame.copyTo() allows JavaScript to request a copy using a rectangle bounded by the frame's coded size. For CPU-backed (mappable) frames, the Blink copy path copies src_rect.width() bytes per row from each plane and does not clamp to the visible rect. By calling copyTo() with a rect that spans the full coded width and height, an attacker can copy and then read the uninitialized alpha-plane padding bytes from JavaScript, resulting in renderer heap information disclosure.

Root cause chain

  1. WebM / demuxer: When the track has AlphaMode = 1 and a block has block-additional data whose first 8 bytes (BlockAddID, big endian) equal 1, the remainder is stored in DecoderBuffer::side_data()->alpha_data (see media/formats/webm/webm_cluster_parser.cc and webm_video_client.cc).

  2. Decoder: In VpxVideoDecoder, the VP9 external frame buffer path allocates the alpha plane in FrameBufferPool::AllocateAlphaPlaneForFrameBuffer() (media/base/frame_buffer_pool.cc), which uses base::UncheckedMalloc() and does not initialize the memory (comment: "the new array is purposely not initialized"). The alpha plane is then filled via libyuv::CopyPlane() with width = vpx_image_alpha->d_w (visible width) and height = d_h. The allocation size is stride × height (e.g. vpx_image_alpha->stride[VPX_PLANE_Y] * d_h). When stride (coded width) > d_w, the bytes at the end of each row are never written.

  3. VideoFrame: The resulting VideoFrame has coded_size() from (vpx_image->w, vpx_image->d_h) and visible_rect() from (d_w, d_h). So coded_size.width() can exceed visible_rect().width().

  4. WebCodecs: In Blink, VideoFrame.copyTo(options) validates the source rect against the frame's coded size (ParseCopyToOptions → ToGfxRect(..., frame.coded_size(), ...)). For mappable frames, CopyMappablePlanes() copies PlaneSize(src_rect.width(), ...) bytes per row from each plane (third_party/blink/renderer/modules/webcodecs/video_frame.cc). No clamping to the visible rect is applied, so a rect covering the full coded size causes the uninitialized padding to be copied into the destination buffer and exposed to script.

Precondition: The decoded frame has coded width > visible width (e.g. odd or non-aligned width such as 9 or 17). When this holds, the read is deterministic; the content of the leaked bytes depends on allocator state (prior heap usage).

Impact analysis

Who can exploit it

Any attacker who can run JavaScript in the renderer can exploit this, for example by hosting a page that the victim visits (e.g. via link, ad, or compromised site), or by utilizing an XSS primitive or other bug that allows execution of script in a Chrome tab. No special permissions or user interaction beyond loading the page are required.

What they gain

The attacker gains read access to uninitialized renderer heap memory (the alpha-plane padding). That can include pointers (e.g. heap addresses), which can support ASLR bypass or heap layout inference, leftover data from previous allocations (strings, structures, etc.), and stable information disclosure when the same allocation patterns are repeated (e.g. repeated decoding with the same or similar frame sizes). By itself, it does not escape the renderer sandbox or escalate privileges, but it turns an information-disclosure primitive into javascript-readable data that can support further exploitation (e.g. heap grooming, pointer leaks for a separate bug).

Severity Analysis

Given the Severity Guidelines for Security Issues, a medium severity classification is well-supported for this finding.


The cause

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

Current Live Stable Release: 145.0.7632.110 and 145.0.7632.103

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Information Leak

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

Identified by the Octane Security Team: Giovanni Vignone, Paolo Gentry, Robert van Eijk

The original report as published on the Chromium issue tracker, by Identified by the Octane Security Team: Giovanni Vignone, Paolo Gentry, Robert van Eijk. 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 alpha plane is allocated with uninitialised memory and only the visible-width pixels are written, while the WebCodecs copy path copies full coded-width rows without clamping to the visible rectangle.

Impact

An attacker who can run script in the renderer could read uninitialised heap memory, potentially leaking pointers that support ASLR bypass or heap layout inference, though it does not by itself escape the sandbox.

What the attacker needed

Attacker can run JavaScript in the renderer; victim loads the attacker's page; frame coded width exceeds visible width

How it was found

  1. Decode WebM VP9 content with alpha enabled so the frame's coded width exceeds its visible width.
  2. Call VideoFrame.copyTo() with a rectangle spanning the full coded width and height.
  3. Read the copied destination buffer from JavaScript to obtain the uninitialised padding bytes.

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.

Video frames are stored in memory in rows, and when a row is wider than the picture itself the extra space at the end of each row is padding. Here that padding was never filled in, so it still holds whatever data was in memory before, and a JavaScript video API let a page copy the whole row including the padding. The page could then read those leftover bytes, which may contain memory addresses useful for further attacks.

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.