media: rkvdec: hevc: guard INTER_REF_PIC_SET_PRED index underflow
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 052c5ed5a1d96a6b24fd50ccda16fc6841ee7ca3 and Kernel 74938f83a8abbee8f502dfb5d94213b2497d1edf.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =7.0, >=c9a59dc2acc72789d5c778af080d1e65af84862c <052c5ed5a1d96a6b24fd50ccda16fc6841ee7ca3, >=c9a59dc2acc72789d5c778af080d1e65af84862c <74938f83a8abbee8f502dfb5d94213b2497d1edf | 052c5ed5a1d96a6b24fd50ccda16fc6841ee7ca3, 74938f83a8abbee8f502dfb5d94213b2497d1edf |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket