В ядре Linux устранена следующая уязвимость: media: rkvdec: hevc: guard INTER_REF_PIC_SET_PRED index underflow st_ref_pic_set_prediction() Вычисляет эталонный индекс RPS как st_rps_idx — (delta_idx_minus1 + 1) по уравнению HEVC spec 7-59. Оба операнда являются u8, поэтому, когда delta_idx_minus1 + 1 превышает текущий индекс, обёртки вычитания и последующий доступ к массиву в calculated_rps_st_sets[ref_rps_idx] читается далеко за пределами. Клиент пользовательского пространства V4L2, который может открыть декодер RKVDEC m2m, может предоставить управление EXT_SPS_ST_RPS с набором INTER_REF_PIC_SET_PRED и delta_idx_minus1, созданным для запуска потока.
Отклонить запись раньше, когда исходный индекс будет недостаточным.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v3.1