UpdateHub Might Dereference An Uninitialized Pointer (zephyrproject-rtos zephyr)
At a glance
- Source
- NVD
- EPSS
- EPSS 1.56 % · percentile 75 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- zephyr
- NVD status
- Modified
Description
In updatehub_probe, right after JSON parsing is complete, objects\[1] is accessed from the output structure in two different places. If the JSON contained less than two elements, this access would reference unitialized stack memory. This could result in a crash, denial of service, or possibly an information leak. Provided the fix in CVE-2020-10059 is applied, the attack requires compromise of the server. See NCC-ZEP-030 This issue affects: zephyrproject-rtos zephyr version 2.1.0 and later versions. version 2.2.0 and later versions.
Weaknesses (CWE)
- CWE-119 — Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-824 — Access of Uninitialized Pointer
References
- https://zephyrprojectsec.atlassian.net/browse/ZEPSEC-37
- https://docs.zephyrproject.org/latest/security/vulnerabilities.html#cve-2020-10060
- https://github.com/zephyrproject-rtos/zephyr/pull/27865
- https://github.com/zephyrproject-rtos/zephyr/pull/27889
- https://github.com/zephyrproject-rtos/zephyr/pull/27891
- https://github.com/zephyrproject-rtos/zephyr/pull/27893
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H | zephyr |
| CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H | NVD · vulnerabilities@zephyrproject.org (Secondary) |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 5.5 | AV:N/AC:L/Au:S/C:P/I:N/A:P | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2020-2525
- GCVE · GCVE-0-2020-10060
Affected configurations (NVD CPE)
cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*≥ 2.1.0 < 2.4.0
Affected products
| Product | Versions |
|---|---|
| zephyrproject-rtos · zephyr | affected 2.1.0 < unspecified ; affected 2.2.0 < unspecified |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |