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

Uninitialized resource in Video (CVE-2026-78969)

Worker threads in the multithreaded VP8 decoder keep a 'corrupted' flag set after a malformed frame, so they skip decoding their rows in later frames. When the resolution changes and new frame buffers are allocated without zeroing, those skipped rows expose uninitialised heap memory that a web page can read through WebCodecs or a canvas.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: In the multithreaded VP8 decoder, worker threads do not reset their internal corrupted flag between frames. If a worker encounters an error, it skips decoding its assigned regions for all subsequent frames. When the video resolution changes, new frame buffers are allocated without zero-initialization, leading to a leak of uninitialized PartitionAlloc memory to JavaScript.

Affected files:

  • third_party/libvpx/source/libvpx/vp8/decoder/threading.c
  • third_party/libvpx/source/libvpx/vp8/decoder/decodeframe.c
  • third_party/libvpx/source/libvpx/vpx_scale/generic/yv12config.c
  • third_party/libvpx/source/libvpx/vp8/vp8_dx_iface.c
  • media/filters/vpx_video_decoder.cc

Estimated timestamp from git blame: 2023-06-07

Summary

A vulnerability in the multithreaded VP8 decoder in libvpx causes a corruption flag in worker threads to persist across frames. When a worker thread encounters a malformed bitstream, its internal corrupted flag is set. Due to a missing reset in the per-frame setup routine, this flag remains set for all subsequent frames. This causes the worker thread to skip decoding its assigned macroblock rows in every future frame. Since VP8 frame buffers are allocated via vpx_memalign (using PartitionAlloc in Chrome) without zero-initialization, the skipped regions contain raw heap memory. Chrome's VpxVideoDecoder surfaces these uninitialized regions to JavaScript, enabling an information leak of renderer-process heap memory.

Root Cause Analysis

In third_party/libvpx/source/libvpx/vp8/decoder/threading.c, the setup_decoding_thread_data function prepares worker threads for each frame by copying fields from the main thread's MACROBLOCKD structure. However, it fails to reset or copy the mbd->corrupted flag:

C
static void setup_decoding_thread_data(VP8D_COMP *pbi, MACROBLOCKD *xd,
                                       MB_ROW_DEC *mbrd, int count) {
  for (i = 0; i < count; ++i) {
    MACROBLOCKD *mbd = &mbrd[i].mbd;
    mbd->subpixel_predict      = xd->subpixel_predict;
    // ... (other fields initialized, but mbd->corrupted is omitted)
  }
}

In contrast, the main thread's xd->corrupted is explicitly reset at the start of every frame in third_party/libvpx/source/libvpx/vp8/decoder/decodeframe.c (line 896).

During decoding, if a worker thread sets xd->corrupted to 1 (e.g., due to a bitstream error in its assigned partition), it enters an error path (threading.c:409) that calls vpx_internal_error(). This performs a longjmp back to the thread's setjmp point. Because the flag is never reset in setup_decoding_thread_data, once a worker's corrupted bit is set, it becomes "sticky." For all subsequent frames, the worker immediately sees xd->corrupted == 1, calls vpx_internal_error(), and aborts decoding its assigned interleaved rows before any pixel data is written.

Heap Memory Leak Mechanism

  1. Uninitialized Allocation: When a video resolution change is triggered by a new keyframe, libvpx re-allocates its frame buffers via vp8_yv12_alloc_frame_buffer. This relies on vpx_memalign, which uses malloc (mapped to PartitionAlloc). In production Chrome builds, these allocations are not zero-initialized (yv12config.c:72-79).
  2. Skipped Rows: The worker with the sticky corrupted state immediately bails on the new frame, leaving its portion of the newly allocated buffer as untouched, raw PartitionAlloc memory.
  3. Exposure to JavaScript: vp8_decode_frame successfully parses the keyframe header and returns 0 (success), which translates to a VPX_CODEC_OK return from vpx_codec_decode. Chrome's VpxVideoDecoder (media/filters/vpx_video_decoder.cc) assumes success and does not query the VP8D_GET_FRAME_CORRUPTED control. It wraps or copies the vpx_image_t into a media::VideoFrame and surfaces it to the media pipeline.
  4. Exfiltration: A web page can read these uninitialized bytes using WebCodecs (VideoFrame.copyTo()) or by drawing the video to a <canvas> and calling getImageData(). By manipulating the video resolution, an attacker can target specific PartitionAlloc bucket sizes to leak pointers or sensitive data from recently freed objects.

Suggested Reproduction Steps

(Note: These are potential steps, as our tooling cannot currently execute a PoC)

  1. Host a WebM file with a VP8 track configured for multithreaded decoding (e.g., multiple token partitions).
  2. Provide an initial valid keyframe to establish the decoder state and worker threads.
  3. Provide a malformed frame with a bitstream error in one of the partitions. This causes the assigned worker thread to set its corrupted flag.
  4. Provide a valid keyframe at a new resolution. This forces a buffer reallocation.
  5. The macroblock rows assigned to the corrupted worker thread will contain uninitialized heap data from the freshly allocated buffer.
  6. In JavaScript, use a <video> element or WebCodecs to decode the stream and exfiltrate the uninitialized data from the affected rows using a <canvas> or the copyTo() method.

Suggested Fix

Explicitly initialize the corrupted flag in the worker threads' setup routine.

In third_party/libvpx/source/libvpx/vp8/decoder/threading.c:

C
static void setup_decoding_thread_data(VP8D_COMP *pbi, MACROBLOCKD *xd,
                                       MB_ROW_DEC *mbrd, int count) {
  for (i = 0; i < count; ++i) {
    MACROBLOCKD *mbd = &mbrd[i].mbd;
    mbd->subpixel_predict      = xd->subpixel_predict;
    // ... existing initializations ...
    mbd->corrupted = 0; // Explicitly reset the corrupted flag
  }
}

Evaluated with Chrome root at commit: 7353d249d9cacf9c7218e1d7b8a39cf39c72d646


Results 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

Root cause

Likely the per-frame worker setup routine copies fields from the main decoder state but never resets the worker's corrupted flag, so an error in one frame persists into all later frames.

Impact

A web page could read uninitialised renderer-process heap memory, potentially leaking pointers or data from recently freed objects, though the report notes the reproduction steps are potential only and no proof of concept was executed.

What the attacker needed

Victim loads attacker page; VP8 video with multiple partitions; browser uses multithreaded VP8 decoding

The fix

The worker setup routine should explicitly reset the corrupted flag for each worker thread at the start of every frame.

How it was found

  1. Serve a WebM file with a VP8 track set up for multithreaded decoding.
  2. Send a valid keyframe first so the decoder and its worker threads are established.
  3. Send a malformed frame so one worker thread sets its corrupted flag.
  4. Send a valid keyframe at a new resolution to force new frame buffers to be allocated.
  5. The rows belonging to the corrupted worker are left holding uninitialised heap data.
  6. Read those bytes from JavaScript using a video element or WebCodecs with a canvas or the copyTo method.

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 video decoder splits the work of drawing a frame across several helper threads. One helper can hit a broken part of the video and mark itself as broken, but the code never clears that mark, so it keeps refusing to draw its share of every later frame. When the video size changes, the memory for the new picture is not wiped first, so the untouched areas still hold whatever was in memory before, and the page can read those bytes back.

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.