🇰🇷 한글 설명
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 data
The URB received in gs_usb_receive_bulk_callback() contains a struct
gs_host_frame. The length of the data after the header depends on the
gs_host_frame hf::flags and the active device features (e.g. time
stamping).
Introduce a new function gs_usb_get_minimum_length() and check that we have
at least received the required amount of data before accessing it. Only
copy the data to that skb that has actually been received.
[mkl: rename gs_usb_get_minimum_length() -> +gs_usb_get_minimum_rx_length()]
📍 영향받는 시스템
gs_usb 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 데이터를 전송하는 USB 장치를 연결하여 메모리 오류 유도
🛡️ 대응 방법
gs_usb 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인