Out-of-bounds Read The advisory has been revoked - it doesn't affect any version of package armmbed/mbed-os  (opens in a new tab)


Threat Intelligence

EPSS
1.35% (68th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-ARMMBEDMBEDOS-2368796
  • published26 Jan 2022
  • disclosed18 Jun 2020
  • creditUnknown

Introduced: 18 Jun 2020

CVE-2020-12886  (opens in a new tab)
CWE-125  (opens in a new tab)

Amendment

This was deemed not a vulnerability.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. A buffer over-read 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() parses the CoAP packet header starting from the message token. The length of the token in the received message is provided in the first byte parsed by the sn_coap_parser_options_parse() function. The length encoded in the message is not validated against the actual input buffer length before accessing the token. As a result, memory access outside of the intended boundary of the buffer may occur.