{"id":"CVE-2019-17211","published":"2019-11-05T15:06:40Z","modified":"2024-08-05T01:33:17Z","title":"An integer overflow was discovered in the CoAP library in Arm Mbed OS 5.14.0","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02574,"percentile":0.85067,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/frameworks/mbed-coap/source/sn_coap_builder.c#L355","tags":["x_refsource_MISC"]},{"url":"https://github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/frameworks/mbed-coap/source/sn_coap_builder.c#L1090","tags":["x_refsource_MISC"]},{"url":"https://github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/frameworks/mbed-coap/source/sn_coap_builder.c#L710","tags":["x_refsource_MISC"]},{"url":"https://github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/frameworks/mbed-coap/source/sn_coap_builder.c#L524","tags":["x_refsource_MISC"]},{"url":"https://github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/frameworks/mbed-coap/source/sn_coap_builder.c#L527","tags":["x_refsource_MISC"]},{"url":"https://github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/frameworks/mbed-coap/source/sn_coap_builder.c#L718","tags":["x_refsource_MISC"]},{"url":"https://github.com/ARMmbed/mbed-os/blob/d0686fd30b4d3d02efdc7e4d0fbf0dfe173543b6/features/frameworks/mbed-coap/source/sn_coap_builder.c#L746","tags":["x_refsource_MISC"]},{"url":"https://github.com/ARMmbed/mbed-os/issues/11804","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":17.01}]},"euvd":{"id":"EUVD-2019-7631","exploited":false,"provenance":"source"}}