🇰🇷 한글 설명
Linux 커널의 ksmbd 구성 요소에서 파일 잠금 지연 처리 중 오류가 발생할 경우, 초기화되지 않은 NULL 포인터를 참조하거나 잠금 상태가 해제되지 않는 취약점이 발견되었습니다. 이로 인해 커널 패닉이나 시스템 불안정성이 발생할 수 있습니다.
💡 쉬운 설명
파일을 잠그는 과정에서 문제가 생겼을 때, 컴퓨터가 잘못된 메모리 주소를 참조하여 시스템이 멈추거나 오류가 날 수 있는 문제입니다. 이를 방지하기 위해 잠금 처리 순서를 안전하게 수정했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: safely discard unregistered deferred locks
When vfs_lock_file() defers a lock, smb2_lock() puts its ksmbd_lock on
rollback_list before allocating and registering the asynchronous work.
If either operation fails, rollback assumes that smb_lock->conn is
initialized and dereferences NULL. The deferred file_lock also remains
linked into the VFS blocked-lock state while it is freed.
Keep the lock off rollback_list until async setup succeeds. On setup
failures, explicitly unblock and wake the deferred lock before freeing it
and its ksmbd wrapper.
📍 영향받는 시스템
Linux kernel (ksmbd module 사용 환경)
⚔️ 공격 벡터
로컬 또는 네트워크를 통한 특정 SMB2 파일 잠금 요청 시 발생 가능
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.