Description
An infinite loop was discovered in the CoAP library in Arm Mbed OS 5.15.3. The CoAP parser is responsible for parsing received CoAP packets. The function sn_coap_parser_options_parse_multiple_options() parses CoAP options in a while loop. This loop's exit condition is computed using the previously allocated heap memory required for storing the result of parsing multiple options. If the input heap memory calculation results in zero bytes, the loop exit condition is never met and the loop is not terminated. As a result, the packet parsing function never exits, leading to resource consumption.
References (2)
Core 2
Core References
Third Party Advisory x_refsource_misc
https://github.com/ARMmbed/mbed-os/issues/12929
Third Party Advisory x_refsource_confirm
https://github.com/ARMmbed/mbed-coap/pull/116
Scores
CVSS v3
7.5
EPSS
0.0038
EPSS Percentile
59.6%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-835
Status
published
Products (1)
arm/mbed_os
5.15.3
Published
Jun 18, 2020
Tracked Since
Feb 18, 2026