🇰🇷 한글 설명
Linux 커널의 xfrm 구성 요소에서 비동기 암호화 작업이 GSO 세그먼트를 가져갈 때 skb->prev 포인터가 업데이트되지 않는 취약점이 발견되었습니다. 이로 인해 이미 해제된 메모리 주소를 참조하게 되어 Use-After-Free(UAF) 오류가 발생할 수 있습니다.
💡 쉬운 설명
데이터를 암호화하는 과정에서 이미 사용이 끝난 메모리 주소를 다시 건드리는 오류가 발생합니다. 이로 인해 시스템이 충돌하거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfrm: fix stale skb->prev after async crypto steals a GSO segment
skb_gso_segment() leaves the segment list head with ->prev pointing at
the last segment, an invariant validate_xmit_skb_list() relies on when
it sets its tail pointer (tail = skb->prev).
When validate_xmit_xfrm() walks a GSO list and some segments are stolen
by async crypto (->xmit() returns -EINPROGRESS), those segments are
unlinked from the list but the head ->prev is never updated. If the
last segment is the one stolen, the returned head still has ->prev
pointing at it, even though it is now owned by the crypto engine and may
be freed. validate_xmit_skb_list() later does tail->next = skb, writing
through that stale pointer -- a use-after-free.
Repoint skb->prev at the last retained segment before returning.
📍 영향받는 시스템
Linux Kernel (xfrm 모듈을 사용하는 시스템)
⚔️ 공격 벡터
비동기 암호화 처리를 유도하여 메모리 해제 후 재사용(Use-After-Free)을 유발하는 네트워크 패킷 전송
🛡️ 대응 방법
xfrm 관련 패치가 적용된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 보안 패치 버전인지 확인