🇰🇷 한글 설명
Linux 커널의 Bluetooth 스택에서 hci_le_create_big_complete_evt 함수가 배열의 범위를 확인하지 않고 데이터를 읽는 OOB(Out-of-Bounds) 읽기 취약점이 발견되었습니다. 이로 인해 잘못된 메모리 접근이 발생하거나, 특정 조건에서 hci_dev_lock을 점유한 채 무한 루프에 빠져 시스템이 중단될 수 있습니다.
💡 쉬운 설명
블루투스 연결 과정에서 잘못된 정보를 받은 컴퓨터가 메모리의 허용되지 않은 영역을 읽으려다 멈춰버리는 문제입니다. 이로 인해 블루투스 기능이 작동하지 않거나 시스템 전체가 응답하지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_event: Fix OOB read and infinite loop in hci_le_create_big_complete_evt
hci_le_create_big_complete_evt() iterates over BT_BOUND connections for
a BIG handle using a while loop, accessing ev->bis_handle[i++] on each
iteration. However, there is no check that i stays within ev->num_bis
before the array access.
When a controller sends a LE_Create_BIG_Complete event with fewer
bis_handle entries than there are BT_BOUND connections for that BIG,
or with num_bis=0, the loop reads beyond the valid bis_handle[] flex
array into adjacent heap memory. Since the out-of-bounds values
typically exceed HCI_CONN_HANDLE_MAX (0x0EFF), hci_conn_set_handle()
rejects them and the connection remains in BT_BOUND state. The same
connection is then found again by hci_conn_hash_lookup_big_state(),
creating an infinite loop with hci_dev_lock held.
Fix this by terminating the BIG if in case not all BIS could be setup
properly.
📍 영향받는 시스템
Linux Kernel (Bluetooth stack 관련 버전)
⚔️ 공격 벡터
조작된 LE_Create_BIG_Complete 이벤트를 전송하는 악의적인 블루투스 컨트롤러를 통한 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 수정된 패치 버전인지 확인하십시오.