🇰🇷 한글 설명
리눅스 커널의 블루투스 스택에서 hci_dev_lock()을 통한 직렬화 부재로 인해 레이스 컨디션(경쟁 상태)이 발생할 수 있는 취약점입니다. mgmt_init_hdev() 과정에서 HCI_MGMT 플래그를 설정할 때 초기화되지 않은 작업이 취소되려는 시도가 발생하여 시스템 불안정을 초래할 수 있습니다.
💡 쉬운 설명
블루투스 기능을 설정하는 과정에서 두 가지 작업이 동시에 충돌하여 컴퓨터 시스템이 오류를 일으킬 수 있는 문제입니다. 이로 인해 시스템이 예기치 않게 멈추거나 비정상적으로 동작할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: avoid hci_dev_test_and_set_flag() in mgmt_init_hdev()
syzbot is again reporting attempt to cancel uninitialized work
at mgmt_index_removed() [1], for setting of HCI_MGMT flag from
mgmt_init_hdev() from hci_mgmt_cmd() from hci_sock_sendmsg() can
race with testing of HCI_MGMT flag from mgmt_index_removed() from
hci_sock_bind() due to lack of serialization via hci_dev_lock().
Since mgmt_init_hdev() is called with mgmt_chan_list_lock held, we can
safely split hci_dev_test_and_set_flag() into hci_dev_test_flag() and
hci_dev_set_flag(). Thus, in order to close this race, set HCI_MGMT flag
after INIT_DELAYED_WORK() completed.
This is a local fix based on mgmt_chan_list_lock. Lack of serialization
via hci_dev_lock() might be causing different race conditions somewhere
else. But a global fix based on hci_dev_lock() should deserve a future
patch.
📍 영향받는 시스템
Linux Kernel (Bluetooth subsystem)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 블루투스 소켓 관련 시스템 호출을 특정 순서로 수행하여 레이스 컨디션 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전 이상인지 확인