Unrated severityNVD Advisory· Published May 11, 2020· Updated Sep 16, 2024
Shell Subsystem Contains a Buffer Overflow Vulnerability In shell_spaces_trim
CVE-2020-10023
Description
The shell subsystem contains a buffer overflow, whereby an adversary with physical access to the device is able to cause a memory corruption, resulting in denial of service or possibly code execution within the Zephyr kernel. See NCC-NCC-019 This issue affects: zephyrproject-rtos zephyr version 1.14.0 and later versions. version 2.1.0 and later versions.
Affected products
1- Range: 1.14.0
Patches
39d3186c43a8fshell: utils: Fix buffer overrun in shell_spaces_trim
1 file changed · +1 −1
subsys/shell/shell_utils.c+1 −1 modified@@ -413,7 +413,7 @@ void shell_spaces_trim(char *str) /* +1 for EOS */ memmove(&str[i + 1], &str[j], - len - shift + 1); + len - j + 1); len -= shift; shift = 0U; }
13fd2d343bfbshell: utils: Fix buffer overrun in shell_spaces_trim
1 file changed · +1 −1
subsys/shell/shell_utils.c+1 −1 modified@@ -324,7 +324,7 @@ void shell_spaces_trim(char *str) /* +1 for EOS */ memmove(&str[i + 1], &str[j], - len - shift + 1); + len - j + 1); len -= shift; shift = 0U; }
a2872c3a008dshell: utils: Fix buffer overrun in shell_spaces_trim
1 file changed · +1 −1
subsys/shell/shell_utils.c+1 −1 modified@@ -413,7 +413,7 @@ void shell_spaces_trim(char *str) /* +1 for EOS */ memmove(&str[i + 1], &str[j], - len - shift + 1); + len - j + 1); len -= shift; shift = 0U; }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- docs.zephyrproject.org/latest/security/vulnerabilities.htmlmitrex_refsource_MISC
- github.com/zephyrproject-rtos/zephyr/pull/23304mitrex_refsource_MISC
- github.com/zephyrproject-rtos/zephyr/pull/23646mitrex_refsource_MISC
- github.com/zephyrproject-rtos/zephyr/pull/23649mitrex_refsource_MISC
- zephyrprojectsec.atlassian.net/browse/ZEPSEC-29mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.