{"id":"CVE-2026-10665","sourceIdentifier":"vulnerabilities@zephyrproject.org","published":"2026-07-12T17:16:24.433","lastModified":"2026-11-05T19:37:16.457","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"In Zephyr's WireGuard subsystem (subsys/net/lib/wireguard), wg_process_data_message() in wg_crypto.c linearizes an inbound transport-data payload into a fixed pool buffer of CONFIG_WIREGUARD_BUF_LEN bytes before decryption. The call net_buf_linearize(buf->data, data_len, pkt->buffer, ..., data_len) passed the attacker-derived data_len as both the destination capacity and the copy length, defeating the function's internal len = min(len, dst_len) bound. data_len is derived from the received UDP datagram length and is only lower-bounded by wg_ctrl_recv() (no upper bound). When data_len exceeds CONFIG_WIREGUARD_BUF_LEN — e.g. when the buffer length is lowered below the link MTU, on links with MTU above the buffer size, or via reassembled IPv4/IPv6 fragments that exceed it — the underlying memcpy writes past the end of the pool buffer, an out-of-bounds write (CWE-787). The overflow occurs before the Poly1305 authentication check, so it requires only a valid receiver session index rather than a valid authenticator, and is reachable by a malicious or compromised peer (or an on-path attacker driving an established session) over the network, yielding remote memory corruption and at minimum a reliable denial of service. The defect was present in the WireGuard implementation shipped in Zephyr 4.4.0. The fix adds an explicit data_len > CONFIG_WIREGUARD_BUF_LEN rejection and corrects the linearize call to pass net_buf_max_len(buf) as the destination capacity."},{"lang":"es","value":"En el subsistema WireGuard de Zephyr (subsys/net/lib/wireguard), wg_process_data_message() en wg_crypto.c linealiza una carga útil de datos de transporte entrante en un búfer de grupo fijo de CONFIG_WIREGUARD_BUF_LEN bytes antes del descifrado. La llamada net_buf_linearize(buf  ->  data, data_len, pkt  ->  buffer, ..., data_len) pasó el data_len derivado del atacante como la capacidad de destino y la longitud de copia, anulando el límite interno de la función len = min(len, dst_len). data_len se deriva de la longitud del datagrama UDP recibido y solo está limitado inferiormente por wg_ctrl_recv() (sin límite superior). Cuando data_len excede CONFIG_WIREGUARD_BUF_LEN - por ejemplo, cuando la longitud del búfer se reduce por debajo de la MTU del enlace, en enlaces con MTU superior al tamaño del búfer, o a través de fragmentos IPv4/IPv6 reensamblados que lo exceden - el memcpy subyacente escribe más allá del final del búfer de grupo, una escritura fuera de límites (CWE-787). El desbordamiento ocurre antes de la verificación de autenticación Poly1305, por lo que solo requiere un índice de sesión de receptor válido en lugar de un autenticador válido, y es alcanzable por un par malicioso o comprometido (o un atacante en la ruta que controla una sesión establecida) a través de la red, lo que produce corrupción de memoria remota y como mínimo una denegación de servicio confiable. El defecto estaba presente en la implementación de WireGuard distribuida en Zephyr 4.4.0. La solución añade un rechazo explícito de data_len > CONFIG_WIREGUARD_BUF_LEN y corrige la llamada de linealización para pasar net_buf_max_len(buf) como la capacidad de destino."}],"affected":[{"source":"vulnerabilities@zephyrproject.org","affectedData":[{"vendor":"zephyrproject","product":"zephyr","defaultStatus":"unaffected","collectionURL":"https://github.com/zephyrproject-rtos/zephyr","packageName":"zephyr","programFiles":["subsys/net/lib/wireguard/wg_crypto.c"],"versions":[{"version":"4.4.0","lessThan":"4.4.2","versionType":"semver","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"vulnerabilities@zephyrproject.org","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","baseScore":7.4,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-07-13T15:48:45.958922Z","id":"CVE-2026-10665","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"vulnerabilities@zephyrproject.org","type":"Secondary","description":[{"lang":"en","value":"CWE-787"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.0","versionEndExcluding":"4.4.2","matchCriteriaId":"1A0A2134-3579-444D-91CA-CCEE3F15995A"}]}]}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/6d8bb28dc9064e05e52b5a00b2998ecc663e38cb","source":"vulnerabilities@zephyrproject.org","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-3wqm-wgx2-9367","source":"vulnerabilities@zephyrproject.org","tags":["Exploit","Patch","Vendor Advisory"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-3wqm-wgx2-9367","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":["Exploit","Patch","Vendor Advisory"]}]}