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.
Metrics
Affected Vendors & Products
References
History
No history.
MITRE
Status: PUBLISHED
Assigner: mitre
Published: 2020-06-18T18:24:53
Updated: 2024-08-04T12:11:19.127Z
Reserved: 2020-05-15T00:00:00
Link: CVE-2020-12885
Vulnrichment
No data.
NVD
Status : Modified
Published: 2020-06-18T19:15:10.050
Modified: 2024-11-21T05:00:29.437
Link: CVE-2020-12885
Redhat
No data.