🇰🇷 한글 설명
Linux 커널 4.13.6 이전 버전의 af_packet.c에서 packet_fanout 데이터 구조 처리 중 경쟁 조건으로 인한 사용 후 해제(use-after-free) 취약점이 발생합니다. 로컬 사용자가 조작된 시스템 호출을 통해 이 취약점을 악용하면 권한 상승이 가능합니다.
💡 쉬운 설명
리눅스 커널의 네트워크 패킷 처리 코드에서 타이밍 오류로 인해 이미 해제된 메모리에 접근할 수 있는 버그입니다. 같은 컴퓨터에 접근할 수 있는 일반 사용자가 이를 악용하면 관리자 권한을 얻을 수 있습니다.
🇺🇸 원문 (English)
net/packet/af_packet.c in the Linux kernel before 4.13.6 allows local users to gain privileges via crafted system calls that trigger mishandling of packet_fanout data structures, because of a race condition (involving fanout_add and packet_do_bind) that leads to a use-after-free, a different vulnerability than CVE-2017-6346.
📍 영향받는 시스템
Linux kernel < 4.13.6 (모든 배포판)
⚔️ 공격 벡터
로컬 사용자가 packet socket 관련 시스템 호출(setsockopt)을 악용한 경쟁 조건 트리거
🛡️ 대응 방법
Linux 커널을 4.13.6 이상으로 업데이트
🔧 검증 코드
'Vulnerable'이 출력되면 취약한 커널 버전이며, 아무것도 출력되지 않으면 패치된 버전입니다.
uname -r | awk -F. '{if($1*1000+$2*100+$3 < 4013006) print "Vulnerable"}'