🇰🇷 한글 설명
Zephyr OS의 Bluetooth Classic HFP Hands-Free 역할 파서에서 경계 외 쓰기(Out-of-bounds write) 취약점이 발견되었습니다. 공격자가 조작된 +CIND: 응답을 보내면 인덱스 검증 부재로 인해 메모리 오염이 발생하며, 이는 블루투스 호스트의 서비스 거부(DoS)를 유발할 수 있습니다.
💡 쉬운 설명
블루투스 연결 과정에서 상대방이 보내는 잘못된 정보를 제대로 검사하지 않아 발생하는 문제입니다. 악의적인 장치가 가짜 신호를 보내면 기기의 메모리가 망가져 블루투스 기능이 멈출 수 있습니다.
🇺🇸 원문 (English)
Zephyr's Bluetooth Classic Hands-Free Profile (HFP) Hands-Free role parser (subsys/bluetooth/host/classic/hfp_hf.c) contains an out-of-bounds write. During Service Level Connection setup the HF sends AT+CIND=? and parses the AG's +CIND: response in cind_handle(), which assigns a per-entry counter index and calls cind_handle_values() for each list element. cind_handle_values() then wrote hf->ind_table[index] = i without verifying that index is within the 20-element int8_t ind_table[] array of struct bt_hfp_hf. Because the parser places no cap on the number of +CIND: list entries, a remote Attendant Gateway (a malicious, compromised, or spoofed peer the device connects to over Bluetooth) can send a response with more than 20 recognized indicator entries and drive index arbitrarily large, writing a small attacker-positioned value past the array into adjacent struct fields (feature masks, SDP/version state, the calls[] array, work/atomic bookkeeping) and potentially beyond the static connection pool slot. This yields memory corruption and at least denial of service of the Bluetooth host, triggered by a single malformed AT response with no user interaction. The sibling consumer ag_indicator_handle_values() already performed the equivalent bounds check; this commit adds the same index >= ARRAY_SIZE(hf->ind_table) guard to close the gap. Affects builds with CONFIG_BT_HFP_HF enabled; introduced with the original HFP HF CIND parser (~v1.7) and present through v4.4.0.
📍 영향받는 시스템
Zephyr OS v1.7 ~ v4.4.0 (CONFIG_BT_HFP_HF 활성화된 빌드)
⚔️ 공격 벡터
블루투스로 연결된 악의적인 Attendant Gateway가 20개를 초과하는 조작된 +CIND: 응답을 전송
🛡️ 대응 방법
Zephyr OS를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 해당 취약점이 수정된 커밋을 적용하십시오.
🔧 검증 코드
출력된 버전이 v1.7에서 v4.4.0 사이의 범위에 해당하면 취약한 버전일 가능성이 높습니다.
git describe --tags --match 'v*' | grep -E 'v(1\[7-4\.\d+)'
📊 CVSS Vector String
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
💻 영향받는 소프트웨어
Windows Bluetooth Service