🇰🇷 한글 설명
리눅스 커널의 블루투스 HCI 동기화 과정에서 hci_add_adv_monitor() 함수 호출 시 Use-After-Free 취약점이 발생합니다. 오류 발생 시 모니터 객체가 해제된 후 디버그 로그에서 해당 객체에 다시 접근하려고 시도하여 메모리 오류를 유발할 수 있습니다.
💡 쉬운 설명
블루투스 기능을 설정하는 과정에서 이미 삭제된 메모리 정보를 다시 사용하려고 할 때 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_add_adv_monitor()
KSAN reports use-after-free in hci_add_adv_monitor().
While adding an adv monitor,
hci_add_adv_monitor() calls ->
msft_add_monitor_pattern() calls ->
msft_add_monitor_sync() calls ->
msft_le_monitor_advertisement_cb() calls in an error case ->
hci_free_adv_monitor() which frees the *moniter.
This is referenced by bt_dev_dbg() in hci_add_adv_monitor().
Fix the bt_dev_dbg() by using handle instead of monitor->handle.
📍 영향받는 시스템
Linux Kernel (Bluetooth subsystem)
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 블루투스 광고 모니터링 요청을 통해 메모리 오류 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.