CVE-2019-17211
Mbed vulnerability
An integer overflow was discovered in the CoAP library in Arm Mbed OS 5.14.0. The function sn_coap_builder_calc_needed_packet_data_size_2() is used to calculate the required memory for the CoAP message from the sn_coap_hdr_s data structure. Both returned_byte_count and src_coap_msg_ptr->payload_len are of type uint16_t. When added together, the result returned_byte_count can wrap around the maximum uint16_t value. As a result, insufficient buffer space is allocated for the corresponding CoAP message.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Mbed. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mbed runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/framewor · Third Party Advisory
- github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/framewor · Third Party Advisory
- github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/framewor · Third Party Advisory
- github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/framewor · Third Party Advisory
- github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/framewor · Third Party Advisory
- github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/framewor · Third Party Advisory
- github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/framewor · Third Party Advisory
- github.com/ARMmbed/mbed-os/issues/11804 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2019-17211
- cve.org/CVERecord?id=CVE-2019-17211
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.