🇰🇷 한글 설명
Linux 커널의 mt76 Wi-Fi 드라이버에서 mt76_remain_on_channel 함수와 mt76_roc_complete 함수가 이미 뮤텍스를 보유한 상태에서 mt76_set_channel을 호출하여 데드락이 발생하는 취약점입니다. 이를 해결하기 위해 뮤텍스를 재획득하지 않는 내부 함수를 사용하고, 작업 큐와의 충돌을 방지하기 위한 동기화 처리가 추가되었습니다.
💡 쉬운 설명
Wi-Fi를 사용하는 과정에서 시스템이 서로의 자원을 기다리며 멈춰버리는 '교착 상태'가 발생할 수 있는 문제입니다. 이로 인해 무선 네트워크 연결이 끊기거나 시스템이 응답하지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: fix deadlock in remain-on-channel
mt76_remain_on_channel() and mt76_roc_complete() call mt76_set_channel()
while already holding dev->mutex. Since mt76_set_channel() also acquires
dev->mutex, this results in a deadlock.
Use __mt76_set_channel() instead of mt76_set_channel().
Add cancel_delayed_work_sync() for mac_work before acquiring the mutex
in mt76_remain_on_channel() to prevent a secondary deadlock with the
mac_work workqueue.
📍 영향받는 시스템
mt76 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특정 네트워크 채널 변경 조건 유도를 통한 시스템 데드락 유발
🛡️ 대응 방법
mt76 드라이버의 데드락 수정 사항이 반영된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 mt76 드라이버의 데드락 수정 패치가 적용된 버전인지 확인