🇰🇷 한글 설명
Bluetooth Mesh Access 계층의 delayable-message 관리 과정에서 오류 발생 시 메시지 컨텍스트가 풀(pool)에서 영구적으로 손실되는 메모리 누수 취약점이 발견되었습니다. 공격자가 특정 조건에서 메시지 요청을 과도하게 보내 컨텍스트 풀을 고갈시키면, 해당 노드는 재부팅 전까지 모든 응답을 중단하는 서비스 거부(DoS) 상태에 빠지게 됩니다.
💡 쉬운 설명
블루투스 메시 네트워크 기기가 특정 요청을 계속 받으면 내부적으로 관리해야 할 메모리 공간을 잃어버리게 됩니다. 이로 인해 기기가 다른 기기의 요청에 대답하지 못하는 먹통 상태가 되며, 이를 해결하려면 기기를 껐다 켜야 합니다.
🇺🇸 원문 (English)
The Bluetooth Mesh Access layer delayable-message machinery in subsys/bluetooth/mesh/delayable_msg.c manages a static pool of CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_COUNT message contexts (default 4) threaded onto a free_ctx or busy_ctx list. release_delayable_msg_ctx() returned a context to free_ctx only when sys_slist_find_and_remove() found it on busy_ctx. The chunk-exhaustion error path in bt_mesh_delayable_msg_manage() releases a context that was already popped off free_ctx but not yet inserted on busy_ctx, so the context was appended to neither list and was permanently lost from the pool. Because bt_mesh_delayable_msg_init() runs only once from bt_mesh_init(), and node reset/suspend only drain busy_ctx, the loss survives unprovision, re-provision and suspend/resume — it is cleared only by a reboot.
The error path is reached when the chunk pool (CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CHUNK_COUNT, default 40 chunks) is short of the chunks a new delayed message needs and the oldest pending message cannot be flushed because bt_mesh_access_send() returns -EBUSY or -ENOBUFS (all segmented-TX contexts busy, or advertising/segment buffers exhausted). A peer that is provisioned into the mesh network — holding a valid NetKey plus an AppKey or DevKey bound to a server model — can drive both conditions by flooding the victim with requests that elicit segmented responses while withholding the Segment Acknowledgment, which keeps the transmit contexts occupied while queued responses hold the chunk pool. Each further request that arrives in that window leaks one context.
Once the pool is drained, bt_mesh_delayable_msg_manage() returns -ENOMEM for every subsequent send and bt_mesh_model_send() propagates that error with no fallback to an immediate transmit. Since CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG and CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CTX_ENABLED are both enabled by default, ctx->rnd_delay is set for every received access message, so all replies from Configuration Server, Health Server and application server models are silently dropped. The node keeps receiving and processing traffic but never answers, a persistent denial of service until the device is restarted. There is no memory corruption, information disclosure or integrity impact; releases before the fix compute the chunk count from the transmit buffer capacity rather than its payload length, making chunk-pool starvation — and therefore the leak — considerably easier to provoke.
📍 영향받는 시스템
CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG 및 CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CTX_ENABLED가 활성화된 Bluetooth Mesh 스택 기반 시스템
⚔️ 공격 벡터
네트워크에 참여 중인 피어(Peer)가 세그먼트 응답을 의도적으로 지연시키며 메시지 요청을 대량으로 전송하여 컨텍스트 풀을 고갈시킴
🛡️ 대응 방법
해당 취약점이 수정된 최신 Bluetooth Mesh 스택 버전으로 업데이트하거나, 관련 설정값을 조정하여 패치를 적용해야 함
🔧 검증 코드
명령어 결과에 두 설정값이 모두 'y'로 나타나면 해당 취약점에 노출될 가능성이 있는 구성임
grep -E 'CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG|CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CTX_ENABLED' .config
📊 CVSS Vector String
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server