🇰🇷 한글 설명
Linux 커널의 bnxt_en 드라이버에서 펌웨어 응답값인 resp->type을 기반으로 메타데이터 배열의 인덱스를 참조할 때 발생하는 취약점입니다. 펌웨어 응답에 의존하는 대신 현재 쿼리 타입을 사용하여 배열 인덱스를 설정하도록 수정하여 인덱스 오류를 방지합니다.
💡 쉬운 설명
하드웨어 장치와 통신할 때 장치가 보내주는 잘못된 정보를 그대로 믿어 시스템 오류가 발생할 수 있는 문제입니다. 이를 수정하여 장치가 잘못된 정보를 보내더라도 시스템이 안전하게 동작하도록 개선했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bnxt_en: set backing store type from query type
bnxt_hwrm_func_backing_store_qcaps_v2() stores resp->type from the
firmware response in ctxm->type and later uses that value to index
fixed backing-store metadata arrays such as ctx_arr[] and
bnxt_bstore_to_trace[].
ctxm->type is fixed by the current backing-store query type and matches
the array index of ctx->ctx_arr. Set ctxm->type from the current loop
variable instead of depending on resp->type.
Also update the loop to advance type from next_valid_type in the for
statement, which keeps the control flow simpler for non-valid and
unchanged entries.
📍 영향받는 시스템
Linux kernel (bnxt_en driver 사용 시스템)
⚔️ 공격 벡터
조작된 펌웨어 응답을 통한 커널 메모리 인덱스 오류 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인