🇰🇷 한글 설명
Bluetooth Link Layer의 연결 업데이트 절차 중 특정 조건에서 수신된 노드를 적절히 해제하지 않아 발생하는 메모리 누수 취약점입니다. 공격자가 특수하게 조작된 PDU 시퀀스를 전송하면 컨트롤러의 RX 버퍼 풀을 고갈시켜 서비스 거부(DoS) 상태를 유발할 수 있습니다.
💡 쉬운 설명
블루투스 연결 설정 과정에서 발생하는 오류를 이용해 기기의 메모리 자원을 계속 소모시키는 공격입니다. 이 공격이 반복되면 블루투스 기능이 완전히 멈춰버리며, 기기를 재부팅해야만 다시 사용할 수 있습니다.
🇺🇸 원문 (English)
The Bluetooth Link Layer control procedure code in subsys/bluetooth/controller/ll_sw/ull_llcp_conn_upd.c retains the received RX node while a Connection Update / Connection Parameter procedure waits for its instant, so the node can later carry the host notification (llcp_rx_node_retain(), which marks it NODE_RX_TYPE_RETAIN and thereby suppresses the normal recycling in ull.c). The default: arm of llcp_rp_cu_rx() and llcp_lp_cu_rx() — the "invalid PDU, terminate the connection" path — completed the procedure without releasing that retained node. llcp_rr_check_done() then dequeued and freed the procedure context with ctx->node_ref.rx still pointing at the retained node, dropping the last reference to it.
A peer device in radio range can reach this without pairing, bonding, or encryption. Against a peripheral, the peer sends a well-formed LL_CONNECTION_UPDATE_IND with an instant a few connection events in the future (the node is retained and the procedure enters RP_CU_STATE_WAIT_INSTANT), then, before the instant is reached, sends any other LL Control PDU such as LL_LENGTH_REQ. ull_cp_rx() routes that PDU into the active remote Connection Update procedure, which takes the invalid-PDU path. The central role is reachable symmetrically after accepting an LL_CONNECTION_PARAM_REQ, and the local-procedure variant is reachable with LL_REJECT_IND.
With CONFIG_BT_CTLR_ASSERT_DEBUG enabled (its default), the resulting state violates the invariant asserted in llcp_rr_check_done(), so the two-PDU sequence produces an immediate fatal error in the controller. With those asserts disabled, each occurrence permanently loses one node from the controller's small fixed RX pool (sized from CONFIG_BT_CTLR_RX_BUFFERS, which defaults to 1); repeating the sequence across reconnections exhausts the pool, after which the link-layer receive path operates on a NULL node. The impact is an unauthenticated, remotely triggerable denial of service persisting until reboot; there is no memory-disclosure or memory-corruption consequence, since the leaked node simply becomes unreachable.
📍 영향받는 시스템
Bluetooth Controller (subsys/bluetooth/controller/ll_sw/ull_llcp_conn_upd.c 포함 소스 코드 사용 시스템)
⚔️ 공격 벡터
페어링이나 암호화 없이 무선 범위 내에서 조작된 LL_CONNECTION_UPDATE_IND 및 후속 LL Control PDU 전송
🛡️ 대응 방법
Bluetooth 컨트롤러 스택의 소스 코드를 수정하여 연결 업데이트 실패 시에도 수신된 노드를 적절히 해제하도록 패치 적용
🔧 검증 코드
해당 파일이 존재하고 취약한 로직(llcp_rp_cu_rx의 노드 미해제 부분)이 포함되어 있는지 소스 코드 분석을 통해 확인
grep -r "ull_llcp_conn_upd.c" /path/to/bluetooth/source/directory
📊 CVSS Vector String
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
💻 영향받는 소프트웨어
Windows Bluetooth Service