CVE-2019-17212: Out-of-bounds Read
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 sncoapparseroptionsparse() parses CoAP input linearly using a while loop. Once an option is parsed in a loop, the current point (packetdatapptr) 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 packetdatapptr is not strictly enforced. More specifically, inside a loop, packetdatapptr could be increased and then dereferenced without checking. Moreover, there are many other functions in the format of sncoapparser() 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2019-17212?
CVE-2019-17212 is classified as a high severity vulnerability due to its potential to cause buffer overflows in the CoAP library.
How do I fix CVE-2019-17212?
To fix CVE-2019-17212, upgrade your Mbed OS to version 5.14.1 or later to address the buffer overflow vulnerability.
Which versions of Mbed OS are affected by CVE-2019-17212?
CVE-2019-17212 affects Mbed OS versions 5.13.2 and 5.14.0.
What components are involved in CVE-2019-17212?
CVE-2019-17212 involves the CoAP parser component within the Mbed OS framework.
What type of vulnerability is CVE-2019-17212?
CVE-2019-17212 is a buffer overflow vulnerability that can lead to potential security risks in network communications.