CVE-2026-10680
JSON

7.6high

Out-of-bounds access in Zephyr BR/EDR L2CAP configuration request handling via `uint16_t` length underflow

Severity
7.6high CVSS:3.1 by zephyr
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
zephyr

Description

The Classic (BR/EDR) L2CAP signaling handlers l2cap_br_conf_req() and l2cap_br_conf_rsp() in subsys/bluetooth/host/classic/l2cap_br.c validated the minimum command size against buf->len (the bytes remaining in the whole received PDU) instead of len (the per-command data length from the L2CAP signaling header). Because multiple signaling commands can be packed into one PDU, buf->len may exceed a command's len. An attacker can send a CONF_REQ command with a header length smaller than the configuration-request structure (e.g. 0), followed by another command so that buf->len still satisfies the check. The check then passes incorrectly and opt_len = len - sizeof(*req) underflows the uint16_t to a near-0xFFFF value. The configuration-option loop, which lacks an opt_len-versus-buf->len guard, then walks far past the end of the pooled ACL receive buffer using net_buf pull primitives that perform no runtime bounds check, producing an out-of-bounds read of host memory and, when the out-of-bounds option bytes encode an MTU or flush-timeout option, an out-of-bounds write. The BR/EDR signaling channel is processed before pairing/encryption and an L2CAP channel to an L0 service such as SDP can be opened without pairing, so an unauthenticated peer within radio range that can establish an ACL connection can trigger the flaw, leading to memory corruption and denial of service (host/device crash). The defect is present in released versions including v4.4.0. The fix validates against len instead of buf->len in both handlers.

Affected

Product or packageVersionsReported by
zephyrfrom 4.2.0 before 4.3.1, from 4.4.0 before 4.4.2CVE List
zephyrproject zephyrfrom 4.2.0 before 4.3.1, from 4.4.0 up to 4.4.1NVD

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

The Classic (BR/EDR) L2CAP signaling handlers l2cap_br_conf_req() and l2cap_br_conf_rsp() in subsys/bluetooth/host/classic/l2cap_br.c validated the minimum command size against buf->len (the bytes remaining in the whole received PDU) instead of len (the per-command data length from the L2CAP signaling header). Because multiple signaling commands can be packed into one PDU, buf->len may exceed a command's len. An attacker can send a CONF_REQ command with a header length smaller than the configuration-request structure (e.g. 0), followed by another command so that buf->len still satisfies the check. The check then passes incorrectly and opt_len = len - sizeof(*req) underflows the uint16_t to a near-0xFFFF value. The configuration-option loop, which lacks an opt_len-versus-buf->len guard, then walks far past the end of the pooled ACL receive buffer using net_buf pull primitives that perform no runtime bounds check, producing an out-of-bounds read of host memory and, when the out-of-bounds option bytes encode an MTU or flush-timeout option, an out-of-bounds write. The BR/EDR signaling channel is processed before pairing/encryption and an L2CAP channel to an L0 service such as SDP can be opened without pairing, so an unauthenticated peer within radio range that can establish an ACL connection can trigger the flaw, leading to memory corruption and denial of service (host/device crash). The defect is present in released versions including v4.4.0. The fix validates against len instead of buf->len in both handlers.

NVD (es)

Los manejadores de señalización L2CAP Classic (BR/EDR) l2cap_br_conf_req() y l2cap_br_conf_rsp() en subsys/bluetooth/host/classic/l2cap_br.c validaron el tamaño mínimo del comando contra buf -> len (los bytes restantes en la PDU recibida completa) en lugar de len (la longitud de datos por comando del encabezado de señalización L2CAP). Debido a que múltiples comandos de señalización pueden empaquetarse en una PDU, buf -> len puede exceder la longitud de un comando. Un atacante puede enviar un comando CONF_REQ con una longitud de encabezado menor que la estructura de solicitud de configuración (por ejemplo, 0), seguido de otro comando para que buf -> len aún satisfaga la verificación. La verificación entonces pasa incorrectamente y opt_len = len - sizeof(req) provoca un desbordamiento negativo del uint16_t a un valor cercano a 0xFFFF. El bucle de opciones de configuración, que carece de una protección opt_len-versus-buf -> len, entonces avanza mucho más allá del final del búfer de recepción ACL agrupado utilizando primitivas de extracción net_buf que no realizan ninguna verificación de límites en tiempo de ejecución, produciendo una lectura fuera de límites de la memoria del host y, cuando los bytes de opción fuera de límites codifican una opción MTU o de tiempo de espera de vaciado, una escritura fuera de límites. El canal de señalización BR/EDR se procesa antes del emparejamiento/cifrado y un canal L2CAP a un servicio L0 como SDP puede abrirse sin emparejamiento, por lo que un par no autenticado dentro del alcance de la radio que pueda establecer una conexión ACL puede activar la falla, lo que lleva a corrupción de memoria y denegación de servicio (bloqueo del host/dispositivo). El defecto está presente en versiones lanzadas, incluida la v4.4.0. La solución valida contra len en lugar de buf -> len en ambos manejadores.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-10680 changed 2026-10-15CVE Terms of Use
NVDCVE-2026-10680 changed 2026-10-24Public domain