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.
Configurations

Configuration 1 (hide)

cpe:2.3:o:arm:mbed_os:5.15.3:*:*:*:*:*:*:*

History

21 Nov 2024, 05:00

Type Values Removed Values Added
References () https://github.com/ARMmbed/mbed-coap/pull/116 - Third Party Advisory () https://github.com/ARMmbed/mbed-coap/pull/116 - Third Party Advisory
References () https://github.com/ARMmbed/mbed-os/issues/12929 - Third Party Advisory () https://github.com/ARMmbed/mbed-os/issues/12929 - Third Party Advisory

Information

Published : 2020-06-18 19:15

Updated : 2024-11-21 05:00


NVD link : CVE-2020-12885

Mitre link : CVE-2020-12885

CVE.ORG link : CVE-2020-12885


JSON object : View

Products Affected

arm

  • mbed_os
CWE
CWE-835

Loop with Unreachable Exit Condition ('Infinite Loop')