Skip to content
Memory corruption Advisory Intermediate CVE-2026-5909

Integer overflow in Media (CVE-2026-5909)

A signed integer overflow occurs in Chromium's H264 parser when processing a crafted SEI payload, causing a crash. An attacker could potentially exploit this to cause a denial of service or other undefined behaviour.

Mohammed Yasar B Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 50 days

Steps to reproduce the problem

  1. Build chrome libfuzzer with below mentioned args
  2. execute the fuzzer with the attached malformed H264 file
  3. Signed Integer overflow crash detected

Problem Description

A signed integer overflow occurs in chromiums H264 parser while processing SEI. The crash happens when multiplying a large parsed value.

Vulnerable file details

media/parsers/h264_parser.cc
Function : media::H264Parser::ParseSEI(media::H264SEI*)
Line : 1549

Build Args:

gn gen out/ASanMedia --args='
is_asan=true 
is_ubsan_security=true 
is_debug=false 
is_component_build=false 
proprietary_codecs=true 
ffmpeg_branding="Chrome" 
symbol_level=1 
use_remoteexec=false
use_libfuzzer=true 
mac_sdk_min="26" 
angle_enable_metal=false
'

autoninja -C out/ASanMedia media_h264_parser_fuzzer

Execution args

./media_h264_parser_fuzzer h264_sei_overflow.h264

Attached a poc file which contains the crafted sei payload for h264 which results in large parsed value causing the integer overflow

Summary

Signed Integer overflow in H264 SEI Parsing

Custom Questions

Crash state:

Crash state:

INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 4038822869
INFO: Loaded 1 modules   (3274258 inline 8-bit counters): 3274258 [0x104c70000, 0x104f8f612), 
ASanMedia/media_h264_parser_fuzzer: Running 1 inputs 1 time(s) each.
Running: /h264_sei_overflow.h264
../../media/parsers/h264_parser.cc:1549:40: runtime error: signed integer overflow: 268435456 * 8 cannot be represented in type 'int'
    #0 0x0001046f02c4 in media::H264Parser::ParseSEI(media::H264SEI*) media/parsers/h264_parser.cc:1549:40
    #1 0x00010457a01c in LLVMFuzzerTestOneInput media/parsers/h264_parser_fuzzertest.cc:65:22
    #2 0x0001045b8438 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) third_party/libFuzzer/src/FuzzerLoop.cpp:619:13
    #3 0x00010458ca74 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) third_party/libFuzzer/src/FuzzerDriver.cpp:329:6
    #4 0x0001045946a0 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) third_party/libFuzzer/src/FuzzerDriver.cpp:864:9
    #5 0x00010457a81c in main third_party/libFuzzer/src/FuzzerMain.cpp:20:10
    #6 0x00018486dd50 in start (/usr/lib/dyld:arm64e+0x8d50)
*
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../media/parsers/h264_parser.cc:1549:40 
Executed /h264_sei_overflow.h264 in 364 ms
***
*** NOTE: fuzzing was not performed, you have only
***       executed the target code on a fixed set of inputs.

***

Reporter credit:

Mohammed Yasar B & Ameen Basha M K

Additional Data

Category: Security
Chrome Channel: Not sure
Regression: N/A \

The original report as published on the Chromium issue tracker, by Mohammed Yasar B & Ameen Basha M K. 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 code multiplies a parsed value by 8 without checking if the result fits in a signed integer, leading to undefined behaviour.

Impact

The overflow causes a crash (denial of service) and undefined behaviour, which could potentially be exploited for code execution, though the report does not demonstrate that.

What the attacker needed

Victim processes a crafted H264 file

How it was found

  1. Build the Chrome libfuzzer with the specified arguments.
  2. Execute the fuzzer with the attached malformed H264 file.
  3. Observe the signed integer overflow crash.

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.

When a program reads a number that is too big for the space it has, it can wrap around to an unexpected value. This is called an integer overflow. Here, a specially crafted video file makes the H264 parser multiply a large number, which crashes the program.

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.