Insufficient validation of untrusted input in Codecs (CVE-2026-17848)
The H.265 VA-API decoder copies luma offset values from an int field into an int8_t field without checking the range, so values outside ±128 are silently truncated. An attacker could supply a crafted video file that causes incorrect weighted prediction values to reach the GPU decoder, producing visual corruption across the whole Chrome window.
Originally disclosed on Chrome VRP
- Fix shipped in 60 days
Steps to reproduce the problem
- Open Chrome 148+ on Linux with Intel/AMD GPU (VA-API capable)
- Serve the PoC files via HTTP or
file://protocol - Load
test.html?file=poc_luma_200.mp4 - Observe:
chrome://media-internalsshows VaapiVideoDecoder selected- Full Chrome window exhibits visual flickering/corruption
Chrome Launch Flags
google-chrome-stable \
--enable-features=VaapiVideoDecodeLinuxGL,VaapiVideoDecoder,PlatformHEVCDecoderSupport \
--autoplay-policy=no-user-gesture-required \
"file:///path/to/test.html?file=poc_luma_200.mp4"
Note: On Chrome 148 Linux, PlatformHEVCDecoderSupport is enabled by default.
Problem Description
Affected Versions
- Chrome 148.0.7778.178 (confirmed)
- All Chrome/Chromium versions with HEVC VA-API hardware decode enabled
- Platforms: Linux (VA-API), ChromeOS, potentially Windows (D3D11)
Summary
The H.265 VA-API video decoder delegate copies parsed luma_offset_l0[i] and
luma_offset_l1[i] values (type int, range ±511 with 10-bit high-precision
offsets) into the VA-API VASliceParameterBufferHEVC struct where the destination
field is int8_t (range ±128). This silent integer narrowing sends incorrect
weighted prediction offset values to the GPU hardware decoder.
Root Cause
File: media/gpu/vaapi/h265_vaapi_video_decoder_delegate.cc
Line: 441, 446
#define SHDR_TO_SP2(a, b) slice_param_.b = slice_hdr->a
// Line 441 — luma_offset_l0: int → int8_t
SHDR_TO_SP2(pred_weight_table.luma_offset_l0[i], luma_offset_l0[i]);
// Line 446 — luma_offset_l1: int → int8_t
SHDR_TO_SP2(pred_weight_table.luma_offset_l1[i], luma_offset_l1[i]);
The parser (h265_parser.cc:2101) correctly validates the range per the HEVC spec:
- With
high_precision_offsets_enabled_flag=1and 10-bit depth: range [-512, 511] - Parser stores in
inttype — no truncation
But the VA-API backend blindly copies to int8_t without checking if the value
fits, causing undefined behavior (signed integer overflow in C++).
Impact
Immediate (Confirmed)
- GPU memory corruption manifesting as full-process visual artifacts
- Incorrect weighted prediction values sent to hardware decoder
- The corruption extends beyond the video surface to the compositor
Summary
[482862710 same] Kernel GPU Corruption: H.265 luma_offset int→int8_t Truncation
Additional Data
Category: Security
Chrome Channel: Stable
Regression: N/A \
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 VA-API backend copies a parser-validated int luma offset (range up to ±511) into an int8_t struct field without a range check, causing signed integer overflow.
Impact
The corruption could extend beyond the video surface to the compositor, causing full-process visual artifacts; this was confirmed only on Linux with VA-API hardware decode enabled.
What the attacker needed
Chrome 148+ on Linux; Intel/AMD GPU with VA-API; HEVC hardware decode enabled; Victim loads a crafted video
How it was found
- Open Chrome 148+ on Linux with an Intel/AMD GPU that supports VA-API
- Serve the proof-of-concept files over HTTP or file://
- Load the test page pointing at the crafted video file
- Check media-internals to confirm the VA-API decoder was selected and observe the window flickering
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 decoder reads numbers from a video file and passes them to the graphics card. Here the code stored a large number in a much smaller slot, so the value got cut down and the wrong number reached the hardware. A malicious video file can trigger this and make the screen glitch.
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.