🇰🇷 한글 설명
리눅스 커널의 tcp 스택 내 reqsk_timer_handler() 함수에서 nreq 객체에 대한 Use-After-Free 취약점이 발견되었습니다. 요청 객체가 마이그레이션되는 과정에서 타임아웃 등으로 재시도에 실패할 경우, 이미 해제된 메모리 영역을 참조할 수 있는 문제입니다.
💡 쉬운 설명
컴퓨터가 이미 사용이 끝나서 지워버린 메모리 주소를 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tcp: Fix use-after-free of nreq in reqsk_timer_handler().
The cited commit replaced inet_csk_reqsk_queue_drop_and_put() with
__inet_csk_reqsk_queue_drop() and reqsk_put() in reqsk_timer_handler().
Then, oreq should be passed to reqsk_put() instead of req; otherwise
use-after-free of nreq could happen when reqsk is migrated but the
retry attempt failed (e.g. due to timeout).
Let's pass oreq to reqsk_put().
📍 영향받는 시스템
Linux Kernel (TCP 스택 관련 버전)
⚔️ 공격 벡터
네트워크 타임아웃을 유도하여 특정 TCP 요청 객체의 메모리 해제 후 재참조를 유발하는 방식
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인하십시오.