🇰🇷 한글 설명
Linux 커널의 airoha 드라이버에서 RX 큐 초기화 중 메모리 할당 실패 시 NULL 포인터 역참조가 발생하는 취약점입니다. ndesc 초기화 시점이 너무 빨라 초기화되지 않은 NAPI에 대해 삭제 함수를 호출함으로써 시스템 충돌을 유발할 수 있습니다.
💡 쉬운 설명
네트워크 장치를 준비하는 과정에서 메모리가 부족하면 컴퓨터 시스템이 갑자기 멈추거나 꺼질 수 있는 오류입니다. 장치가 제대로 준비되지 않았는데 삭제 명령을 내려서 발생하는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: airoha: Move ndesc initialization at end of airoha_qdma_init_rx_queue()
If queue entry or DMA descriptor list allocation fails in
airoha_qdma_init_rx_queue routine, airoha_qdma_cleanup() will trigger a
NULL pointer dereference running netif_napi_del() for RX queue NAPIs
since netif_napi_add() has never been executed to this particular RX NAPI.
The issue is due to the early ndesc initialization in
airoha_qdma_init_rx_queue() since airoha_qdma_cleanup() relies on ndesc
value to check if the queue is properly initialized. Fix the issue moving
ndesc initialization at end of airoha_qdma_init_tx routine.
Move page_pool allocation after descriptor list allocation in order to
avoid memory leaks if desc allocation fails.
📍 영향받는 시스템
Linux kernel (airoha driver component)
⚔️ 공격 벡터
로컬 공격자가 메모리 할당 실패를 유도하여 시스템 중단(DoS)을 일으킬 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.