🇰🇷 한글 설명
Linux 커널의 nvmet-tcp 구성 요소에서 nvmet_tcp_set_queue_sock()의 반환 값을 확인하지 않아 발생하는 취약점입니다. 소켓 설정 실패 시 적절한 정리가 이루어지지 않아 큐와 소켓 리소스 누수가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 연결 설정 과정에서 오류가 발생했을 때, 사용하던 자원을 제대로 정리하지 못하는 문제입니다. 이로 인해 시스템의 메모리나 네트워크 자원이 계속 쌓여 성능 저하나 시스템 불안정을 초래할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nvmet-tcp: check return value of nvmet_tcp_set_queue_sock
The return value of nvmet_tcp_set_queue_sock() is currently ignored in
nvmet_tcp_tls_handshake_done(). If it fails (e.g., due to the socket
not being in TCP_ESTABLISHED state), the socket callbacks will not be
properly set, leading to queue and socket leakage.
Fix this by capturing the return value and calling
nvmet_tcp_schedule_release_queue() on failure to ensure proper cleanup.
📍 영향받는 시스템
Linux kernel (nvmet-tcp 모듈 사용 시스템)
⚔️ 공격 벡터
네트워크 소켓 상태를 조작하여 연결 설정 실패를 유도함으로써 리소스 누수 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인