🇰🇷 한글 설명
Linux 커널의 xfrm:iptfs 구성 요소에서 SA(Security Association) 복제 시 런타임 상태를 적절히 초기화하지 않아 발생하는 취약점입니다. 복제 과정 중 오류가 발생하면 원본 SA의 메모리 객체를 공유하게 되어 Use-After-Free 및 Double-Free 오류를 유발할 수 있습니다.
💡 쉬운 설명
시스템이 보안 정보를 복사하는 과정에서 실수로 기존 정보를 그대로 가져와서 발생합니다. 이로 인해 이미 사용 중인 메모리를 다시 사용하거나 삭제하려 시도하여 시스템이 충돌하거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfrm: iptfs: reset runtime state when cloning SAs
iptfs_clone_state() clones the IPTFS mode data with kmemdup(). This
copies runtime objects which must not be shared with the original SA,
including the embedded sk_buff_head, hrtimers, spinlock, and in-flight
reassembly/reorder state.
If xfrm_state_migrate() fails after clone_state() but before the later
init_state() call has reinitialized those fields, the cloned state can be
destroyed by xfrm_state_gc_task() with list and timer state copied from the
original SA. With queued packets this lets the clone splice and free skbs
owned by the original IPTFS queue, leading to use-after-free and
double-free reports in iptfs_destroy_state() and skb release paths.
Reinitialize the clone's runtime state before publishing it through
x->mode_data. Because clone_state() now publishes a destroyable mode_data
object before init_state(), take the mode callback module reference there.
Avoid taking it again from __iptfs_init_state() for the same object.
📍 영향받는 시스템
Linux kernel (xfrm/iptfs 관련 모듈 사용 버전)
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷을 통해 xfrm 상태 복제 및 마이그레이션 과정을 유도하여 메모리 오류 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.