🇰🇷 한글 설명
Linux 커널의 Geneve 네트워크 드라이버에서 발생한 취약점으로, geneve_gro_complete() 함수가 내부 네트워크 오프셋을 적절히 검증하지 않아 발생합니다. 동시성 문제나 옵션 바이트 불일치로 인해 잘못된 오프셋이 계산될 경우 메모리 경계를 벗어난 접근이 가능할 수 있습니다.
💡 쉬운 설명
네트워크 데이터를 효율적으로 처리하는 과정에서 데이터의 위치를 잘못 계산하여 시스템의 중요한 영역을 침범할 수 있는 보안 결함입니다. 공격자가 특수하게 조작된 네트워크 패킷을 보내 시스템을 마비시키거나 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
geneve: validate inner network offset in geneve_gro_complete()
Even with both paths gated on gs->gro_hint, geneve_gro_complete()
re-derives the inner dispatch type and length from the packet and the
current gs->gro_hint, independently of geneve_gro_receive(). The two can
disagree if gs->gro_hint flips under a concurrent geneve_quiesce()/
geneve_unquiesce() (sk_user_data is NULL across a synchronize_net()), or if
the re-read option bytes differ from the ones receive parsed.
geneve_gro_receive() already records the inner network header position in
NAPI_GRO_CB()->inner_network_offset. Have geneve_gro_complete() compute the
offset it is about to dispatch at, adding ETH_HLEN in the ETH_P_TEB case
where eth_gro_complete() steps over the inner MAC header, and bail out if
it lands past inner_network_offset.
Use a lower bound rather than exact equality: between gh_len and the inner
L3 header, geneve_gro_receive() may also have pulled an inner VLAN tag
(vlan_gro_receive() advances the recorded offset past it), which only moves
inner_network_offset further out. A valid frame therefore always satisfies
inner_nh <= inner_network_offset, while a gh_len inflated by a hint
gro_receive() did not honour dispatches past the validated inner header,
i.e. the out-of-bounds completion. Only the latter is rejected.
📍 영향받는 시스템
Geneve 프로토콜을 사용하는 Linux 커널 버전 (패치 적용 전 버전)
⚔️ 공격 벡터
조작된 Geneve 캡슐화 패킷을 전송하여 커널의 GRO(Generic Receive Offload) 처리 과정에서 오프셋 검증을 우회
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 제조사의 보안 공지와 대조하십시오.