CVE-2026-10651

bt_sdp_parse_attribute() in subsys/bluetooth/host/classic/sdp.c validated only that the SDP record buffer held the type-marker byte plus the 2-byte attribute ID (a check of buf->len < 3) but then read a fourth byte, the data-element descriptor (type), via net_buf_simple_pull_u8(). Because net_buf_simple_pull_u8() dereferences buf->data[0] before its only bounds guard (an __ASSERT_NO_MSG that compiles out when CONFIG_ASSERT is disabled, the production default), a record of exactly three bytes (0x09 followed by a 2-byte attribute ID) causes a one-byte read past the end of the logical buffer. The parser is reachable from inbound, remote-controlled data: a Bluetooth BR/EDR peer acting as an SDP server returns discovery-response records that are stored verbatim in the client receive buffer and parsed via the public bt_sdp_get_attr()/bt_sdp_has_attr()/bt_sdp_record_parse() helpers. The over-read is bounded to a single byte that is used only as an internal length selector and is never leaked to the attacker; subsequent length checks then reject the malformed record. Realistic impact is therefore limited to an edge-case denial of service (a fault only if the record ends exactly at a mapped-memory boundary, or a deterministic assert panic when CONFIG_ASSERT=y). Affects Zephyr v4.3.0 and v4.4.0; fixed by adding sizeof(type) to the length check.
Configurations

Configuration 1 (hide)

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

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) Un atributo SDP de Bluetooth Classic malformado puede desencadenar una aserción alcanzable en el analizador SDP de Zephyr. En subsys/bluetooth/host/classic/sdp.c, bt_sdp_parse_attribute() acepta un búfer de entrada una vez que contiene el tipo de atributo de 1 byte y el ID de atributo de 2 bytes, pero luego extrae incondicionalmente un byte adicional para el tipo de valor sin verificar que el byte esté presente. Un atributo truncado de 3 bytes (por ejemplo, 09 00 09) por lo tanto llega a net_buf_simple_pull() con una longitud restante insuficiente, desencadenando la verificación __ASSERT_NO_MSG(buf -> len >= len) y un pánico del kernel en compilaciones con aserciones habilitadas (denegación de servicio). En compilaciones donde las aserciones están deshabilitadas, el análisis puede continuar más allá del final del búfer disponible, lo que lleva a una lectura fuera de límites y un comportamiento indefinido.

17 Jul 2026, 16:17

Type Values Removed Values Added
CWE CWE-617

14 Jul 2026, 19:16

Type Values Removed Values Added
CWE CWE-617
References
  • () https://github.com/zephyrproject-rtos/zephyr/commit/dfac5224ab65fc7b81be2926386173c169318335 -
Summary (en) A malformed Bluetooth Classic SDP attribute can trigger a reachable assertion in Zephyr's SDP parser. In subsys/bluetooth/host/classic/sdp.c, bt_sdp_parse_attribute() accepts an input buffer once it contains the 1-byte attribute type and 2-byte attribute id, but then unconditionally pulls an additional byte for the value type without verifying that the byte is present. A truncated 3-byte attribute (for example 09 00 09) therefore reaches net_buf_simple_pull() with insufficient remaining length, triggering the __ASSERT_NO_MSG(buf->len >= len) check and a kernel panic in assert-enabled builds (denial of service). In builds where assertions are disabled, parsing may continue past the end of the available buffer, leading to an out-of-bounds read and undefined behavior. (en) bt_sdp_parse_attribute() in subsys/bluetooth/host/classic/sdp.c validated only that the SDP record buffer held the type-marker byte plus the 2-byte attribute ID (a check of buf->len < 3) but then read a fourth byte, the data-element descriptor (type), via net_buf_simple_pull_u8(). Because net_buf_simple_pull_u8() dereferences buf->data[0] before its only bounds guard (an __ASSERT_NO_MSG that compiles out when CONFIG_ASSERT is disabled, the production default), a record of exactly three bytes (0x09 followed by a 2-byte attribute ID) causes a one-byte read past the end of the logical buffer. The parser is reachable from inbound, remote-controlled data: a Bluetooth BR/EDR peer acting as an SDP server returns discovery-response records that are stored verbatim in the client receive buffer and parsed via the public bt_sdp_get_attr()/bt_sdp_has_attr()/bt_sdp_record_parse() helpers. The over-read is bounded to a single byte that is used only as an internal length selector and is never leaked to the attacker; subsequent length checks then reject the malformed record. Realistic impact is therefore limited to an edge-case denial of service (a fault only if the record ends exactly at a mapped-memory boundary, or a deterministic assert panic when CONFIG_ASSERT=y). Affects Zephyr v4.3.0 and v4.4.0; fixed by adding sizeof(type) to the length check.

06 Jul 2026, 19:40

Type Values Removed Values Added
CPE cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*
References () https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-p93g-3r68-cj53 - () https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-p93g-3r68-cj53 - Exploit, Patch, Vendor Advisory
First Time Zephyrproject
Zephyrproject zephyr

23 Jun 2026, 01:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-23 01:16

Updated : 2026-11-04 05:18


NVD link : CVE-2026-10651

Mitre link : CVE-2026-10651

CVE.ORG link : CVE-2026-10651


JSON object : View

Products Affected

zephyrproject

  • zephyr
CWE
CWE-20

Improper Input Validation

CWE-617

Reachable Assertion