Memory Corruption Affecting ticketed_lock package, versions <0.3.0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.24% (63rd 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-TICKETEDLOCK-1064879
  • published15 Jun 2022
  • disclosed17 Nov 2020
  • creditSSLab@Gatech

Introduced: 17 Nov 2020

CVE-2020-36439  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade ticketed_lock to version 0.3.0 or higher.

Overview

ticketed_lock is a Ticketed lock system - allows one to separate lock request from the actual waiting.

Affected versions of this package are vulnerable to Memory Corruption. This crate unconditionally implemented Send for ReadTicket<T> & WriteTicket<T>. This allows to send non-Send T to other threads. This can create data races by cloning types with internal mutability and sending them to other threads (as T of ReadTicket<T>/WriteTicket<T>).

CVSS Scores

version 3.1