🇰🇷 한글 설명
Linux 커널의 media rkvdec HEVC 디코더에서 참조 RPS 인덱스 계산 시 언더플로우가 발생하는 취약점입니다. 공격자가 조작된 delta_idx_minus1 값을 제출하면 인덱스 계산 결과가 음수로 넘쳐 배열의 범위를 벗어난 메모리에 접근하게 됩니다.
💡 쉬운 설명
동영상 재생을 도와주는 시스템 부품에서 계산 오류를 일으켜 잘못된 메모리 영역을 읽게 만드는 버그입니다. 나쁜 의도를 가진 프로그램이 특수한 데이터를 보내면 시스템의 보안 경계를 넘을 수 있습니다.
🇺🇸 원문 (English)
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.
📍 영향받는 시스템
Linux kernel (media: rkvdec: hevc 관련 모듈 사용 시스템)
⚔️ 공격 벡터
V4L2 클라이언트를 통해 조작된 EXT_SPS_ST_RPS 제어 명령을 전송
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 인덱스 언더플로우 방지 로직 적용
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.