Heap buffer overflow in libvpx (CVE-2026-1861)
The superframe index writer in libvpx's VP9 encoder reports a byte count even when it did not actually write the index because the output buffer was full. A caller trusting that count could then write past the end of the buffer, causing a heap buffer overflow.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 9 days
Security Bug
VULNERABILITY DETAILS This bug was originally reported in https://g-issues.oss-fuzz.com/issues/476466137: libvpx:vpx_enc_fuzzer_vp9: Heap-buffer-overflow in vpx_wb_write_literal
The write_superframe_index() function in vp9/vp9_cx_iface.c should return the number of bytes written. But if the output buffer is full and write_superframe_index() doesn't write the optional superframe index, it still returns the size of the superframe index in bytes. It should return 0 in that case.
VERSION Chrome Version: 144.0.7559.96 stable Operating System: All
REPRODUCTION CASE See https://g-issues.oss-fuzz.com/issues/476466137.
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 function returns the intended size of the superframe index instead of the number of bytes actually written, so a full buffer yields a non-zero count for data that was never stored.
Impact
A heap buffer overflow in the encoder could crash the process and, in some contexts, may be exploitable for code execution, though the text does not demonstrate that.
What the attacker needed
Crafted input to the VP9 encoder
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 encoder packs several frames into one output buffer and records where each one sits in a small index at the end. When the buffer is already full, that index is skipped, but the function still says it wrote it. The caller then believes there is more room than there really is and writes past the end of the memory block, which can crash the program or be abused.
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.