🇰🇷 한글 설명
Linux 커널의 virtio-net 드라이버에서 receive_big() 함수의 길이 검증 오류로 인해 발생하는 취약점입니다. 악의적인 virtio 백엔드가 허용된 범위를 초과하는 길이를 전달할 경우, skb_shinfo()->frags 배열을 넘어선 영역에 NULL 값이 기록되는 Out-of-bounds 쓰기 문제가 발생할 수 있습니다.
💡 쉬운 설명
가상 네트워크 장치가 실제 데이터 크기보다 더 큰 데이터를 보낸다고 속여서 컴퓨터 메모리의 잘못된 위치에 데이터를 쓰게 만드는 보안 결함입니다. 이로 인해 시스템이 멈추거나 보안이 뚫릴 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
virtio-net: fix len check in receive_big()
receive_big() bounds the device-announced length by
(big_packets_num_skbfrags + 1) * PAGE_SIZE. That is still too loose:
add_recvbuf_big() sets sg[1] to start at offset
sizeof(struct padded_vnet_hdr) into the first page, so the chain
actually carries hdr_len + (PAGE_SIZE - sizeof(padded_vnet_hdr)) +
big_packets_num_skbfrags * PAGE_SIZE bytes -- 20 bytes less than the
check allows for the common hdr_len == 12 case.
A malicious virtio backend can announce a len in that gap. page_to_skb()
then walks one frag past the page chain, storing a NULL page->private
into skb_shinfo()->frags[MAX_SKB_FRAGS], which is both an out-of-bounds
write past the static frag array and a NULL frag handed up the rx path.
Bound len by the size add_recvbuf_big() actually advertised.
📍 영향받는 시스템
Linux kernel (virtio-net driver 사용 환경)
⚔️ 공격 벡터
악의적으로 조작된 길이를 전달하는 가상화 백엔드(virtio backend)를 통한 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 receive_big()의 길이 검증 로직을 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.