🇰🇷 한글 설명
Linux 커널의 hinic 네트워크 드라이버에서 메일박스 세그먼트 버퍼 오버플로우 취약점이 발견되었습니다. 마지막 세그먼트의 길이가 수신 버퍼의 남은 공간을 초과하여 16바이트의 힙 버퍼 오버플로우를 유발할 수 있습니다.
💡 쉬운 설명
네트워크 장치와 통신할 때 데이터를 담는 그릇보다 더 많은 데이터를 보내서 시스템 메모리를 넘치게 만드는 오류입니다. 이로 인해 시스템이 불안정해지거나 해커가 악성 코드를 실행할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: hinic: fix mailbox segment buffer overflow
check_mbox_seq_id_and_seg_len() validates that seq_id does not
exceed SEQ_ID_MAX_VAL (42) and seg_len does not exceed
MBOX_SEG_LEN (48). However, this allows the last segment
(seq_id=42) to carry a full 48-byte payload, writing to offset
42*48=2016 for 48 bytes (ending at byte 2064). The receive
buffer is only MBOX_MAX_BUF_SZ (2048) bytes, resulting in a
16-byte heap buffer overflow.
The hinic3 driver already handles this correctly by defining
MBOX_LAST_SEG_MAX_LEN and rejecting the last segment when it
exceeds the remaining buffer space. Apply the same fix to the
hinic driver.
📍 영향받는 시스템
Linux kernel (hinic driver 사용 시스템)
⚔️ 공격 벡터
조작된 메일박스 세그먼트 길이를 전송하여 힙 메모리 오버플로우 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 hinic 드라이버의 세그먼트 길이 검증 로직을 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.