Use After Free Affecting heapless package, versions <0.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (44th 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 Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-HEAPLESS-1537643
  • published9 Aug 2021
  • disclosed8 Aug 2021
  • creditUnknown

Introduced: 8 Aug 2021

CVE-2020-36464  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade heapless to version 0.6.1 or higher.

Overview

heapless is a static friendly data structures that don't require dynamic memory allocation.

Affected versions of this package are vulnerable to Use After Free. The IntoIter Clone implementation clones an entire underlying Vec without considering whether it has already been partially consumed.

CVSS Scores

version 3.1