logo

CVE-2021-38191 tokio

Package

Manager: cargo
Name: tokio
Vulnerable Version: >=1.8.0 <1.8.1 || >=1.7.0 <1.7.2 || >=1.6.0 <1.6.3 || >=0.3.0 <1.5.1

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00237 pctl0.46692

Details

Race condition in tokio When aborting a task with JoinHandle::abort, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a LocalSet. This can easily result in race conditions as many projects use Rc or RefCell in their Tokio tasks for better performance.

Metadata

Created: 2021-08-25T20:55:51Z
Modified: 2023-06-13T22:08:56Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-2grh-hm3w-w7hv/GHSA-2grh-hm3w-w7hv.json
CWE IDs: ["CWE-362", "CWE-366"]
Alternative ID: GHSA-2grh-hm3w-w7hv
Finding: F124
Auto approve: 1