CVE-2021-31162

critical
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Description

In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.

References

https://github.com/rust-lang/rust/issues/83618

https://github.com/rust-lang/rust/pull/83629

https://lists.fedoraproject.org/archives/list/[email protected]/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/

https://lists.fedoraproject.org/archives/list/[email protected]/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/

https://lists.fedoraproject.org/archives/list/[email protected]/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/

https://github.com/rust-lang/rust/pull/84603

Details

Source: MITRE

Published: 2021-04-14

Updated: 2021-06-02

Type: CWE-415

Risk Information

CVSS v2

Base Score: 7.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 10

Severity: HIGH

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 3.9

Severity: CRITICAL

Tenable Plugins

View all (6 total)

IDNameProductFamilySeverity
152574CentOS 8 : rust-toolset:rhel8 (CESA-2021:3063)NessusCentOS Local Security Checks
critical
152509Oracle Linux 8 : rust-toolset:ol8 (ELSA-2021-3063)NessusOracle Linux Local Security Checks
critical
152449RHEL 8 : rust-toolset:rhel8 (RHSA-2021:3063)NessusRed Hat Local Security Checks
critical
152446RHEL 7 : rust-toolset-1.52 and rust-toolset-1.52-rust (RHSA-2021:3042)NessusRed Hat Local Security Checks
critical
148910Photon OS 4.0: Rust PHSA-2021-4.0-0012NessusPhotonOS Local Security Checks
critical
148908Photon OS 3.0: Rust PHSA-2021-3.0-0223NessusPhotonOS Local Security Checks
critical