🇰🇷 한글 설명
Linux 커널의 ksmbd 모듈에서 확장 속성(EA)을 처리하는 smb2_set_ea 함수 내 버퍼 검증 오류가 발견되었습니다. EA 이름의 null 종료 문자를 위한 1바이트 크기를 검증 과정에서 누락하여 발생하며, 이를 수정하여 정확한 버퍼 크기를 확인하도록 패치되었습니다.
💡 쉬운 설명
데이터의 끝을 알리는 표시를 계산할 때 1바이트를 빼먹어서 발생하는 보안 허점입니다. 이로 인해 정해진 메모리 범위를 벗어나는 데이터가 입력될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix buffer validation by including null terminator size in EA length
The smb2_set_ea function, which handles Extended Attributes (EA),
was performing buffer validation checks that incorrectly omitted the size
of the null terminating character (+1 byte) for EA Name.
This patch fixes the issue by explicitly adding '+ 1' to EaNameLength where
the null terminator is expected to be present in the buffer, ensuring
the validation accurately reflects the total required buffer size.
📍 영향받는 시스템
ksmbd 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
SMB2 프로토콜을 통해 조작된 확장 속성(EA) 데이터를 전송하여 메모리 오버플로우 유도
🛡️ 대응 방법
ksmbd 관련 보안 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.