Integer overflow in Chromecast (CVE-2026-79292)
A size value from a renderer-supplied decoder buffer is narrowed from an unsigned size type into a signed 32-bit integer, so a value above 2 GiB becomes negative and is passed to proprietary Starboard player APIs in the browser process. The text states that memory limits make a real exploit unlikely and that the practical outcome is at most a crash, a denial of service.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: In Chromecast/Starboard builds, DemuxerStreamReader assigns a size_t buffer size to a signed 32-bit int. If a compromised renderer provides a buffer size exceeding 2 GiB, this value narrows to a negative integer. The negative size is then passed with a valid heap pointer to proprietary Starboard player APIs in the browser process.
Affected files:
chromecast/starboard/media/renderer/demuxer_stream_reader.ccchromecast/starboard/media/media/starboard_api_wrapper.hchromecast/starboard/media/media/starboard_api_wrapper_base.cc
Estimated timestamp from git blame: 2025-06-05
Potential Vulnerability Details
In Chromecast/Starboard media playback configurations, the StarboardRenderer runs inside the browser process's in-process MediaService. A potential integer narrowing defect exists in DemuxerStreamReader::OnReadBuffer where a size_t value is implicitly cast into a signed int when copying to StarboardSampleInfo.
In chromecast/starboard/media/renderer/demuxer_stream_reader.cc:
StarboardSampleInfo sample_info = {};
sample_info.type = type;
sample_info.buffer = base::span(*buffer).data();
sample_info.buffer_size = buffer->size(); // Narrowing from size_t to int!
In chromecast/starboard/media/media/starboard_api_wrapper.h, the StarboardSampleInfo struct is defined as:
struct StarboardSampleInfo {
int type;
const void* buffer;
int buffer_size; // Signed int
...
};
If a compromised renderer sends a Mojo DataDecoderBuffer with a data_size of 0x80000001 (approx. 2 GiB) or larger, this size is successfully promoted to size_t during conversion/deserialization. However, when assigned to sample_info.buffer_size, the implicit narrowing to a signed int results in a negative value (e.g., -2147483647). This negative value is then forwarded verbatim to SbPlayerWriteSample2 or SbPlayerWriteSamples in the closed-source proprietary platform/vendor library (libcast_starboard_api.so).
Potential Attack Steps
- From a compromised renderer, bind the browser-side
media.mojom.Renderer(StarboardRenderer). - Supply a renderer-hosted
mojom::DemuxerStreamduring initialization. - Reply to a
DemuxerStream::Readrequest with amojom::DecoderBufferwhoseDataDecoderBuffer.data_sizeis in the range[0x80000000, 0xFFFFFFFF]. - Stream the data through the data pipe to complete the read in the browser.
DemuxerStreamReader::OnReadBuffernarrows thesize_tto a negativeint, which is then sent to the vendor Starboard APIs.
Real-world Mitigations & Practical Exploitability
Note: Our security analysis tools do not have the capability to run code or execute a live proof of concept on physical hardware. These steps are theoretical.
In practice, this bug is highly unlikely to be exploitable due to physical memory constraints:
- Allocating a contiguous 2 GiB buffer via
base::HeapArray<uint8_t>::Uniniton typical 32-bit or memory-constrained embedded Chromecast/Starboard architectures will fail and trigger an immediate out-of-memory (OOM) crash. - Even if virtual memory allocation succeeds, streaming 2 GiB of data through a Mojo data pipe will consume physical memory/swap resources, triggering the OS Out-of-Memory (OOM) killer before the read callback completes. This limits the real-world impact of this code flaw to a Denial of Service (DoS) stability crash.
Suggested Remediation
To prevent potential integer narrowing, use base::checked_cast or validate the size of incoming buffers to enforce a reasonable upper boundary on DecoderBuffer sizes before processing:
sample_info.buffer_size = base::checked_cast<int>(buffer->size());
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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.
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 an implicit narrowing conversion from an unsigned size type to a signed 32-bit integer without a bounds check before calling the vendor media API.
Impact
The text says the bug is highly unlikely to be exploitable because allocating and streaming 2 GiB fails or triggers the out-of-memory killer, limiting real-world impact to a denial-of-service stability crash; no proof of concept was run.
What the attacker needed
Compromised renderer; Chromecast/Starboard build; enough memory to reach the call
The fix
The report suggests using a checked cast or validating incoming buffer sizes against a reasonable upper bound before processing; it does not say the issue was fixed.
How it was found
- From a compromised renderer, bind the browser-side renderer interface.
- Provide a renderer-hosted demuxer stream during initialisation.
- Answer a read request with a decoder buffer whose declared data size is between 2 GiB and 4 GiB.
- Send the data through the data pipe so the read completes in the browser process.
- The size is narrowed to a negative integer and forwarded to the vendor player APIs.
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 program stores a length in a number type that cannot hold very large values. When a huge length arrives, the number wraps around and becomes negative, and that bad value is handed to a media library. The report says the machine would probably run out of memory first, so the realistic result is a crash rather than code execution.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.