{"id":"CVE-2026-10684","aliases":["CVE-2026-10684"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds read in coredump shell when printing stored-dump target code","summary":"In subsys/debug/coredump/coredump_shell.c, print_coredump_hdr() used the 16-bit tgt_code field of a stored Zephyr coredump header directly as an index into coredump_target_code2str[], a fixed 7-element array of string pointers, with no bounds check.\n\nA stored coredump whose tgt_code is >= 7 causes an out-of-bounds read of a char* up to ~64K entries past the array; that value is passed as the %s argument to shell_print, which dereferences and walks it as a string. The result is either disclosure of device memory contents to the shell user or a crash when the out-of-bounds pointer is unmapped.\n\nThe defect is reached via the coredump print shell command (cmd_coredump_print_stored_dump -> pretty_print_coredump -> parse_and_print_coredump -> print_coredump_hdr). The tgt_code field is device-generated and in-range during normal crash handling, so triggering requires local shell access plus the ability to stage or corrupt the stored coredump in the flash/in-memory backend.\n\nIntroduced in v4.2.0 (commit 13abd7fe730) and present through v4.4.0; fixed by clamping out-of-range codes to the 'unknown' (index 0) entry.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In subsys/debug/coredump/coredump_shell.c, print_coredump_hdr() used the 16-bit tgt_code field of a stored Zephyr coredump header directly as an index into coredump_target_code2str[], a fixed 7-element array of string pointers, with no bounds check.\n\nA stored coredump whose tgt_code is >= 7 causes an out-of-bounds read of a char* up to ~64K entries past the array; that value is passed as the %s argument to shell_print, which dereferences and walks it as a string. The result is either disclosure of device memory contents to the shell user or a crash when the out-of-bounds pointer is unmapped.\n\nThe defect is reached via the coredump print shell command (cmd_coredump_print_stored_dump -> pretty_print_coredump -> parse_and_print_coredump -> print_coredump_hdr). The tgt_code field is device-generated and in-range during normal crash handling, so triggering requires local shell access plus the ability to stage or corrupt the stored coredump in the flash/in-memory backend.\n\nIntroduced in v4.2.0 (commit 13abd7fe730) and present through v4.4.0; fixed by clamping out-of-range codes to the 'unknown' (index 0) entry.","source":"cvelist"},{"lang":"es","text":"En subsys/debug/coredump/coredump_shell.c, print_coredump_hdr() usaba el campo tgt_code de 16 bits de un encabezado de volcado de memoria (coredump) de Zephyr almacenado directamente como un índice en coredump_target_code2str[], un array fijo de 7 elementos de punteros a cadenas, sin verificación de límites.\n\nUn volcado de memoria almacenado cuyo tgt_code es >= 7 provoca una lectura fuera de límites de un char hasta ~64K entradas más allá del array; ese valor se pasa como el argumento %s a shell_print, que lo desreferencia y lo recorre como una cadena. El resultado es la divulgación del contenido de la memoria del dispositivo al usuario de la shell o un fallo (crash) cuando el puntero fuera de límites no está mapeado.\n\nEl defecto se alcanza a través del comando de shell de impresión de volcado de memoria (cmd_coredump_print_stored_dump   ->   pretty_print_coredump   ->   parse_and_print_coredump   ->   print_coredump_hdr). El campo tgt_code es generado por el dispositivo y está dentro del rango durante el manejo normal de fallos, por lo que su activación requiere acceso local a la shell más la capacidad de preparar o corromper el volcado de memoria almacenado en el backend de flash/en memoria.\n\nIntroducido en v4.2.0 (commit 13abd7fe730) y presente hasta v4.4.0; corregido al limitar los códigos fuera de rango a la entrada ’unknown’ (índice 0).","source":"nvd"}],"published":"2026-07-29T18:03:08.771Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"zephyr","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:L","score":3,"rating":"LOW"},"severities":[{"scorer":"zephyr","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:L","score":3,"rating":"LOW"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"semver","introduced":"4.2.0","fixed":"4.3.1","status":"affected"},{"type":"semver","introduced":"4.4.0","fixed":"4.4.2","status":"affected"}],"vendor":"zephyrproject","product":"zephyr","package":"zephyr","source":"cvelist"}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/a9226324e8bd1f8adecafb1b6e0603f781dc750c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-9fw2-4429-49q8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"zephyr","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-29T18:47:12.610Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-10684","url":"https://www.cve.org/CVERecord?id=CVE-2026-10684","licence":"CVE Terms of Use","modified":"2026-08-31T23:13:09.624Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-10684","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-10684","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.466Z","epss":{"score":0.001,"percentile":0.00888,"date":"2026-12-01T12:00:22.000Z"}}