🇰🇷 한글 설명
Linux ksmbd의 ACL 상속 경로에서 발견된 원격 메모리 손상 취약점으로, 디렉토리 생성 권한이 있는 원격 클라이언트가 악성 DACL을 설정하여 힙 메모리 손상을 유발할 수 있습니다. 이를 통해 커널 불안정성, 서비스 거부, 또는 커널 코드 실행 권한 상승이 가능합니다.
💡 쉬운 설명
Linux 파일 공유 서비스(ksmbd)의 권한 설정에 결함이 있어 폴더를 만들 수 있는 사람이 특수한 요청으로 서버 메모리를 손상시킬 수 있습니다. 이를 통해 서버 작동 중단이나 공격자의 최고 권한 획득이 가능합니다.
🇺🇸 원문 (English)
Linux ksmbd contains a remote memory corruption vulnerability in the ACL inheritance path that allows remote clients with directory creation permissions to trigger a heap out-of-bounds read and subsequent heap corruption by setting a crafted DACL with a malformed SID containing an inflated num_subauth field. Attackers can exploit this vulnerability by creating a directory, setting the malicious DACL via SMB2_SET_INFO, and creating child entries to cause kernel instability, denial of service, or potentially achieve privilege escalation to kernel code execution.
📍 영향받는 시스템
Linux ksmbd SMB 서버 (모든 취약한 버전)
⚔️ 공격 벡터
SMB2_SET_INFO를 통해 악성 DACL 설정 후 자식 항목 생성으로 힙 메모리 손상 유발
🛡️ 대응 방법
ksmbd를 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
ksmbd 패키지 이름과 설치된 버전을 확인하거나 커널 모듈 로드 상태를 확인하여 패치 적용 상태를 검증합니다.
dpkg -l 2>/dev/null | grep ksmbd | awk '{print $2, $3}' || lsmod | grep ksmbd