🇰🇷 한글 설명
Linux 커널의 ksmbd 모듈에서 재연결 시 durable handle의 소유자를 검증하지 않는 취약점이 발견되었습니다. 이로 인해 인증된 사용자가 예측하거나 무차별 대입을 통해 고립된 핸들을 탈취할 수 있습니다. 이를 해결하기 위해 파일 핸들에 소유자 정보를 저장하고 재연결 요청 시 보안 컨텍스트를 비교하는 로직이 추가되었습니다.
💡 쉬운 설명
파일을 사용하던 연결이 끊겼을 때, 다른 사람이 그 파일을 가로챌 수 있는 보안 허점이 있었습니다. 이제는 파일을 처음 열었던 사람인지 확인하는 절차를 거쳐 다른 사람이 가로채지 못하게 막습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: validate owner of durable handle on reconnect
Currently, ksmbd does not verify if the user attempting to reconnect
to a durable handle is the same user who originally opened the file.
This allows any authenticated user to hijack an orphaned durable handle
by predicting or brute-forcing the persistent ID.
According to MS-SMB2, the server MUST verify that the SecurityContext
of the reconnect request matches the SecurityContext associated with
the existing open.
Add a durable_owner structure to ksmbd_file to store the original opener's
UID, GID, and account name. and catpure the owner information when a file
handle becomes orphaned. and implementing ksmbd_vfs_compare_durable_owner()
to validate the identity of the requester during SMB2_CREATE (DHnC).
📍 영향받는 시스템
ksmbd 모듈이 포함된 Linux 커널 버전
⚔️ 공격 벡터
인증된 사용자가 예측 가능한 persistent ID를 사용하여 고립된 durable handle을 탈취
🛡️ 대응 방법
ksmbd의 소유자 검증 로직이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 최신 보안 업데이트 버전인지 확인