Vulnerability Details : CVE-2020-12885
An infinite loop was discovered in the CoAP library in Arm Mbed OS 5.15.3. The CoAP parser is responsible for parsing received CoAP packets. The function sn_coap_parser_options_parse_multiple_options() parses CoAP options in a while loop. This loop's exit condition is computed using the previously allocated heap memory required for storing the result of parsing multiple options. If the input heap memory calculation results in zero bytes, the loop exit condition is never met and the loop is not terminated. As a result, the packet parsing function never exits, leading to resource consumption.
Products affected by CVE-2020-12885
- cpe:2.3:o:arm:mbed_os:5.15.3:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-12885
0.15%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 50 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-12885
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.8
|
HIGH | AV:N/AC:L/Au:N/C:N/I:N/A:C |
10.0
|
6.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2020-12885
-
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.Assigned by: nvd@nist.gov (Primary)
References for CVE-2020-12885
-
https://github.com/ARMmbed/mbed-coap/pull/116
Bugfix/coap parser mem access bugs by mjurczak · Pull Request #116 · ARMmbed/mbed-coap · GitHubThird Party Advisory
-
https://github.com/ARMmbed/mbed-os/issues/12929
Infinite loop in MbedOS CoAP library parser · Issue #12929 · ARMmbed/mbed-os · GitHubThird Party Advisory
Jump to