{"id":"CVE-2026-10641","aliases":["CVE-2026-10641"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds write in Bluetooth HFP Hands-Free CIND indicator parsing (cind_handle_values)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-17T13:14:06.459Z","modified":"2026-11-04T05:18:22.707Z","severity":{"scorer":"zephyr","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"zephyr","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"1.7.0","fixed":"4.6.0","status":"affected"}],"vendor":"zephyrproject","product":"zephyr","package":"zephyr","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.7.0","fixed":"3.7.3"},{"status":"affected","introduced":"4.0.0","fixed":"4.3.1"},{"status":"affected","introduced":"4.4.0","fixed":"4.4.2"}],"vendor":"zephyrproject","product":"zephyr","cpe":"cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/cf7693a8261ae363c9cf46cfd51005486637173e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wx5j-q6f2-59p3","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"zephyr","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-17T14:59:49.875Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-10641","url":"https://www.cve.org/CVERecord?id=CVE-2026-10641","licence":"CVE Terms of Use","modified":"2026-11-04T04:58:12.723Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-10641","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-10641","licence":"Public domain","modified":"2026-11-04T05:18:22.707Z"}],"updatedAt":"2026-11-25T22:59:24.936Z","epss":{"score":0.00282,"percentile":0.22274,"date":"2026-12-02T12:00:21.000Z"}}