🇰🇷 한글 설명
Linux 커널의 bnxt_en 드라이버에서 네트워크 인터페이스를 내릴 때 펌웨어 리소스가 변경되면 메모리 손상이 발생할 수 있는 취약점입니다. bnxt_set_dflt_rings 함수가 트래픽 제어(TC) 개수를 고려하지 않아 TX 링 크기를 잘못 계산함으로써 메모리 오염을 유발합니다.
💡 쉬운 설명
네트워크 장치 설정이 바뀌는 과정에서 컴퓨터가 메모리 공간을 실제 필요한 것보다 작게 잡는 오류가 있습니다. 이로 인해 데이터가 정해진 공간을 넘쳐흘러 시스템 오류나 보안 문제를 일으킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bnxt_en: Fix memory corruption when FW resources change during ifdown
bnxt_set_dflt_rings() assumes that it is always called before any TC has
been created. So it doesn't take bp->num_tc into account and assumes
that it is always 0 or 1.
In the FW resource or capability change scenario, the FW will return
flags in bnxt_hwrm_if_change() that will cause the driver to
reinitialize and call bnxt_cancel_reservations(). This will lead to
bnxt_init_dflt_ring_mode() calling bnxt_set_dflt_rings() and bp->num_tc
may be greater than 1. This will cause bp->tx_ring[] to be sized too
small and cause memory corruption in bnxt_alloc_cp_rings().
Fix it by properly scaling the TX rings by bp->num_tc in the code
paths mentioned above. Add 2 helper functions to determine
bp->tx_nr_rings and bp->tx_nr_rings_per_tc.
📍 영향받는 시스템
bnxt_en 드라이버를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
네트워크 인터페이스 설정 변경 또는 펌웨어 리소스 변경을 유도하여 메모리 손상 유발
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 수정된 버전 이상인지 확인