🇰🇷 한글 설명
Linux 커널의 ksmbd 모듈에서 __smb2_lease_break_noti() 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. ksmbd 서버 스레드가 종료될 때 연결이 참조되고 있으면 TCP 트랜스포트가 먼저 해제되어, 비동기적으로 실행되는 함수가 이미 해제된 메모리에 접근할 수 있습니다.
💡 쉬운 설명
컴퓨터가 이미 사용이 끝나서 버린 메모리 공간을 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix use-after-free in __smb2_lease_break_noti()
Move tcp_transport free to ksmbd_conn_free. If ksmbd connection is
referenced when ksmbd server thread terminates, It will not be freed,
but conn->tcp_transport is freed. __smb2_lease_break_noti can be performed
asynchronously when the connection is disconnected. __smb2_lease_break_noti
calls ksmbd_conn_write, which can cause use-after-free
when conn->ksmbd_transport is already freed.
📍 영향받는 시스템
ksmbd 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
네트워크를 통해 비정상적인 SMB2 리스 브레이크 알림을 전송하여 메모리 오류 유도
🛡️ 대응 방법
ksmbd 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인합니다.