-
Notifications
You must be signed in to change notification settings - Fork 377
/
Copy pathRUSTSEC-2021-0072.json
81 lines (81 loc) · 2.06 KB
/
RUSTSEC-2021-0072.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"id": "RUSTSEC-2021-0072",
"modified": "2021-11-06T20:37:35Z",
"published": "2021-07-07T12:00:00Z",
"aliases": [
"CVE-2021-38191"
],
"related": [],
"summary": "Task dropped in wrong thread when aborting `LocalSet` task",
"details": "When aborting a task with `JoinHandle::abort`, the future is dropped in the\nthread calling abort if the task is not currently being executed. This is\nincorrect for tasks spawned on a `LocalSet`.\n\nThis can easily result in race conditions as many projects use `Rc` or `RefCell`\nin their Tokio tasks for better performance.\n\nSee [tokio#3929][issue] for more details.\n\n[issue]: https://github.com/tokio-rs/tokio/issues/3929",
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "tokio",
"purl": "pkg:cargo/tokio"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"tokio::task::JoinHandle::abort"
]
}
},
"database_specific": {
"categories": [
"memory-corruption"
],
"cvss": null,
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.3.0"
},
{
"fixed": "1.5.1"
},
{
"introduced": "1.6.0"
},
{
"fixed": "1.6.3"
},
{
"introduced": "1.7.0"
},
{
"fixed": "1.7.2"
},
{
"introduced": "1.8.0"
},
{
"fixed": "1.8.1"
}
]
}
]
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/tokio"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0072.html"
},
{
"type": "REPORT",
"url": "https://github.com/tokio-rs/tokio/issues/3929"
}
]
}