🔍 CVE-2026-79982

8.8
CVSS Score
HIGH
2026-10-23
2026-10-23 20:17
✅ 완료

🇰🇷 한글 설명

Zephyr RTOS의 USB Bluetooth HCI 전송 클래스(subsys/usb/device_next/class/bt_hci.c)에서 컨트롤러-호스트 방향 HCI 패킷을 고정 크기(최대 64바이트) USB 버퍼에 복사할 때 길이 검사가 없어 버퍼 오버플로가 발생합니다. 무선으로 전달되는 큰 HCI 패킷에 의해 인접 메모리가 손상되어 원격 코드 실행 또는 서비스 거부가 가능합니다.

💡 쉬운 설명

블루투스로 연결된 기기가 정해진 크기보다 큰 데이터를 보내면 장치 내부 메모리가 넘쳐 손상될 수 있습니다. 공격자가 이를 악용하면 기기를 멈추거나 임의의 코드를 실행할 수 있습니다.

🇺🇸 원문 (English)

The Bluetooth HCI USB transport class of the new USB device stack, subsys/usb/device_next/class/bt_hci.c, copies every controller-to-host HCI packet into a USB transfer buffer before enqueuing it on an endpoint. bt_hci_tx_sync_in() allocated that buffer from bt_hci_ep_pool, a fixed pool whose slots are only USBD_MAX_BULK_MPS bytes (64 on full-speed-only builds), and then performed net_buf_add_mem(buf, bt_buf->data, bt_buf->len) with no length check. HCI event and ACL buffers are sized by CONFIG_BT_BUF_EVT_RX_SIZE and CONFIG_BT_BUF_ACL_RX_SIZE and can be far larger, so the copy runs past the end of the 64-byte slot into the adjacent slots and into whatever follows the statically allocated pool. The device runs the local Bluetooth controller in raw HCI mode (CONFIG_BT_HCI_RAW), so the oversized packets originate over the air. With the HCI buffer sizes recommended for full-featured controllers, an unauthenticated attacker within Bluetooth range can supply the overflowing bytes: a connected peer that negotiates Data Length Extension can send ACL fragments up to CONFIG_BT_CTLR_DATA_LENGTH_MAX bytes, and an attacker that merely broadcasts extended advertising data reaches the same path through LE Extended Advertising Report events, which the controller fragments only to CONFIG_BT_BUF_EVT_RX_SIZE. In the stock configuration the overflow is already reached without any radio traffic: the mandatory Read Supported Commands command-complete event is 70 bytes and overruns the 64-byte slot by six bytes on every host initialization. Because net_buf_add_mem() validates tailroom only through an assertion unless CONFIG_NET_BUF_HARDENING is enabled, builds with CONFIG_ASSERT=n — the usual production setting — silently corrupt memory adjacent to the USB buffer pool with attacker-chosen contents, which on a target without memory protection between subsystems can lead to arbitrary code execution. Builds with assertions enabled fail the assertion instead and panic, giving a remotely triggerable denial of service. The fix introduces a separate bt_hci_tx_pool sized to MAX(BT_BUF_ACL_RX_SIZE, BT_BUF_EVT_RX_SIZE) for the controller-to-host direction while leaving the host-to-device pool at the endpoint packet size, which is already bounds-checked during reassembly.

📍 영향받는 시스템

CONFIG_BT_HCI_RAW를 사용하는 USB 블루투스 HCI 클래스가 포함된 Zephyr RTOS 기반 장치(full-speed 전용 빌드 포함)

⚔️ 공격 벡터

인증 없이 블루투스 범위 내 공격자가 DLE를 협상한 ACL 조각 또는 확장 광고 데이터로 오버사이즈 HCI 패킷을 전송

🛡️ 대응 방법

bt_hci_tx_pool을 MAX(BT_BUF_ACL_RX_SIZE, BT_BUF_EVT_RX_SIZE) 크기로 분리하여 컨트롤러-호스트 방향 버퍼를 충분히 키우는 Zephyr 패치를 적용

🔧 검증 코드

결과에 bt_hci_tx_pool 정의와 MAX(BT_BUF_ACL_RX_SIZE, BT_BUF_EVT_RX_SIZE) 기반 크기가 보이면 패치된 것이며, 결과가 없거나 기존 bt_hci_ep_pool만 사용되면 취약한 상태입니다.

Shell / Script
grep -rn "bt_hci_tx_pool" $ZEPHYR_BASE/subsys/usb/device_next/class/bt_hci.c 2>/dev/null

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Windows Bluetooth Service