Out of bounds read in WebCodecs (CVE-2025-11211)
Constructing a VideoFrame from an array buffer with both non-even width and height causes an out-of-bounds read and browser crash on non-GPU-accelerated ARM Linux. An attacker could crash the browser by supplying such dimensions.
Originally disclosed on Chrome VRP
- Fix shipped in 40 days
Steps to reproduce the problem
Constructing a VideoFrame from array buffer source with non-even width and height crashes the browser. If only one of width and height is non-even it works. Happens only on non-gpu accelerated ARM linux, e.g. AWS Graviton.
This code:
const width = 1139; const height = 641; const buffer = new Uint8Array(2widthheight + 2 * (Math.ceil(width / 2) * Math.ceil(height / 2))); const i420aFrame = new VideoFrame(buffer, { format: 'I420A', codedWidth: width, codedHeight: height, displayWidth: width, displayHeight: height, timestamp: 0, });
Potentially reproducible when running Chrome without GPU accelerated video decode on arm linux. Easiest to reproduce with puppeteer on arm linux, try opening this page: https://cache-ssl.celtra.io/api/blobs/3cf5aa9adedb3b14054869474264e73c004c1bbd472aa8ce052abd76fddbaf8a/reproduction.html. It's the JS code from above, hosted on https so that WebCodecs API is available.
Puppeteer script for reproduction: https://gist.github.com/jkosir/3134cbe9c95df268ebbcda3c9475f03b . Must be run on arm linux, also note that puppeteer install does not support arm linux and chrome binary must be installed with system package manager or obtained in other way.
Problem Description
Constructing a VideoFrame from array buffer source with non-even width and height crashes the browser. If only one of width and height is non-even it works. Happens only on non-gpu accelerated ARM linux, e.g. AWS Graviton. Works as expected in 134.0.6998.165 (and some alter versions, was not able to bisect), reproducible in 138.0.7204.100 and above stable versions.
Stacktrace on crash: Received signal 11 SEGV_ACCERR fbec001c2000 #0 0xbc3885f311e8 base::debug::CollectStackTrace() #1 0xbc3885f20bc0 base::debug::StackTrace::StackTrace() #2 0xbc3885f31094 base::debug::(anonymous namespace)::StackDumpSignalHandler() #3 0xfd2981cfc8f8 ([vdso]+0x8f7) #4 0xbc38868bf3bc CopyRow_NEON #5 0xbc38868a41b0 CopyRow_Any_NEON #6 0xbc388689e8a0 CopyPlane #7 0xbc388987d778 blink::VideoFrame::Create() #8 0xbc38892bab8c blink::(anonymous namespace)::v8_video_frame::ConstructorOverload2() #9 0xbc38839d01ac v8::internal::FunctionCallbackArguments::CallOrConstruct() #10 0xbc38839cfcb0 v8::internal::(anonymous namespace)::HandleApiCallHelper<>() #11 0xbc38839cf5fc v8::internal::Builtin_HandleApiConstruct() #12 0xbc38f7eb30e4 <unknown> [end of stack trace]
I suspect it has something to do with this change in video_frame.cc: https://github.com/chromium/chromium/commit/a4a5b472dbe783f4a668916c28d0aa6c56680ce9. Tried building chromium with older libyuv (that implements the NEON copy) version, as used in 134.0.6998.165, same issue persists.
Summary
WebCodecs VideoFrame constructor crashes browser when non-even width and height are used
Additional Data
Category: JavaScript
Chrome Channel: Stable
Regression: Yes \
Context
WebCodecs is the browser API that lets JavaScript construct and manipulate raw media frames directly. One of its entry points is the VideoFrame constructor, which can take an ArrayBuffer of pixel data together with a description of the format and dimensions, and turn it into a frame object that can then be fed to encoders, decoders or rendering code.
This report covers a crash in that constructor. Constructing a VideoFrame from an array buffer source with a non-even width and a non-even height crashes the browser. If only one of width and height is non-even, it works. The crash happens only on non-GPU-accelerated ARM Linux, for example AWS Graviton. The issue was tracked as CVE-2025-11211, rated medium severity, and was disclosed on 7 October 2025 with a bounty of 3000.00 USD under the Chrome VRP.
Setup
The preconditions are narrow and worth stating plainly, because they define the whole reproduction:
- ARM Linux, for example AWS Graviton.
- Chrome running without GPU-accelerated video decode.
- A page served over HTTPS, because the WebCodecs API is only available in that context.
- A Chrome version in the affected range: the researcher reports it works as expected in 134.0.6998.165 (and some later versions, though a bisect was not possible), and is reproducible in 138.0.7204.100 and above stable versions.
For automation, the researcher used Puppeteer. One practical caveat is noted: the Puppeteer install does not support ARM Linux, so the Chrome binary has to be installed with the system package manager or obtained in another way.
Finding it
The trigger is a VideoFrame built from an ArrayBuffer using the I420A format, with both dimensions odd. The researcher's minimal JavaScript is:
const width = 1139;
const height = 641;
const buffer = new Uint8Array(2*width*height + 2 * (Math.ceil(width / 2) * Math.ceil(height / 2)));
const i420aFrame = new VideoFrame(buffer, {
format: 'I420A',
codedWidth: width,
codedHeight: height,
displayWidth: width,
displayHeight: height,
timestamp: 0,
});
The buffer size is computed from the width and height with the chroma dimensions rounded up. The frame is then constructed with codedWidth and codedHeight set to the same odd values, and displayWidth and displayHeight matching them.
The behaviour that made this look wrong is the asymmetry: an odd width alone or an odd height alone is fine, but odd width and odd height together crash the renderer. The crash is a segmentation fault, and the stack trace points into the NEON-optimised row copy routines:
Received signal 11 SEGV_ACCERR fbec001c2000
#0 0xbc3885f311e8 base::debug::CollectStackTrace()
#1 0xbc3885f20bc0 base::debug::StackTrace::StackTrace()
#2 0xbc3885f31094 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0xfd2981cfc8f8 ([vdso]+0x8f7)
#4 0xbc38868bf3bc CopyRow_NEON
#5 0xbc38868a41b0 CopyRow_Any_NEON
#6 0xbc388689e8a0 CopyPlane
#7 0xbc388987d778 blink::VideoFrame::Create()
#8 0xbc38892bab8c blink::(anonymous namespace)::v8_video_frame::ConstructorOverload2()
#9 0xbc38839d01ac v8::internal::FunctionCallbackArguments::CallOrConstruct()
#10 0xbc38839cfcb0 v8::internal::(anonymous namespace)::HandleApiCallHelper<>()
#11 0xbc38839cf5fc v8::internal::Builtin_HandleApiConstruct()
#12 0xbc38f7eb30e4 <unknown>
[end of stack trace]
The frames of interest are CopyPlane calling into CopyRow_Any_NEON and CopyRow_NEON, reached from blink::VideoFrame::Create() via the V8 constructor overload.
Exploitation
Step 1: Serve the trigger page over HTTPS
WebCodecs requires a secure context, so the researcher hosted the JavaScript above as a page on HTTPS:
https://cache-ssl.celtra.io/api/blobs/[redacted]/reproduction.html
Opening that page in an affected Chrome build on non-GPU-accelerated ARM Linux is the simplest manual reproduction.
Step 2: Automate with Puppeteer
The researcher published a Puppeteer script for reproduction:
https://gist.github.com/jkosir/[redacted]
It must be run on ARM Linux. Because the Puppeteer install does not support ARM Linux, the Chrome binary has to come from the system package manager or another source.
Step 3: Observe the crash
When the constructor runs with both dimensions odd, the renderer receives signal 11 with SEGV_ACCERR and the stack trace shown above. With only one odd dimension, the same code path completes normally.
Root cause
The report does not give a confirmed root cause. The researcher suspected a change in video_frame.cc:
https://github.com/chromium/chromium/commit/[redacted]
To test whether the NEON copy implementation was responsible, the researcher built Chromium with an older libyuv version, the one used in 134.0.6998.165, which implements the NEON copy. The same issue persisted.
What the stack trace does establish is where the fault surfaces: in CopyPlane and the NEON row copy routines invoked from blink::VideoFrame::Create(). The precise defect is not identified in the report.
Impact
Under the stated conditions, constructing a VideoFrame with odd width and odd height from an array buffer crashes the browser. The conditions are restrictive: ARM Linux, no GPU-accelerated video decode, and an affected Chrome version (reproducible in 138.0.7204.100 and above stable versions). The report does not describe any memory disclosure, code execution or persistence beyond the crash.
Fix
It records the regression range (working in 134.0.6998.165, reproducible in 138.0.7204.100 and above) and the suspicion around the video_frame.cc change, but does not state what was changed to resolve it.
Variants to test
- Other odd dimension pairs with the
I420Aformat, to confirm the crash is not specific to 1139 by 641. - Other pixel formats accepted by the
VideoFramearray buffer constructor, with odd width and height. - The same construction on ARM Linux with GPU-accelerated video decode enabled.
- The same construction on x86-64 Linux without GPU acceleration.
- Odd dimensions where only one axis is odd, as a control. The expected result, per the report, is no crash.
What happened, in plain words
A security researcher found a way to make the Chrome browser crash on a particular kind of computer by asking it to build a single picture frame in JavaScript. The crash happens only when the picture's width and height are both odd numbers, only on ARM-based Linux machines without graphics-card help for video, and only in certain Chrome versions. Google tracked the issue as CVE-2025-11211, rated it medium severity, and disclosed it on 7 October 2025. The researcher, Jakob Košir, received a bounty of 3000.00 USD through the Chrome Vulnerability Reward Program (VRP).
This article walks through the report from the beginning, explaining each idea as it appears. No prior security knowledge is assumed: if you can use a browser, you can follow along.
Context
What WebCodecs is
A browser normally hides video work behind HTML elements like <video>. WebCodecs is different: it is an API, meaning a set of functions the browser exposes so that JavaScript code on a web page can call them. WebCodecs lets that JavaScript build and manipulate raw media frames directly, the individual pictures that make up a video, rather than just playing a finished file.
One of its entry points is the VideoFrame constructor. In programming, a constructor is the instruction that creates a new object of a given kind. Here, you hand the constructor a block of raw pixel data plus a description of how that data is laid out, and it gives you back a frame object. That frame can then be passed to an encoder (which compresses frames into a video file), a decoder (which expands them back), or code that draws them on screen.
The block of raw data is passed as an ArrayBuffer. Think of an ArrayBuffer as a plain cardboard box full of numbered bytes: it has no opinion about what the bytes mean. It is just a fixed-length stretch of memory that JavaScript can fill and hand over. The description you pass alongside it says how to interpret those bytes: which pixel format, how wide, how tall, and so on.
What the report is about
This report covers a crash in that constructor. When you build a VideoFrame from an ArrayBuffer where both the width and the height are odd numbers, the browser crashes. If only one of the two is odd, everything works. The crash appears only on ARM Linux machines that are not using the graphics card (GPU) to accelerate video decoding, for example AWS Graviton servers. The issue was tracked as CVE-2025-11211, rated medium severity, and disclosed on 7 October 2025 with a bounty of 3000.00 USD under the Chrome VRP.
A CVE is a public catalogue number for a known vulnerability, so that people across the industry can refer to the same issue unambiguously. Severity is a rough rating of how serious the issue is; medium sits in the middle. The Chrome VRP is Google's bug bounty programme: a scheme that pays researchers for finding and reporting problems in Chrome.
Setup
The conditions needed to trigger the bug are narrow, and they matter because they define the whole reproduction. Stated plainly:
- ARM Linux, for example AWS Graviton. ARM is a family of processor designs; Linux is the operating system. AWS Graviton is Amazon's ARM-based server chip, so a cloud machine using it is one example of this environment.
- Chrome running without GPU-accelerated video decode. The GPU is the graphics processor. Normally it can take over heavy video work, but here the browser must be doing that work on the main processor (the CPU) instead.
- A page served over HTTPS. HTTPS is the encrypted version of the web's HTTP protocol. WebCodecs is only made available to pages loaded in a secure context, meaning HTTPS (or a few equivalent trusted situations). This is a deliberate browser rule: powerful APIs are kept away from pages that could have been tampered with in transit.
- A Chrome version in the affected range. The researcher reports it works as expected in 134.0.6998.165 (and some later versions, though a bisect was not possible). A bisect is a technique for finding the exact change that introduced a bug by testing versions halfway between a known-good and a known-bad one, narrowing the range step by step. Here that was not done, so the exact boundary is unknown. The bug is reproducible in 138.0.7204.100 and above stable versions.
For automation, the researcher used Puppeteer. Puppeteer is a tool that lets a script drive a Chrome browser: open pages, run JavaScript, and observe what happens, without a human clicking. One practical caveat is noted: the Puppeteer install does not support ARM Linux, so the Chrome binary (the actual browser program) has to be installed with the system package manager or obtained in another way.
Finding it
The trigger is a VideoFrame built from an ArrayBuffer using the I420A format, with both dimensions odd. I420A is a pixel format: a recipe for how the bytes in the buffer are arranged. It is the pixel format named in the constructor call. The researcher's minimal JavaScript is:
const width = 1139;
const height = 641;
const buffer = new Uint8Array(2*width*height + 2 * (Math.ceil(width / 2) * Math.ceil(height / 2)));
const i420aFrame = new VideoFrame(buffer, {
format: 'I420A',
codedWidth: width,
codedHeight: height,
displayWidth: width,
displayHeight: height,
timestamp: 0,
});
Line by line, in plain words:
const width = 1139;sets the picture width to 1139 pixels, an odd number.const height = 641;sets the height to 641 pixels, also odd.const buffer = new Uint8Array(...)creates the raw byte box.Uint8Arrayis a JavaScript type meaning an array of unsigned 8-bit numbers, i.e. plain bytes. The size formula2*width*height + 2 * (Math.ceil(width / 2) * Math.ceil(height / 2))usesMath.ceilto round the halved dimensions up.Math.ceilrounds a number up to the next whole number, which is how you handle an odd dimension split in half.const i420aFrame = new VideoFrame(buffer, { ... });calls the constructor. It passes the byte box and a description object:format: 'I420A'says how to read the bytes;codedWidthandcodedHeightare the stored dimensions, set to the same odd values;displayWidthanddisplayHeightare the dimensions used when showing the frame, also matching;timestamp: 0labels the frame with a time of zero, which video code uses to order frames.
The behaviour that made this look wrong is the asymmetry: an odd width alone or an odd height alone is fine, but odd width and odd height together crash the renderer. The renderer is the part of Chrome that actually loads and runs a page; it is kept separate from the rest of the browser so that a problem in a page does not take down everything. The crash is reported as signal 11 with SEGV_ACCERR. The stack trace points into the NEON-optimised row copy routines.
A stack trace is the list of function calls that were in progress at the moment of the crash, innermost first. NEON is ARM's set of special instructions for doing many small operations at once, used to speed up tasks like copying pixels. A row copy routine is code that copies one horizontal line of pixels from one place to another.
Received signal 11 SEGV_ACCERR fbec001c2000
#0 0xbc3885f311e8 base::debug::CollectStackTrace()
#1 0xbc3885f20bc0 base::debug::StackTrace::StackTrace()
#2 0xbc3885f31094 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0xfd2981cfc8f8 ([vdso]+0x8f7)
#4 0xbc38868bf3bc CopyRow_NEON
#5 0xbc38868a41b0 CopyRow_Any_NEON
#6 0xbc388689e8a0 CopyPlane
#7 0xbc388987d778 blink::VideoFrame::Create()
#8 0xbc38892bab8c blink::(anonymous namespace)::v8_video_frame::ConstructorOverload2()
#9 0xbc38839d01ac v8::internal::FunctionCallbackArguments::CallOrConstruct()
#10 0xbc38839cfcb0 v8::internal::(anonymous namespace)::HandleApiCallHelper<>()
#11 0xbc38839cf5fc v8::internal::Builtin_HandleApiConstruct()
#12 0xbc38f7eb30e4 <unknown>
[end of stack trace]
Reading it from the bottom up (the way the calls happened):
Received signal 11 SEGV_ACCERRis the operating system reporting that the program was stopped for accessing memory it was not permitted to access. Signal 11 is the standard number for this on Linux.#0to#3are the crash-reporting machinery itself, collecting and printing the trace.#4 CopyRow_NEONand#5 CopyRow_Any_NEONare the NEON-accelerated row copy functions.#6 CopyPlaneis the function that copies a whole plane (one of the luma, chroma or alpha layers of the frame).#7 blink::VideoFrame::Create()is Chrome's internal code for creating a video frame. Blink is the name of Chrome's rendering engine, the part that turns HTML, CSS and JavaScript into what you see.#8to#11are the JavaScript engine plumbing that connects a JavaScriptnew VideoFrame(...)call to the internal C++ code. V8 is Chrome's JavaScript engine, the program that runs JavaScript.#12 <unknown>is a frame the tooling could not name.
The frames of interest are CopyPlane calling into CopyRow_Any_NEON and CopyRow_NEON, reached from blink::VideoFrame::Create() via the V8 constructor overload. In other words, the crash occurs while copying plane data during frame creation, on the ARM NEON path.
Exploitation
Step 1: Serve the trigger page over HTTPS
WebCodecs requires a secure context, so the researcher hosted the JavaScript above as a page on HTTPS:
https://cache-ssl.celtra.io/api/blobs/[redacted]/reproduction.html
Opening that page in an affected Chrome build on non-GPU-accelerated ARM Linux is the simplest manual reproduction. The page was hosted on HTTPS so that the WebCodecs API is available.
Step 2: Automate with Puppeteer
The researcher published a Puppeteer script for reproduction:
https://gist.github.com/jkosir/[redacted]
It must be run on ARM Linux. Because the Puppeteer install does not support ARM Linux, the Chrome binary has to come from the system package manager or another source. Automating the reproduction makes it repeatable: instead of manually opening a page and watching for a crash, a script can do it the same way every time.
Step 3: Observe the crash
When the constructor runs with both dimensions odd, the renderer receives signal 11 with SEGV_ACCERR and the stack trace shown above. With only one odd dimension, it works.
Root cause
The report does not give a confirmed root cause. A root cause is the underlying defect in the code that produces the visible symptom; the crash is the symptom, the root cause is why it happens. The researcher suspected a change in video_frame.cc, a source file in Chrome's codebase:
https://github.com/chromium/chromium/commit/[redacted]
A commit is a recorded change to a codebase, with a message and an identifier, so you can see exactly what was altered and when.
To test whether the NEON copy implementation was responsible, the researcher built Chromium with an older libyuv version, the one used in 134.0.6998.165, which implements the NEON copy. Libyuv is a library (a reusable bundle of code) for converting and copying image data, and it contains the NEON routines seen in the trace. The same issue persisted.
What the stack trace does establish is where the fault surfaces: in CopyPlane and the NEON row copy routines invoked from blink::VideoFrame::Create(). The precise defect is not identified in the report. Stride is the number of bytes between the start of one row of pixels and the start of the next; when a row is padded for alignment, the stride is larger than the visible width, and getting that arithmetic wrong is a classic source of copy bugs.
Impact
Under the stated conditions, constructing a VideoFrame with odd width and odd height from an ArrayBuffer crashes the browser. The conditions are restrictive: ARM Linux, no GPU-accelerated video decode, and an affected Chrome version (reproducible in 138.0.7204.100 and above stable versions). The report does not describe any memory disclosure, code execution or persistence beyond the crash. In plain terms: the worst outcome described here is that the page's renderer stops, not that an attacker reads secrets or takes over the machine.
Fix
It records the regression range (working in 134.0.6998.165, reproducible in 138.0.7204.100 and above) and the suspicion around the video_frame.cc change, but does not state what was changed to resolve it. A regression is a bug that did not exist in an earlier version and appeared later, usually because of a change made in between.
Variants to test
These are follow-up experiments a reader could run to learn more about the bug. Each one changes a single factor and states what a positive result would look like.
- Other odd dimension pairs with the
I420Aformat, to confirm the crash is not specific to 1139 by 641. - Other pixel formats accepted by the
VideoFrameArrayBuffer constructor, with odd width and height. - The same construction on ARM Linux with GPU-accelerated video decode enabled.
- The same construction on x86-64 Linux without GPU acceleration. x86-64 is the common processor family used in most desktop and server machines.
- Odd dimensions where only one axis is odd, as a control. A control is a test where you expect no problem, used to prove that the factor you changed is really what causes the effect. The expected result, per the report, is no crash.
Glossary
- API: a defined set of functions a program exposes so other code can use its features.
- ArrayBuffer: a fixed-length block of raw bytes in JavaScript, with no built-in meaning.
- ARM: a family of processor designs, common in phones and in servers such as AWS Graviton.
- Bisect: finding the change that introduced a bug by testing versions between a known-good and a known-bad one.
- Blink: Chrome's rendering engine, which turns HTML, CSS and JavaScript into a page.
- Bug bounty / VRP: a programme that pays researchers for reporting vulnerabilities; Chrome's is the Vulnerability Reward Program.
- Commit: a recorded change to a codebase, with an identifier.
- Constructor: the code that creates a new object of a given kind.
- Control: a test where no problem is expected, used to confirm what causes an effect.
- CVE: a public catalogue number for a known vulnerability.
- GPU: the graphics processor, which can take over heavy video work from the main processor.
- HTTPS: the encrypted version of HTTP, the web's transfer protocol.
- I420A: a pixel format storing full-resolution brightness, half-resolution colour, and an alpha (transparency) channel.
- Libyuv: a library for converting and copying image data, containing the NEON routines in the trace.
- NEON: ARM's set of instructions for doing many small operations at once, used to speed up pixel copying.
- Pixel format: a recipe for how the bytes of an image are arranged in memory.
- Puppeteer: a tool that lets a script drive a Chrome browser automatically.
- Regression: a bug that appeared in a later version and was not present earlier.
- Renderer: the part of Chrome that loads and runs a page, kept separate from the rest of the browser.
- Root cause: the underlying defect that produces a visible symptom.
- Secure context: a trusted page context, normally HTTPS, required for powerful browser APIs.
- Segmentation fault: the operating system stopping a program that tried to access memory it is not allowed to touch.
- Severity: a rating of how serious a vulnerability is.
- Stack trace: the list of function calls in progress at the moment of a crash.
- Stride: the number of bytes between the start of one row of pixels and the next, including any padding.
- V8: Chrome's JavaScript engine.
- WebCodecs: the browser API that lets JavaScript build and manipulate raw media frames directly.