🇰🇷 한글 설명
Linux 커널의 TIPC 프로토콜에서 tipc_l2_send_msg() 함수 호출 시 발생하는 Use-After-Free(UAF) 취약점입니다. tipc_disable_l2_media() 함수가 동기화 전에 미디어 포인터를 적절히 해제하지 않아, RCU 리더가 이미 해제된 장치 포인터에 접근할 수 있는 결함이 있습니다.
💡 쉬운 설명
컴퓨터의 통신 기능을 담당하는 핵심 프로그램에서 이미 사용이 끝난 메모리 주소를 다시 참조하여 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tipc: fix UAF in tipc_l2_send_msg()
Syzbot reported a slab-use-after-free in ipvlan_hard_header() when
called from tipc_l2_send_msg().
The root cause is that tipc_disable_l2_media() calls synchronize_net()
while b->media_ptr is still valid. This allows concurrent RCU readers
to obtain the device pointer after synchronize_net() has finished.
The pointer is cleared later in bearer_disable(), but without any
subsequent synchronization, allowing the device to be freed while
still in use by readers.
Fix this by clearing b->media_ptr in tipc_disable_l2_media() before
calling synchronize_net().
This is safe to do now because the call order in bearer_disable()
was reversed in 0d051bf93c06 ("tipc: make bearer packet filtering generic")
to call tipc_node_delete_links() (which needs the pointer) before
disable_media().
https: //lore.kernel.org/netdev/
[email protected]/T/#u
📍 영향받는 시스템
TIPC 프로토콜이 활성화된 Linux 커널 버전
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷을 전송하여 커널 메모리의 Use-After-Free 상태를 유도
🛡️ 대응 방법
TIPC 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인