CVE-2019-17211
An integer overflow was discovered in the CoAP library in Arm Mbed OS 5.14.0.
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- n/a n/a
Version range not reported
References 8
GitHub · ARMmbed/mbed-os
- features/frameworks/mbed-coap/source/sn_coap_builder.c · L355
- features/frameworks/mbed-coap/source/sn_coap_builder.c · L1090
- features/frameworks/mbed-coap/source/sn_coap_builder.c · L710
- features/frameworks/mbed-coap/source/sn_coap_builder.c · L524
- features/frameworks/mbed-coap/source/sn_coap_builder.c · L527
- features/frameworks/mbed-coap/source/sn_coap_builder.c · L718
- features/frameworks/mbed-coap/source/sn_coap_builder.c · L746
- Issue #11804