🇰🇷 한글 설명
Linux 커널의 ovpn 모듈 내 ovpn_net_xmit 함수에서 Use-After-Free 취약점이 발견되었습니다. skb_share_check 과정에서 기존 skb가 해제된 후에도 해당 포인터를 계속 사용하여 발생하는 문제입니다. 이를 해결하기 위해 세그멘테이션 전 peer lookup과 skb_dst_drop의 순서를 조정하는 패치가 적용되었습니다.
💡 쉬운 설명
컴퓨터 메모리에서 이미 사용이 끝나 삭제된 데이터를 프로그램이 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ovpn: fix possible use-after-free in ovpn_net_xmit
When building the skb_list in ovpn_net_xmit, skb_share_check will free
the original skb if it is shared. The current implementation continues
to use the stale skb pointer for subsequent operations:
- peer lookup,
- skb_dst_drop (even though all segments produced by skb_gso_segment
will have a dst attached),
- ovpn_peer_stats_increment_tx.
Fix this by moving the peer lookup and skb_dst_drop before segmentation
so that the original skb is still valid when used. Return early if all
segments fail skb_share_check and the list ends up empty.
Also switch ovpn_peer_stats_increment_tx to use skb_list.next; the next
patch fixes the stats logic.
📍 영향받는 시스템
ovpn 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
공격자가 조작된 네트워크 패킷을 전송하여 메모리 관리 오류를 유도함으로써 시스템 권한을 획득하거나 서비스 거부(DoS)를 유발할 수 있습니다.
🛡️ 대응 방법
ovpn_net_xmit의 Use-After-Free 오류를 수정한 최신 Linux 커널로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인하십시오.