🇰🇷 한글 설명
Linux 커널의 ksmbd 구성 요소 내 decode_preauth_ctxt() 함수에서 경계 외 메모리 접근(Out-of-bounds access) 취약점이 발견되었습니다. SMB2 협상 컨텍스트를 처리할 때 데이터 길이를 검증하는 방식이 불충분하여 발생하며, 이는 메모리 손상으로 이어질 수 있습니다.
💡 쉬운 설명
리눅스 서버의 파일 공유 기능(ksmbd)에서 데이터의 범위를 제대로 확인하지 않아 발생하는 보안 결함입니다. 공격자가 조작된 데이터를 보내 서버의 메모리 영역을 잘못 건드리게 만들 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: avoid out of bounds access in decode_preauth_ctxt()
Confirm that the accessed pneg_ctxt->HashAlgorithms address sits within
the SMB request boundary; deassemble_neg_contexts() only checks that the
eight byte smb2_neg_context header + (client controlled) DataLength are
within the packet boundary, which is insufficient.
Checking for sizeof(struct smb2_preauth_neg_context) is overkill given
that the type currently assumes SMB311_SALT_SIZE bytes of trailing Salt.
📍 영향받는 시스템
ksmbd 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 SMB2 협상 컨텍스트 패킷을 전송하여 경계 외 메모리 접근 유도
🛡️ 대응 방법
ksmbd 취약점이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 보안 공지(CVE-2023-54250)와 대조하여 확인합니다.