🇰🇷 한글 설명
Linux 커널의 ksmbd SMB 서버에서 발생하는 사용 후 해제(use-after-free) 취약점으로, RCU 읽기 언락 후 opinfo 포인터에 접근 시 동시성 공격으로 메모리가 해제될 수 있습니다. 이는 원격 코드 실행 및 시스템 장애를 야기합니다.
💡 쉬운 설명
SMB 파일 공유 서버에서 메모리 관리 오류로 삭제된 데이터에 접근하는 취약점입니다. 원격 공격자가 이를 악용하면 시스템 제어나 서비스 중단을 일으킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix use-after-free in smb_lazy_parent_lease_break_close()
opinfo pointer obtained via rcu_dereference(fp->f_opinfo) is being
accessed after rcu_read_unlock() has been called. This creates a
race condition where the memory could be freed by a concurrent
writer between the unlock and the subsequent pointer dereferences
(opinfo->is_lease, etc.), leading to a use-after-free.
📍 영향받는 시스템
Linux kernel with ksmbd enabled - all versions before patch applied, affects Ubuntu/Debian/RHEL systems with SMB server
⚔️ 공격 벡터
Remote exploitation via SMB protocol by triggering concurrent parent lease break operations to cause race condition
🛡️ 대응 방법
Apply Linux kernel security patch fixing RCU synchronization in smb_lazy_parent_lease_break_close() function or disable ksmbd
🔧 검증 코드
커널 버전과 ksmbd 모듈 활성화 상태 확인 후 보안 공지의 패치 버전과 비교하여 업데이트 필요 여부 판단
cat /proc/version | awk '{print $3}' && lsmod | grep -q ksmbd && echo 'ksmbd_enabled' || echo 'ksmbd_disabled'