🇰🇷 한글 설명
Linux 커널의 ksmbd 모듈에서 작업 상태가 실행 중이 아닐 때 차단 작업(blocking ops)을 호출하여 발생하는 경고 및 잠재적 오류 문제입니다. ksmbd_durable_scavenger_alive 함수에서 불필요한 뮤텍스 잠금을 시도하여 스케줄러 경고를 유발하는 결함이 수정되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 엔진인 리눅스 커널에서 특정 작업이 잠을 자는 상태일 때 무리하게 다른 작업을 요청하여 발생하는 오류입니다. 이로 인해 시스템에 경고가 발생하거나 예기치 않은 동작이 일어날 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix WARNING "do not call blocking ops when !TASK_RUNNING"
wait_event_timeout() will set the state of the current
task to TASK_UNINTERRUPTIBLE, before doing the condition check. This
means that ksmbd_durable_scavenger_alive() will try to acquire the mutex
while already in a sleeping state. The scheduler warns us by giving
the following warning:
do not call blocking ops when !TASK_RUNNING; state=2 set at
[<0000000061515a6f>] prepare_to_wait_event+0x9f/0x6c0
WARNING: CPU: 2 PID: 4147 at kernel/sched/core.c:10099 __might_sleep+0x12f/0x160
mutex lock is not needed in ksmbd_durable_scavenger_alive().
📍 영향받는 시스템
ksmbd 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 시스템에서 커널 스케줄러 경고를 유발하거나 시스템 불안정성을 초래할 수 있는 로컬 공격
🛡️ 대응 방법
ksmbd 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 최신 패치 버전인지 확인