KernelScan.io

HIGH Introduced in 6.8

wave5 DecOutputInfo Overflow

CVE-2026-98882

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: media: chips-media: wave5: Add range checks for dec_output_info If the driver's dec_output_info contains invalid data the driver can write in invalid memory. Add a range check for that. This fixes this smatch error: drivers/media/platform/chips-media/wave5/wave5-vpuapi.c:588 wave5_vpu_dec_get_output_info() error: buffer overflow 'inst->frame_buf' 64 <= 127

02

Engine v0.9.0

Risk summary

A local attacker with access to the video device (typically via the 'video' group) can trigger a heap buffer overflow in the wave5 VPU driver by causing the hardware firmware to return a crafted index_frame_display value. This allows arbitrary kernel memory write, leading to privilege escalation or kernel panic.

Affecteddrivers/media/platform/chips-media/wave5/wave5-vpuapi.c (chips-media wave5 VPU driver)

Vulnerability analysis

The wave5 VPU driver's wave5_vpu_dec_get_output_info() function reads a frame index from the hardware's decode output info and uses it to access the driver's frame_buf array without validating that the computed index stays within the array bounds. The existing check only validated the raw hardware index against max_dec_index, but the actual array access adds an offset (val) that can push the final index past MAX_REG_FRAME (64), causing an out-of-bounds write to kernel heap memory. The fix adds an explicit bounds check on the computed index before the array access, returning -EINVAL if the index is invalid. The vulnerability is reachable by any local user with access to the video device node (e.g., members of the 'video' group or container workloads with device access), who can feed malicious video streams that cause the VPU firmware to return an out-of-range index_frame_display value.

03

BranchIntroducedFixed inPatch commit
6.126.86.12.111d6f777d11c7b
6.186.86.18.53144f24ec0fc1
mainline6.87.279aef69bb090
cip/6.126.86.12.111-cip32d6f777d11c7b

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32