🇰🇷 한글 설명
Linux 커널의 phonet 드라이버 내 pep_get_sb() 함수에서 Use-After-Free(UAF) 취약점이 발견되었습니다. pskb_may_pull() 호출 시 skb 데이터의 위치가 변경될 수 있음에도 이전 포인터를 계속 참조하여 메모리 오류를 유발합니다.
💡 쉬운 설명
컴퓨터 메모리 주소가 바뀌었는데 예전 주소를 계속 사용하려고 해서 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
phonet: pep: fix use-after-free in pep_get_sb()
pep_get_sb() doesn't consider that pskb_may_pull() might have relocated
the skb data, and continue to access the older pointer, causing UAF.
Reproduced under KASAN:
BUG: KASAN: slab-use-after-free in pep_get_sb+0x234/0x3b0
Read of size 1 at addr ff11000105510f50 by task repro/157
pep_get_sb+0x234/0x3b0
pipe_handler_do_rcv+0x5f7/0xa10
pep_do_rcv+0x203/0x410
__sk_receive_skb+0x471/0x4a0
phonet_rcv+0x5b3/0x6c0
__netif_receive_skb+0xcc/0x1d0
Refetch the header with skb_header_pointer() after pskb_may_pull(), so
the possibly stale pointer is no longer dereferenced. There are better
ways to solve this, but, this is the less instrusive one.
📍 영향받는 시스템
phonet 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
네트워크 패킷 조작을 통해 특정 메모리 위치를 참조하게 만드는 방식
🛡️ 대응 방법
커널 패치를 적용하여 pskb_may_pull() 이후 skb_header_pointer()를 사용하도록 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 보안 패치가 적용된 최신 버전인지 확인합니다.