🇰🇷 한글 설명
Linux 커널의 af_packet 구성 요소에서 packet_create() 함수 호출 중 오류가 발생할 경우, 할당된 sk 객체가 해제된 후에도 sock 객체에 댕글링 포인터로 남아있는 취약점입니다. 이로 인해 잘못된 메모리 참조가 발생하여 Use-After-Free(UAF) 취약점이 유발될 수 있습니다.
💡 쉬운 설명
프로그램이 작업을 하다가 중간에 에러가 나서 메모리를 정리했는데, 실수로 사용 중인 주소값을 지우지 않고 남겨두는 문제입니다. 나중에 시스템이 이 잘못된 주소를 다시 사용하려고 하면 프로그램이 충돌하거나 해킹에 이용될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
af_packet: avoid erroring out after sock_init_data() in packet_create()
After sock_init_data() the allocated sk object is attached to the provided
sock object. On error, packet_create() frees the sk object leaving the
dangling pointer in the sock object on return. Some other code may try
to use this pointer and cause use-after-free.
📍 영향받는 시스템
af_packet를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 네트워크 소켓 생성 요청을 통해 메모리 오류를 유도하여 실행 흐름을 탈취
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인