🇰🇷 한글 설명
Linux 커널의 xfrm 비동기 재개 과정에서 skb->dev 참조 횟수 관리 오류로 인한 Use-After-Free 취약점이 발견되었습니다. xfrm_rcv_cb가 장치 참조를 확보하지 않고 skb->dev를 수정할 경우, 터널 장치의 참조 횟수가 잘못 계산되어 메모리 오류 및 참조 횟수 누수가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 데이터를 처리하는 과정에서 컴퓨터 메모리를 사용하는 규칙이 어긋나 발생하는 문제입니다. 이로 인해 시스템이 예기치 않게 종료되거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfrm: Fix dev use-after-free in xfrm async resumption
xfrm async resumption hold skb->dev refcnt until after transport_finish.
However, xfrm_rcv_cb may modify skb->dev to tunnel dev without taking
device reference, such as vti_rcv_cb. The subsequent async resumption
will decrement the tunnel device's reference count, which lead to uaf
of tunnel dev and refcnt leak of orig dev as below:
unregister_netdevice: waiting for vti1 to become free. Usage count = -2
Stash the original skb->dev to fix refcnt imbalance. The new skb->dev set
by xfrm_rcv_cb can race with device teardown. Extend rcu protection over
xfrm_rcv_cb and transport_finish to prevent races.
📍 영향받는 시스템
Linux Kernel (xfrm 모듈 사용 시스템)
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷을 전송하여 xfrm 비동기 처리 과정의 레이스 컨디션 유도
🛡️ 대응 방법
xfrm 관련 패치가 적용된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인