🇰🇷 한글 설명
리눅스 커널의 블루투스 스택(hci_sync)에서 hci_remove_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_remove_adv_monitor()
KASAN reports that there's a use-after-free in
hci_remove_adv_monitor(). Trawling through the disassembly, you can
see that the complaint is from the access in bt_dev_dbg() under the
HCI_ADV_MONITOR_EXT_MSFT case. The problem case happens because
msft_remove_monitor() can end up freeing the monitor
structure. Specifically:
hci_remove_adv_monitor() ->
msft_remove_monitor() ->
msft_remove_monitor_sync() ->
msft_le_cancel_monitor_advertisement_cb() ->
hci_free_adv_monitor()
Let's fix the problem by just stashing the relevant data when it's
still valid.
📍 영향받는 시스템
Bluetooth 스택을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 블루투스 광고 모니터링 요청을 통해 메모리 오류 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인