Double Free Affecting slice-deque package, versions *


Severity

Recommended
0.0
low
0
10

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

Threat Intelligence

EPSS
0.12% (47th 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 IDSNYK-RUST-SLICEDEQUE-1089725
  • published1 Apr 2021
  • disclosed19 Feb 2021
  • creditUnknown

Introduced: 19 Feb 2021

CVE-2021-29938  (opens in a new tab)
CWE-415  (opens in a new tab)

How to fix?

There is no fixed version for slice-deque.

Overview

slice-deque is a double-ended queue that Derefs into a slice, also known as a ring buffer or circular buffer.

Affected versions of this package are vulnerable to Double Free. It incremented the current index of the drain filter iterator before calling the predicate function self.pred. If the predicate function panics, it is possible for the last element in the iterator to be dropped twice.

CVSS Scores

version 3.1