First published: Thu Jun 18 2020(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Arm Mbed | =5.15.3 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2020-12885 is classified as a high severity vulnerability due to the potential for an infinite loop which can lead to denial of service.
To fix CVE-2020-12885, upgrade Arm Mbed OS to version 5.15.4 or later where the vulnerability has been addressed.
The impact of CVE-2020-12885 on affected systems includes the possibility of an infinite loop leading to resource exhaustion and denial of service.
Arm Mbed OS version 5.15.3 is the only affected version for CVE-2020-12885.
There is currently no documented workaround for CVE-2020-12885; upgrading to a patched version is recommended.