🇰🇷 한글 설명
Linux 커널의 ksmbd 모듈에서 파일 닫기 시 삭제(delete-on-close) 기능이 실행될 때, 사용자 인증 정보가 아닌 커널 워커의 권한을 사용하여 파일 시스템 권한 검사를 우회할 수 있는 취약점입니다. 이로 인해 인증된 사용자가 허용되지 않은 파일이나 디렉토리를 삭제할 수 있는 위험이 있습니다. 이를 해결하기 위해 파일이 열릴 당시의 사용자 인증 정보를 사용하여 삭제 작업을 수행하도록 수정되었습니다.
💡 쉬운 설명
파일을 닫을 때 자동으로 삭제하는 기능이 작동하면서, 원래 사용자의 권한이 아닌 관리자급 권한으로 실행되어 보안 검사를 통과하는 문제입니다. 결과적으로 권한이 없는 사용자가 시스템의 중요한 파일을 마음대로 지울 수 있게 됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: use opener credentials for delete-on-close
Delete-on-close can be completed by deferred or durable handle teardown,
where no request work is available. Both the base-file unlink and the ADS
xattr removal consequently run with the ksmbd worker credentials and can
bypass filesystem permission checks.
Run both operations with the credentials captured in struct file when the
handle was opened. This preserves the authenticated user's fsuid, fsgid,
supplementary groups and capability restrictions at final close.
📍 영향받는 시스템
ksmbd 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
인증된 사용자가 권한이 없는 파일에 대해 delete-on-close 옵션을 사용하여 파일 삭제를 유도함
🛡️ 대응 방법
ksmbd 취약점이 패치된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전인지 배포판 보안 공지를 통해 확인