CVE-2020-12887
Arm Mbed OS CoAP Memory Leakage Vulnerability
Description
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 sn_coap_parser_options_parse() 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 COAP_OPTION_URI_QUERY, COAP_OPTION_URI_PATH, COAP_OPTION_LOCATION_QUERY, and COAP_OPTION_ETAG, 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.
INFO
Published Date :
June 18, 2020, 7:15 p.m.
Last Modified :
July 21, 2021, 11:39 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2020-12887
.
URL | Resource |
---|---|
https://github.com/ARMmbed/mbed-coap/pull/116 | Third Party Advisory |
https://github.com/ARMmbed/mbed-os/issues/12930 | Third Party Advisory |
https://github.com/ARMmbed/mbed-os/issues/12957 | Third Party Advisory |
https://github.com/mjurczak/mbed-coap/commit/4647a68e364401e81dbd370728127d844f221d93 | Patch Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2020-12887
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2020-12887
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CWE Remap by [email protected]
Jul. 21, 2021
Action Type Old Value New Value Changed CWE CWE-401 CWE-190 CWE-401 -
Initial Analysis by [email protected]
Jun. 25, 2020
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:N/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/ARMmbed/mbed-coap/pull/116 No Types Assigned https://github.com/ARMmbed/mbed-coap/pull/116 Third Party Advisory Changed Reference Type https://github.com/ARMmbed/mbed-os/issues/12930 No Types Assigned https://github.com/ARMmbed/mbed-os/issues/12930 Third Party Advisory Changed Reference Type https://github.com/ARMmbed/mbed-os/issues/12957 No Types Assigned https://github.com/ARMmbed/mbed-os/issues/12957 Third Party Advisory Changed Reference Type https://github.com/mjurczak/mbed-coap/commit/4647a68e364401e81dbd370728127d844f221d93 No Types Assigned https://github.com/mjurczak/mbed-coap/commit/4647a68e364401e81dbd370728127d844f221d93 Patch, Third Party Advisory Added CWE NIST CWE-401 Added CPE Configuration AND OR *cpe:2.3:a:arm:mbed-coap:5.1.5:*:*:*:*:*:*:* OR cpe:2.3:o:arm:mbed_os:5.15.3:*:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2020-12887
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2020-12887
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.49 }} 0.14%
score
0.75946
percentile