CVE-2019-17212

Summary

CVECVE-2019-17212
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2019-11-05 15:15:00 UTC
Updated2020-08-24 17:37:00 UTC
DescriptionBuffer 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.

Risk And Classification

Problem Types: CWE-787 | CWE-129

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Mbed Mbed 5.13.2 All All All
Operating System Mbed Mbed 5.14.0 All All All
Operating System Mbed Mbed 5.13.2 All All All
Operating System Mbed Mbed 5.14.0 All All All

References

ReferenceSourceLinkTags
mbed-os/sn_coap_parser.c at d91ed5fa42ea0f32e4422a3c562e7b045a17da40 · ARMmbed/mbed-os · GitHub MISC github.com Third Party Advisory
mbed-os/sn_coap_parser.c at d91ed5fa42ea0f32e4422a3c562e7b045a17da40 · ARMmbed/mbed-os · GitHub MISC github.com Third Party Advisory
mbed-os/sn_coap_parser.c at d91ed5fa42ea0f32e4422a3c562e7b045a17da40 · ARMmbed/mbed-os · GitHub MISC github.com Third Party Advisory
mbed-os/sn_coap_parser.c at d91ed5fa42ea0f32e4422a3c562e7b045a17da40 · ARMmbed/mbed-os · GitHub MISC github.com Third Party Advisory
mbed-os/sn_coap_parser.c at d91ed5fa42ea0f32e4422a3c562e7b045a17da40 · ARMmbed/mbed-os · GitHub MISC github.com Third Party Advisory
memory acess out of range in MbedOS CoAP library parser part · Issue #11803 · ARMmbed/mbed-os · GitHub MISC github.com Issue Tracking, Third Party Advisory
mbed-os/sn_coap_parser.c at d91ed5fa42ea0f32e4422a3c562e7b045a17da40 · ARMmbed/mbed-os · GitHub MISC github.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report