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

Insufficient validation of untrusted input in Codecs (CVE-2026-11198)

Chrome's H.265 parser accepts out-of-spec values for several SPS and PPS syntax elements and passes them unclamped to hardware drivers via VAAPI and V4L2. An attacker could craft a malicious HEVC video to potentially cause memory corruption in the GPU process or Linux kernel.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 44 days

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 without the Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.

Overview: Chrome's H.265 bitstream parser enforces loose validation bounds on several SPS and PPS syntax elements, exceeding the maximum limits defined in the H.265 specification. These out-of-spec values are passed directly to underlying hardware drivers via VAAPI and V4L2 without further clamping. This can potentially lead to memory corruption in the GPU process or Linux kernel if the drivers assume the inputs are specification-compliant.

Affected files:

  • media/parsers/h265_parser.cc
  • media/gpu/vaapi/h265_vaapi_video_decoder_delegate.cc
  • media/gpu/v4l2/v4l2_video_decoder_delegate_h265.cc

Estimated timestamp from git blame: 2023-04-18

Vulnerability Details

Chrome's H.265 (HEVC) parser handles bitstream validation before delegating the decoding process to hardware drivers (such as VAAPI on Linux or V4L2 on ChromeOS). The implementation in media/parsers/h265_parser.cc uses base::CheckedNumeric and certain bounds checks to prevent immediate 32-bit integer overflows during Chrome's internal calculations. However, it fails to enforce the strict architectural maximums dictated by the H.265 specification (ISO/IEC 23008-2).

Specifically, the following Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) fields are allowed to reach values vastly exceeding their specification limits:

  • log2_min_luma_coding_block_size_minus3: Accepted up to 27 (Spec max typically ~3).
  • ctb_log2_size_y: Computed and allowed up to 30 (Spec limit 6).
  • max_transform_hierarchy_depth_inter / intra: Accepted up to 28 (Spec max 4).
  • diff_cu_qp_delta_depth: Accepted up to 27.
  • log2_parallel_merge_level_minus2: Accepted up to 28.

Once parsed, these out-of-bounds parameters are copied verbatim into driver-facing structures without any further clamping:

  • VAAPI: In media/gpu/vaapi/h265_vaapi_video_decoder_delegate.cc, macros like FROM_SPS_TO_PP copy the values into a VAPictureParameterBufferHEVC struct. This is then submitted to the user-mode driver via vaapi_wrapper_->SubmitBuffer().
  • V4L2: In media/gpu/v4l2/v4l2_video_decoder_delegate_h265.cc, macros like SPS_TO_V4L2SPS copy the values into a v4l2_ctrl_hevc_sps struct, which is pushed directly into the Linux kernel via the VIDIOC_S_EXT_CTRLS ioctl.

Hardware drivers generally assume that the upstream userspace framework (Chrome) has validated the bitstream parameters to specification bounds. Drivers often use parameters like log2_min_luma_coding_block_size_minus3 as bitwise shift exponents (e.g., 1 << (val + 3)). A value of 27 can result in massive integer overflows during internal allocation size calculations. Additionally, parameters like max_transform_hierarchy_depth are often used to constrain recursion depths or index fixed-size local arrays. Passing 28 instead of 4 can easily lead to deep recursion (stack exhaustion) or out-of-bounds array writes within the driver.

This leads to potential memory corruption in the GPU process (via VAAPI) or a potential sandbox escape/kernel compromise (via V4L2).

Suggested Steps to Trigger

Please note: These are potential steps to trigger the issue, as our tooling does not currently have the ability to run code or verify a full proof of concept.

  1. An attacker crafts a malicious HEVC video bitstream where SPS and PPS NAL units contain syntax elements (like log2_min_luma_coding_block_size_minus3 and max_transform_hierarchy_depth_inter) set to their maximum parser-allowed values (e.g., 27 and 28 respectively).
  2. The attacker embeds this malicious video stream into a webpage using <video>, MSE, or WebCodecs.
  3. A victim visits the webpage on a platform utilizing hardware-accelerated HEVC decoding (e.g., Linux with VAAPI or ChromeOS with V4L2).
  4. The renderer parses the container and passes the raw stream to the GPU/Video Decoder process.
  5. H265Parser parses the bitstream, accepts the massively out-of-spec values, and passes them to the decoder delegates.
  6. The delegates copy the unsanitized values into VAPictureParameterBufferHEVC (VAAPI) or v4l2_ctrl_hevc_sps (V4L2) and submit them to the hardware driver.
  7. The underlying driver processes the oversized values, resulting in an integer overflow or out-of-bounds write during hardware initialization or decoding.

Suggested Fix

Update media/parsers/h265_parser.cc to enforce strict H.265 specification bounds for all SPS and PPS syntax elements, rather than just bounds that prevent internal integer overflows. Alternatively, explicit clamping and strict validation against specification maximums should be implemented in H265VaapiVideoDecoderDelegate and H265V4L2VideoDecoderDelegate before populating the driver structures.

Evaluated with Chrome root at commit: 7353d249d9cacf9c7218e1d7b8a39cf39c72d646


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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.

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

The H.265 parser only checks for internal integer overflows but does not enforce the strict maximum values defined in the H.265 specification for certain SPS and PPS fields, and these values are passed unclamped to hardware drivers.

Impact

This could potentially lead to memory corruption in the GPU process or a sandbox escape/kernel compromise, but the report notes these are potential steps and the tooling cannot verify a full proof of concept.

What the attacker needed

Victim visits a webpage; platform with hardware HEVC decoding; attacker crafts malicious HEVC video

The fix

The parser should enforce strict H.265 specification bounds for all SPS and PPS syntax elements, or the decoder delegates should clamp and validate values against specification maximums before populating driver structures.

How it was found

  1. An attacker crafts a malicious HEVC video bitstream with SPS and PPS syntax elements set to maximum parser-allowed values.
  2. The attacker embeds the video stream into a webpage using <video>, MSE, or WebCodecs.
  3. A victim visits the webpage on a platform with hardware-accelerated HEVC decoding (e.g., Linux with VAAPI or ChromeOS with V4L2).
  4. The renderer parses the container and passes the raw stream to the GPU/Video Decoder process.
  5. H265Parser accepts the out-of-spec values and passes them to the decoder delegates.
  6. The delegates copy the unsanitized values into driver structures and submit them to the hardware driver, which may cause an integer overflow or out-of-bounds write.

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.

Video files contain parameters that tell the decoder how to process the video. Chrome checks these parameters but allows some values that are larger than the official video standard permits. These oversized values are then sent to hardware drivers, which may not handle them safely, potentially causing crashes or memory corruption.

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.