CVE-2026-10641

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*
cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*
cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) El analizador del rol de manos libres (Hands-Free) del Perfil Manos Libres (HFP) Clásico de Bluetooth de Zephyr (subsys/bluetooth/host/classic/hfp_hf.c) contiene una escritura fuera de límites. Durante la configuración de la Conexión a Nivel de Servicio, el HF envía AT+CIND=? y analiza la respuesta +CIND: del AG en cind_handle(), que asigna un índice de contador por entrada y llama a cind_handle_values() para cada elemento de la lista. cind_handle_values() luego escribió hf-ind_table[index] = i sin verificar que el índice esté dentro del array int8_t ind_table[] de 20 elementos de la estructura bt_hfp_hf. Debido a que el analizador no impone un límite al número de entradas de la lista +CIND:, una Puerta de Enlace de Asistencia (Attendant Gateway) remota (un par malicioso, comprometido o suplantado al que el dispositivo se conecta a través de Bluetooth) puede enviar una respuesta con más de 20 entradas de indicador reconocidas y llevar el índice a un tamaño arbitrariamente grande, escribiendo un pequeño valor posicionado por el atacante más allá del array en campos de estructura adyacentes (máscaras de características, estado de SDP/versión, el array calls[], contabilidad de trabajo/atómica) y potencialmente más allá de la ranura del pool de conexión estática. Esto produce corrupción de memoria y al menos denegación de servicio del host Bluetooth, desencadenado por una única respuesta AT malformada sin interacción del usuario. El consumidor hermano ag_indicator_handle_values() ya realizó la verificación de límites equivalente; este commit añade la misma protección index = ARRAY_SIZE(hf-ind_table) para cerrar la brecha. Afecta a las compilaciones con CONFIG_BT_HFP_HF habilitado; introducido con el analizador HFP HF CIND original (~v1.7) y presente hasta la v4.4.0.

Information

Published : 2026-06-17 14:17

Updated : 2026-10-25 23:10


NVD link : CVE-2026-10641

Mitre link : CVE-2026-10641

CVE.ORG link : CVE-2026-10641


JSON object : View

Products Affected

zephyrproject

  • zephyr
CWE
CWE-787

Out-of-bounds Write