🇰🇷 한글 설명
Linux 커널의 kvaser_usb_leaf 드라이버에서 USB 버퍼로부터 가변 길이 명령을 처리할 때 길이 검증이 미흡한 취약점이 발견되었습니다. 헤더보다 짧거나 버퍼 범위를 벗어나는 명령이 전달될 경우, 고정된 크기의 구조체로 데이터를 복사하는 과정에서 메모리 오버플로우가 발생할 수 있습니다.
💡 쉬운 설명
USB 장치가 컴퓨터에 잘못된 크기의 명령을 보내면, 컴퓨터의 메모리 영역을 넘쳐흐르게 만들어 시스템 오류를 일으킬 수 있는 문제입니다. 이를 통해 공격자가 시스템을 불안정하게 만들거나 잘못된 데이터를 입력할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
can: kvaser_usb_leaf: kvaser_usb_leaf_wait_cmd(): validate received command extents
The wait and bulk receive paths walk variable-length commands from a
USB buffer. A nonzero command shorter than CMD_HEADER_LEN can still be
dispatched, and the wait path copies a matching command into a fixed
caller-owned struct kvaser_cmd using the device-provided length.
Reject nonzero commands that do not contain the fixed header or that
extend beyond the current USB buffer item. In the wait path, also reject
a matching command that exceeds the destination before copying it.
📍 영향받는 시스템
Linux kernel (kvaser_usb_leaf 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
조작된 USB 장치를 통해 잘못된 길이의 명령(Command)을 전달하여 메모리 오버플로우 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인