🇰🇷 한글 설명
Linux 커널의 gs_usb 드라이버에서 데이터 수신 시 헤더 길이를 확인하기 전에 데이터에 접근하는 취약점이 발견되었습니다. 이로 인해 잘못된 메모리 참조가 발생할 수 있으며, 이를 방지하기 위해 데이터 길이를 먼저 검증하고 포인터 참조 방식을 개선하는 패치가 적용되었습니다.
💡 쉬운 설명
USB 장치로부터 데이터를 받을 때, 데이터가 충분히 들어왔는지 확인하지 않고 바로 읽으려다 발생하는 오류입니다. 이 오류를 이용하면 시스템이 불안정해지거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
can: gs_usb: gs_usb_receive_bulk_callback(): check actual_length before accessing header
The driver expects to receive a struct gs_host_frame in
gs_usb_receive_bulk_callback().
Use struct_group to describe the header of the struct gs_host_frame and
check that we have at least received the header before accessing any
members of it.
To resubmit the URB, do not dereference the pointer chain
"dev->parent->hf_size_rx" but use "parent->hf_size_rx" instead. Since
"urb->context" contains "parent", it is always defined, while "dev" is not
defined if the URB it too short.
📍 영향받는 시스템
Linux Kernel (gs_usb 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
조작된 짧은 길이의 USB 패킷을 전송하여 드라이버의 메모리 참조 오류 유도
🛡️ 대응 방법
gs_usb 드라이버의 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인