CVE-2020-12887: Integer Overflow

Published Jun 18, 2020
·
Updated

Memory leaks were discovered in the CoAP library in Arm Mbed OS 5.15.3 when using the Arm mbed-coap library 5.1.5. The CoAP parser is responsible for parsing received CoAP packets. The function sncoapparseroptionsparse() parses the CoAP option number field of all options present in the input packet. Each option number is calculated as a sum of the previous option number and a delta of the current option. The delta and the previous option number are expressed as unsigned 16-bit integers. Due to lack of overflow detection, it is possible to craft a packet that wraps the option number around and results in the same option number being processed again in a single packet. Certain options allocate memory by calling a memory allocation function. In the cases of COAPOPTIONURIQUERY, COAPOPTIONURIPATH, COAPOPTIONLOCATIONQUERY, and COAPOPTIONETAG, there is no check on whether memory has already been allocated, which in conjunction with the option number integer overflow may lead to multiple assignments of allocated memory to a single pointer. This has been demonstrated to lead to memory leak by buffer orphaning. As a result, the memory is never freed.

Affected Software

2 affected components
Arm mbed-coap=5.1.5
Arm Mbed OS=5.15.3

Event History

Jun 18, 2020
CVE Published
via MITRE·06:24 PM
Data Sourced
via MITRE·06:24 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2020-12887?

CVE-2020-12887 has been classified with a moderate severity level due to the impact of memory leaks.

2

What software versions are affected by CVE-2020-12887?

CVE-2020-12887 affects Arm mbed-coap version 5.1.5 and Arm Mbed OS version 5.15.3.

3

How do I fix CVE-2020-12887?

To mitigate CVE-2020-12887, users should upgrade to a newer version of the mbed-coap library that has memory leak issues addressed.

4

What type of vulnerability is represented by CVE-2020-12887?

CVE-2020-12887 represents a memory leak vulnerability in the CoAP library used in specific versions of Arm Mbed OS.

5

Can CVE-2020-12887 lead to performance issues?

Yes, CVE-2020-12887 can lead to performance issues due to excessive memory consumption from the memory leak.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203