CVE-2019-17212 Memory corruption in n/a

Critical 9.8 Published Updated

Buffer overflows in the CoAP parser allow attackers to execute arbitrary code or cause denial of service via crafted packets.

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-2019-17212?

CVE-2019-17212 is a critical memory corruption vulnerability in n/a, published on 5 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Buffer overflows were discovered in the CoAP library in Arm Mbed OS 5.14.0. The CoAP parser is responsible for parsing received CoAP packets. The function sn_coap_parser_options_parse() parses CoAP input linearly using a while loop. Once an option is parsed in a loop, the current point (*packet_data_pptr) is increased correspondingly. The pointer is restricted by the size of the received buffer, as well as by the 0xFF delimiter byte. Inside each while loop, the check of the value of *packet_data_pptr is not strictly enforced. More specifically, inside a loop, *packet_data_pptr could be increased and then dereferenced without checking. Moreover, there are many other functions in the format of sn_coap_parser_****() that do not check whether the pointer is within the bounds of the allocated buffer. All of these lead to heap-based or stack-based buffer overflows, depending on how the CoAP packet buffer is allocated.

Weakness: CWE-787, CWE-129

Which versions are affected by CVE-2019-17212?

It affects 1 product.

Products include Mbed Mbed.

How do I fix CVE-2019-17212?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-17212 being exploited?

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

Sources

Also known as GHSA-mh95-3gr3-7p2r.

Is CVE-2019-17212 in your software?

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

Check your SBOMs for free