HIGH Introduced in 6.8
wave5 DecOutputInfo Overflow
CVE-2026-98882
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.8 | 6.12.111 | d6f777d11c7b |
| 6.18 | 6.8 | 6.18.53 | 144f24ec0fc1 |
| mainline | 6.8 | 7.2 | 79aef69bb090 |
| cip/6.12 | 6.8 | 6.12.111-cip32 | d6f777d11c7b |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |