CyberRota Analysis
AI-GeneratedA vulnerability in the Linux kernel's RKVDEC HEVC decoder allows a userspace V4L2 client to exploit an underflow condition when submitting crafted control commands, potentially leading to out-of-bounds memory access. This could result in unauthorized memory reads or crashes, posing a risk to system stability and security. Organizations using affected Linux distributions with media processing capabilities should prioritize patching this vulnerability to mitigate potential exploitation.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: media: rkvdec: hevc: guard INTER_REF_PIC_SET_PRED index underflow st_ref_pic_set_prediction() computes the reference RPS index as st_rps_idx - (delta_idx_minus1 + 1) per HEVC spec equation 7-59. Both operands are u8, so when delta_idx_minus1 + 1 exceeds the current index the subtraction wraps and the subsequent array access at calculated_rps_st_sets[ref_rps_idx] reads far out of bounds. A userspace V4L2 client that can open the RKVDEC m2m decoder can submit an EXT_SPS_ST_RPS control with INTER_REF_PIC_SET_PRED set and delta_idx_minus1 crafted to trigger the underflow. Reject the entry early when the reference index would underflow.