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

Out of bounds read in WebCodecs (CVE-2026-5292)

An I420 VideoFrame with mismatched U and V plane strides passed to an AV1 VideoEncoder causes libaom to use the U stride when reading the V plane, producing an out-of-bounds read. An attacker could trigger a renderer crash from JavaScript via the WebCodecs API.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 20 days

Description:

Providing an I420 VideoFrame with different strides for the U and V planes to an AV1 VideoEncoder causes a severe out-of-bounds memory read (EXCEPTION_ACCESS_VIOLATION) in the underlying software encoder (libaom).

This can be triggered directly from JavaScript using the WebCodecs API by manually specifying the plane layouts and strides during VideoFrame construction.

Reproduction Steps:

  1. Open the attached HTML file (poc.html) in Chrome.
  2. The page uses WebCodecs to construct an I420 VideoFrame with a massive U stride (65536) and a normal V stride (32), then passes it to an AV1 VideoEncoder.
  3. Observe the renderer crash due to an Access Violation.

Crash Stack :

   1 Received fatal exception EXCEPTION_ACCESS_VIOLATION
   2         media!copy_and_extend_plane [0x7fff7b5c82ed+4ed] (third_party\libaom\source\libaom\av1\encoder\extend.c:34)
   3         media!av1_copy_and_extend_frame [0x7fff7b5c7502+5c2] (third_party\libaom\source\libaom\av1\encoder\extend.c:158)
   4         media!av1_lookahead_push [0x7fff7b5c8b96+1a6] (third_party\libaom\source\libaom\av1\encoder\lookahead.c:153)
   5         media!av1_receive_raw_frame [0x7fff7b5dacd0+c0] (third_party\libaom\source\libaom\av1\encoder\encoder.c:4765)
   6         media!encoder_encode [0x7fff7b5f3f39+a69] (third_party\libaom\source\libaom\av1\av1_cx_iface.c:3475)
   7         media!aom_codec_encode [0x7fff7b601ea9+b9] (third_party\libaom\source\libaom\aom\src\aom_encoder.c:191)
   8         media!media::Av1VideoEncoder::Encode [0x7fff7af43835+cf5] (media\video\av1_video_encoder.cc:602)

Root Cause:

  1. media::Av1VideoEncoder::Encode correctly maps the three independent VideoFrame strides into the aom_image_t struct (which supports independent strides for all planes).
  2. Deep inside aom_codec_encode, libaom converts the aom_image_t to its internal YV12_BUFFER_CONFIG representation using image2yuvconfig().
  3. YV12_BUFFER_CONFIG does not support independent chroma strides; it only has a single uv_stride field. image2yuvconfig() populates this field solely using the U plane stride (yv12->uv_stride = img->stride[AOM_PLANE_U];), silently ignoring the V plane stride.
  4. When av1_copy_and_extend_frame is called, it uses the inflated uv_stride (from the U plane) to read from the V buffer, resulting in an OOB read.

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

libaom's internal YV12_BUFFER_CONFIG holds only one shared chroma stride, so image2yuvconfig() copies the U plane stride and ignores the V plane stride, which is then used to read the V buffer.

Impact

A web page could crash the browser renderer process through an out-of-bounds read; the text does not claim code execution or data disclosure.

What the attacker needed

Victim opens a malicious web page; browser supports WebCodecs AV1 encoding

How it was found

  1. Open the provided HTML file in Chrome.
  2. The page builds an I420 VideoFrame with a very large U stride and a normal V stride, then hands it to an AV1 VideoEncoder.
  3. The renderer crashes with an access violation.

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 frame stores colour data in separate blocks called planes, and a 'stride' is how many bytes wide each row of a plane is in memory. The encoder assumed both colour planes had the same row width, so when they differed it read past the end of the smaller buffer and the browser tab crashed.

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.