🇰🇷 한글 설명
Linux 커널의 xfrm: iptfs 구성 요소에서 __input_process_payload 함수 실행 중 use-after-free 취약점이 발견되었습니다. 재조립 과정에서 락(lock)을 해제한 후 skb 객체의 소유권을 확인하는 과정에서 경쟁 상태(race condition)가 발생하여 이미 해제된 메모리에 접근할 수 있습니다.
💡 쉬운 설명
데이터를 조립하는 과정에서 컴퓨터가 이미 사용이 끝난 메모리 공간을 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfrm: iptfs: fix use-after-free on first_skb in __input_process_payload
__input_process_payload() stores first_skb into xtfs->ra_newskb under
drop_lock when starting partial reassembly, then unlocks and breaks out
of the processing loop. The post-loop check reads xtfs->ra_newskb
without the lock to decide whether first_skb is still owned:
if (first_skb && first_iplen && !defer && first_skb != xtfs->ra_newskb)
Between spin_unlock and this read, a concurrent CPU running
iptfs_reassem_cont() (or the drop_timer hrtimer) can complete
reassembly, NULL xtfs->ra_newskb, and free the skb. The check then
evaluates first_skb != NULL as true, and pskb_trim/ip_summed/consume_skb
operate on the freed skb — a use-after-free in skbuff_head_cache.
Replace the unlocked read with a local bool that records whether
first_skb was handed to the reassembly state in the current call. The
flag is set after the existing spin_unlock, before the break, using the
pointer equality that is stable at that point (first_skb == skb iff
first_skb was stored in ra_newskb).
📍 영향받는 시스템
Linux Kernel (xfrm/iptfs 모듈 사용 환경)
⚔️ 공격 벡터
네트워크 패킷 재조립 과정을 유도하는 특수하게 조작된 패킷 전송을 통한 경쟁 상태 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인합니다.