CVE-2020-12885 Denial of service in n/a

High 7.5 Published Updated

An attacker can cause a denial of service in Arm Mbed OS by sending a crafted CoAP packet that triggers an infinite loop in the parser.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2020-12885?

CVE-2020-12885 is a high-severity denial of service vulnerability in n/a, published on 18 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-835

Which versions are affected by CVE-2020-12885?

It affects 1 product.

Products include Arm Mbed Os.

How do I fix CVE-2020-12885?

No fix has been published for CVE-2020-12885 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2020-12885 being exploited?

There is no known exploitation of CVE-2020-12885 in the wild and no public exploit code.

Sources

Also known as GHSA-jhjh-34gq-3m8c.

Is CVE-2020-12885 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free