🇰🇷 한글 설명
Linux 커널의 IPv6 멀티캐스트 라우팅(ip6mr) 과정에서 RCU 보호를 받지 않는 dst 객체를 참조하여 발생하는 Use-After-Free 취약점입니다. 멀티캐스트 패킷이 미해결 큐에 저장될 때 dst 참조 카운트가 적절히 관리되지 않아, 경로가 삭제된 후 잘못된 인터페이스로 보고될 경우 해제된 메모리에 접근하게 됩니다.
💡 쉬운 설명
컴퓨터가 네트워크 데이터를 전달하는 과정에서 이미 삭제된 메모리 정보를 다시 사용하려고 시도하여 발생하는 오류입니다. 이로 인해 시스템이 충돌하거나 해커가 시스템 제어권을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ip6mr: do not clone dst in ip6mr_cache_report()
IPv6 input attaches a non-refcounted (NOREF) dst to skbs under RCU.
When an ingress multicast packet misses MFC lookup,
ip6mr_cache_unresolved() places the skb onto the unresolved queue,
escaping the receive-side RCU grace period.
If the underlying route is deleted and freed, and the MFC queue is later
resolved with a wrong parent interface, ip6_mr_forward() invokes
ip6mr_cache_report(..., MRT6MSG_WRONGMIF), which executes
dst_clone(skb_dst(pkt)) on the freed dst entry, triggering a slab
use-after-free.
Report packets queued to mroute6_sk (a raw socket) and netlink
notifications do not require an attached dst entry.
Fix this by:
1. Removing dst_clone() in ip6mr_cache_report() and ensuring report skbs
do not hold a dst.
2. Dropping skb_dst before queuing unresolved skbs in
ip6mr_cache_unresolved(), matching the fact that multicast
forwarding resolves outgoing routes anew via ip6_route_output().
📍 영향받는 시스템
Linux Kernel (IPv6 multicast routing module ip6mr 사용 환경)
⚔️ 공격 벡터
특수하게 조작된 IPv6 멀티캐스트 패킷을 전송하여 커널의 메모리 관리 오류를 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ip6mr_cache_report의 dst_clone() 호출을 제거해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인