🇰🇷 한글 설명
리눅스 커널의 IPv6 주소 설정(addrconf) 과정에서 발생할 수 있는 참조 횟수(refcount) 언더플로우 취약점입니다. 타이머 상태를 확인하고 수정하는 과정 사이의 시간 차이로 인해 객체의 참조 횟수가 잘못 관리되어 시스템 불안정이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터가 네트워크 주소를 관리할 때 사용하는 타이머 기능에 오류가 있어, 메모리 관리 숫자가 마이너스로 떨어지는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ipv6/addrconf: fix a potential refcount underflow for idev
Now in addrconf_mod_rs_timer(), reference idev depends on whether
rs_timer is not pending. Then modify rs_timer timeout.
There is a time gap in [1], during which if the pending rs_timer
becomes not pending. It will miss to hold idev, but the rs_timer
is activated. Thus rs_timer callback function addrconf_rs_timer()
will be executed and put idev later without holding idev. A refcount
underflow issue for idev can be caused by this.
if (!timer_pending(&idev->rs_timer))
in6_dev_hold(idev);
<--------------[1]
mod_timer(&idev->rs_timer, jiffies + when);
To fix the issue, hold idev if mod_timer() return 0.
📍 영향받는 시스템
IPv6 기능을 사용하는 취약한 버전의 리눅스 커널
⚔️ 공격 벡터
특수하게 조작된 IPv6 네트워크 패킷을 전송하여 타이머 로직의 경쟁 상태(Race Condition) 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인