🇰🇷 한글 설명
Linux 커널의 ksmbd 모듈에서 SMB2 SET_INFO 핸들러가 파일 시스템 권한을 확인할 때 현재 작업 프로세스의 자격 증명을 사용하는 취약점입니다. 이를 해결하기 위해 핸들이 열릴 때 캡처된 원래의 자격 증명을 사용하여 권한 검사를 수행하도록 수정되었습니다.
💡 쉬운 설명
파일의 정보를 수정할 때 권한을 확인하는 과정에서 보안 허점이 있어, 권한이 없는 사용자가 시스템 설정을 바꿀 위험이 있었습니다. 이제는 파일을 처음 열 때 확인된 사용자 권한을 끝까지 엄격하게 적용하여 이 문제를 해결했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: run set info with opener credentials
SMB2 SET_INFO handlers call path-based VFS helpers after checking the
access mask granted to the SMB handle. Those helpers perform their owner,
inode permission and LSM checks using the current ksmbd worker credentials.
Run the complete SET_INFO dispatch with the credentials captured when the
handle was opened. This also removes the separate security information
credential setup and keeps all SET_INFO classes under one credential scope.
Direct override_creds() is used because it can nest with the request
credential overrides already used by rename and link helpers.
📍 영향받는 시스템
ksmbd 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
권한이 낮은 사용자가 SMB2 SET_INFO 요청을 통해 적절한 권한 검사 없이 파일 정보를 조작하는 방식
🛡️ 대응 방법
ksmbd 취약점이 패치된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인