Memory Corruption Affecting ticketed_lock package, versions <0.3.0


0.0
high

Snyk CVSS

    Attack Complexity High
    Scope Changed
    Availability High
Expand this section
NVD
8.1 high

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 ID SNYK-RUST-TICKETEDLOCK-1064879
  • published 15 Jun 2022
  • disclosed 17 Nov 2020
  • credit SSLab@Gatech

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>).