CVE-2026-10684: bounds in zephyrproject zephyr
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. A 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. The 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. Introduced 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.
AI Analysis
Technical Summary
In Zephyr versions 4.2.0 through 4.4.0, the function print_coredump_hdr() in subsys/debug/coredump/coredump_shell.c uses the 16-bit tgt_code field from a stored coredump header directly as an index into a fixed-size 7-element array (coredump_target_code2str[]) without bounds checking. If tgt_code is 7 or greater, this causes an out-of-bounds read of a char* pointer, which is then passed to shell_print as a %s argument. This leads to either disclosure of device memory contents or a crash if the pointer is invalid. The vulnerability is reachable only via the coredump print shell command and requires local shell access plus the ability to corrupt or stage the stored coredump. The issue was introduced in version 4.2.0 and fixed by clamping out-of-range tgt_code values to the 'unknown' entry at index 0.
Potential Impact
An attacker with local shell access and the ability to stage or corrupt stored coredumps can cause an out-of-bounds read, potentially disclosing device memory contents or causing a crash. The impact is limited to local users with elevated privileges and requires specific conditions to trigger. The CVSS score is 3.0 (low severity), reflecting limited confidentiality impact and the need for high privileges and complex conditions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability was fixed by clamping out-of-range tgt_code values to a safe index in versions after 4.4.0. Until an official fix is confirmed, avoid exposing local shell access to untrusted users and prevent manipulation or corruption of stored coredumps.
CVE-2026-10684: bounds in zephyrproject zephyr
Description
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. A 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. The 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. Introduced 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.
CVSS v3.1
Score 3.0low
Affected software
pkg:github/zephyrRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In Zephyr versions 4.2.0 through 4.4.0, the function print_coredump_hdr() in subsys/debug/coredump/coredump_shell.c uses the 16-bit tgt_code field from a stored coredump header directly as an index into a fixed-size 7-element array (coredump_target_code2str[]) without bounds checking. If tgt_code is 7 or greater, this causes an out-of-bounds read of a char* pointer, which is then passed to shell_print as a %s argument. This leads to either disclosure of device memory contents or a crash if the pointer is invalid. The vulnerability is reachable only via the coredump print shell command and requires local shell access plus the ability to corrupt or stage the stored coredump. The issue was introduced in version 4.2.0 and fixed by clamping out-of-range tgt_code values to the 'unknown' entry at index 0.
Potential Impact
An attacker with local shell access and the ability to stage or corrupt stored coredumps can cause an out-of-bounds read, potentially disclosing device memory contents or causing a crash. The impact is limited to local users with elevated privileges and requires specific conditions to trigger. The CVSS score is 3.0 (low severity), reflecting limited confidentiality impact and the need for high privileges and complex conditions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability was fixed by clamping out-of-range tgt_code values to a safe index in versions after 4.4.0. Until an official fix is confirmed, avoid exposing local shell access to untrusted users and prevent manipulation or corruption of stored coredumps.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-02T15:26:21.656Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6a48789c2644c7f8e5157f
Added to database: 07/29/2026, 18:37:44 UTC
Last enriched: 07/29/2026, 18:53:18 UTC
Last updated: 07/29/2026, 23:51:03 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.