🇰🇷 한글 설명
Linux 커널의 ksmbd 모듈에서 세션 상태 변경 시 연결 범위를 적절히 제한하지 못하는 취약점이 발견되었습니다. 이로 인해 로그오프나 세션 교체 시 관련 없는 연결의 상태가 잘못 변경될 수 있습니다. 수정된 버전에서는 세션 자체를 전달하고 특정 연결을 정확히 선택하여 상태 변경을 직렬화함으로써 문제를 해결했습니다.
💡 쉬운 설명
리눅스 파일 공유 기능(ksmbd)에서 사용자가 로그아웃할 때 다른 사람의 연결 상태까지 잘못 건드릴 수 있는 오류가 있었습니다. 이로 인해 멀쩡한 연결이 끊기거나 설정이 꼬이는 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: scope session state changes to bound connections
ksmbd_all_conn_set_status() treats every connection whose transient
binding flag is set as belonging to the target SessionId. A logoff or
session replacement can consequently move an unrelated connection to
NEED_RECONNECT or NEED_SETUP.
Pass the target session itself and select connections using either the
connection-local session xarray or the session's permanent channel list.
Use the same association test while waiting for requests to drain.
Serialize session-wide status changes under request_lock and do not
overwrite EXITING or RELEASING. Protect the shutdown transition with the
same lock so a concurrent session update cannot revive a closing
connection.
📍 영향받는 시스템
Linux kernel with ksmbd module enabled
⚔️ 공격 벡터
세션 교체 또는 로그오프 과정에서 발생하는 상태 변경 로직의 허점을 이용한 논리적 오류 유도
🛡️ 대응 방법
ksmbd 관련 패치가 적용된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 ksmbd 취약점이 해결된 최신 패치 버전인지 확인