Use After Free Affecting tokio package, versions >=0.2.0 <1.18.5>=1.19.0 <1.20.4>=1.21.0 <1.24.2


Severity

Recommended
0.0
high
0
10

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

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-TOKIO-3311245
  • published5 Feb 2023
  • disclosed4 Feb 2023
  • creditzachs18

Introduced: 4 Feb 2023

CVE NOT AVAILABLE CWE-416  (opens in a new tab)

How to fix?

Upgrade tokio to version 1.18.5, 1.20.4, 1.24.2 or higher.

Overview

tokio is an An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.

Affected versions of this package are vulnerable to Use After Free as tokio::io::ReadHalf<T>::unsplit can violate the Pin contract, when the io-util feature is used.

CVSS Scores

version 3.1