Integer overflow in Mbed

CVE-2019-17211

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.

Vulnerability class: Integer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.026 (84.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 85th percentile — 84.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2019-17211: held from 0.026 to 0.026.

EPSS over last 30 days · oldest: 0.026 · newest: 0.026 · change: 0.000

Affected products

  • Mbed — versions 5.13.2, 5.14.0

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2019-17211?
CVE-2019-17211 is a critical-severity vulnerability in Mbed, classified under Integer Overflow or Wraparound. CVSS score: 9.8/10. Published 2019-11-05.
How severe is CVE-2019-17211?
Critical severity. CVSS v3 base score is 9.8 out of 10.