🇰🇷 한글 설명
Linux 커널의 s390/debug 구성 요소에서 unregister 과정 중 데드락(교착 상태)이 발생하는 취약점이 해결되었습니다. debugfs 파일을 쓰는 도중에 s390dbf 디버그 영역을 해제하려고 하면 상호 잠금 상태에 빠져 시스템이 멈출 수 있습니다.
💡 쉬운 설명
특정 디버깅 기능을 사용하는 중에 해당 기능을 강제로 종료하려고 하면 컴퓨터가 응답하지 않는 상태가 될 수 있습니다. 이를 방지하기 위해 작업 순서를 안전하게 나누어 처리하도록 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
s390/debug: Fix deadlock during unregister
Unregistering an s390dbf debug area while one of the associated debugfs
files is being written to can cause a deadlock:
$ echo >.../vmur/level $ rmmod vmur
===================================================
debugfs write
debugfs_file_get()
debug_unregister()
mutex_lock(debug_mutex)
debugfs_remove()
wait for debugfs_file_put()
debug_file_ops.write()
debug_input()
mutex_lock(debug_mutex) ==> DEADLOCK
Fix this by splitting debug_unregister() into an s390dbf and debugfs
part, and running only the s390dbf part with debug_mutex locked.
📍 영향받는 시스템
s390 아키텍처를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 사용자가 특정 debugfs 파일에 쓰기 작업을 수행하는 동시에 모듈을 제거(rmmod)하여 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인