🔍 CVE-2026-10654

3.1
CVSS Score
LOW
2026-06-30
2026-10-25 21:10
✅ 완료

🇰🇷 한글 설명

Zephyr Bluetooth Classic RFCOMM 호스트 스택에서 발생하는 레이스 컨디션 취약점으로, 양방향 세션 종료가 동시에 발생할 때 L2CAP 채널 해제 절차를 누락합니다. 이로 인해 세션 슬롯이 회수되지 않고 고정된 풀에 남아 리소스 누수가 발생하며, 결과적으로 새로운 RFCOMM 연결이 불가능해집니다.

💡 쉬운 설명

블루투스 연결을 끊는 과정에서 두 기기가 동시에 종료 신호를 보내면 시스템 오류가 발생합니다. 이 오류로 인해 연결 자원이 계속 점유되어 나중에는 블루투스 기능을 사용할 수 없게 됩니다.

🇺🇸 원문 (English)

A race condition in the Zephyr Bluetooth Classic RFCOMM host stack (subsys/bluetooth/host/classic/rfcomm.c) mishandles a simultaneous bidirectional session disconnect. When the local device has initiated a session teardown (state BT_RFCOMM_STATE_DISCONNECTING, DISC sent, RTX timer armed) and the connected peer concurrently sends its own DISC frame for dlci 0, rfcomm_handle_disc() invokes rfcomm_session_disconnected(), which unconditionally forced the session to BT_RFCOMM_STATE_DISCONNECTED without ever calling bt_l2cap_chan_disconnect(). Because the recovery timer was also cancelled and a later UA is ignored in the DISCONNECTED state, the session becomes permanently wedged: the underlying L2CAP channel is never released and the session slot in the fixed bt_rfcomm_pool[CONFIG_BT_MAX_CONN] array is never reclaimed (its conn pointer stays set). Subsequent bt_rfcomm_dlc_connect() calls on that connection fail with -EINVAL due to the invalid session state, so RFCOMM service is denied for that peer, and repeated occurrences can exhaust the session pool. The DISC frame is peer-controlled over the air, but exploitation requires the peer's DISC to collide with a local-initiated disconnect (a high-complexity timing race). Impact is availability/resource-leak only; there is no memory-safety, confidentiality, or integrity consequence. The defect shipped in released versions (present in v4.4.0 and earlier). The fix only transitions to DISCONNECTED when the session is not already in DISCONNECTING, preserving the proper L2CAP teardown path.

📍 영향받는 시스템

Zephyr RTOS v4.4.0 및 그 이전 버전

⚔️ 공격 벡터

공격자가 로컬 기기의 세션 종료 시점에 맞춰 정교한 타이밍으로 DISC 프레임을 전송하여 레이스 컨디션 유도

🛡️ 대응 방법

세션 상태가 DISCONNECTING인 경우를 확인하여 L2CAP 해제 경로를 보존하도록 소프트웨어 패치 적용

🔧 검증 코드

명령어 결과에 v4.0.0부터 v4.4.0 사이의 버전이 나타나면 해당 취약점에 노출된 상태입니다.

Shell / Script
zephyr-sdk-version | grep -E 'v4\.[0-4]\.'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Windows Bluetooth Service