🇰🇷 한글 설명
리눅스 커널의 VXLAN 구현에서 route_shortcircuit() 함수 호출 후 이더넷 헤더 포인터를 갱신하지 않아 발생하는 Use-After-Free 취약점입니다. pskb_may_pull() 호출로 인해 skb 메모리가 재할당될 경우, 기존에 캐싱된 이더넷 헤더 포인터가 해제된 메모리를 가리키게 되어 시스템 오류나 권한 상승을 유발할 수 있습니다.
💡 쉬운 설명
네트워크 데이터를 처리하는 과정에서 메모리 주소를 잘못 참조하여 발생하는 보안 결함입니다. 공격자가 이를 이용하면 시스템의 메모리를 조작하거나 제어권을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vxlan: re-fetch eth header after route_shortcircuit()
Before route_shortcircuit(), the eth header pointer is cached from eth_hdr(skb).
Inside route_shortcircuit(), pskb_may_pull() can be called, which may
reallocate skb->head.
In this case, returning to vxlan_xmit() leaves the cached eth pointer pointing to
freed memory, leading to a use-after-free when dereferencing eth->h_dest.
Fix this by updating eth = eth_hdr(skb) after calling route_shortcircuit().
📍 영향받는 시스템
VXLAN 기능을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
특수하게 조작된 VXLAN 패킷을 전송하여 메모리 재할당 및 Use-After-Free 유도
🛡️ 대응 방법
route_shortcircuit() 호출 이후 eth_hdr(skb)를 다시 호출하여 이더넷 헤더 포인터를 최신화한 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인