mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:34:31 -06:00
153 lines
4.5 KiB
JSON
153 lines
4.5 KiB
JSON
[
|
|
{
|
|
"id": "RUSTSEC-2020-0061",
|
|
"modified": "2023-06-13T13:10:24Z",
|
|
"published": "2020-05-03T12:00:00Z",
|
|
"aliases": [
|
|
"CVE-2020-35907",
|
|
"GHSA-p9m5-3hj7-cp5r"
|
|
],
|
|
"related": [],
|
|
"summary": "futures_task::noop_waker_ref can segfault due to dereferencing a NULL pointer",
|
|
"details": "Affected versions of the crate used a `UnsafeCell` in thread-local storage to return a noop waker reference,\nassuming that the reference would never be returned from another thread.\n\nThis resulted in a segmentation fault crash if `Waker::wake_by_ref()` was called on a waker returned from another thread due to \nit attempting to dereference a pointer that wasn't accessible from the main thread.\n\nReproduction Example (from issue):\n```rust\nuse futures_task::noop_waker_ref;\nfn main() {\n let waker = std::thread::spawn(|| noop_waker_ref()).join().unwrap();\n waker.wake_by_ref();\n}\n```\n\nThe flaw was corrected by using a `OnceCell::Lazy<>` wrapper around the noop waker instead of thread-local storage.",
|
|
"severity": [
|
|
{
|
|
"type": "CVSS_V3",
|
|
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "futures-task",
|
|
"purl": "pkg:cargo/futures-task"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": [
|
|
"futures_task::noop_waker_ref"
|
|
]
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [
|
|
"denial-of-service"
|
|
],
|
|
"cvss": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
|
|
"informational": null
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
},
|
|
{
|
|
"fixed": "0.3.5"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/futures-task"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0061.html"
|
|
},
|
|
{
|
|
"type": "REPORT",
|
|
"url": "https://github.com/rust-lang/futures-rs/issues/2091"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
},
|
|
{
|
|
"id": "RUSTSEC-2020-0060",
|
|
"modified": "2023-06-13T13:10:24Z",
|
|
"published": "2020-09-04T12:00:00Z",
|
|
"aliases": [
|
|
"CVE-2020-35906",
|
|
"GHSA-r93v-9p5q-vhpf"
|
|
],
|
|
"related": [],
|
|
"summary": "futures_task::waker may cause a use-after-free if used on a type that isn't 'static",
|
|
"details": "Affected versions of the crate did not properly implement a `'static` lifetime bound on the `waker` function.\nThis resulted in a use-after-free if `Waker::wake()` is called after original data had been dropped.\n\nThe flaw was corrected by adding `'static` lifetime bound to the data `waker` takes.",
|
|
"severity": [
|
|
{
|
|
"type": "CVSS_V3",
|
|
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "futures-task",
|
|
"purl": "pkg:cargo/futures-task"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": [
|
|
"futures_task::waker"
|
|
]
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [
|
|
"code-execution",
|
|
"memory-corruption"
|
|
],
|
|
"cvss": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
|
|
"informational": null
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.2.2-0"
|
|
},
|
|
{
|
|
"fixed": "0.3.6"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/futures-task"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0060.html"
|
|
},
|
|
{
|
|
"type": "WEB",
|
|
"url": "https://github.com/rust-lang/futures-rs/pull/2206"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
}
|
|
] |