Vulnerabilities / CVE-2020-36318

critical

CVE-2020-36318

rust: use-after-free or double free in VecDeque::make_contiguous

Published Modified CWE 415, 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, CBL-Mariner. Rated lower by Red Hat (medium), Oracle (low), Rocky Linux (low).

Description

In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.

Affected packages and fixed versions

SourcePackageFixed in
CBL-Mariner 1.0rust0:1.59.0-1.cm1
debian 10rustcno fix listed
debian 11rustcno fix listed
debian 12rustc1.53.0+dfsg1-1
debian 13rustc1.53.0+dfsg1-1
debian 14rustc1.53.0+dfsg1-1
debian 9rustcno fix listed
echorustc1.53.0+dfsg1-1
Oracle Linux 8cargo, cargo-doc, clippy and 11 more1.49.0-1.module+el8.4.0+20083+9f8f961d
rocky 8rust-toolset:rhel8::cargo, rust-toolset:rhel8::cargo-doc, rust-toolset:rhel8::clippy and 11 more1.49.0-1.module+el8.4.0+416+259a129a
Show all 36 entries from 10 sources
SourcePackageFixed in
CBL-Mariner 1.0rust0:1.59.0-1.cm1
debian 10rustcno fix listed
debian 11rustcno fix listed
debian 12rustc1.53.0+dfsg1-1
debian 13rustc1.53.0+dfsg1-1
debian 14rustc1.53.0+dfsg1-1
debian 9rustcno fix listed
echorustc1.53.0+dfsg1-1
Oracle Linux 8cargo1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8cargo-doc1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8clippy1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rls1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-analysis1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-debugger-common1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-doc1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-gdb1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-lldb1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-src1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-std-static1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rust-toolset1.49.0-1.module+el8.4.0+20083+9f8f961d
Oracle Linux 8rustfmt1.49.0-1.module+el8.4.0+20083+9f8f961d
rocky 8rust-toolset:rhel8::cargo1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::cargo-doc1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::clippy1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rls1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-analysis1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-debugger-common1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-doc1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-gdb1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-lldb1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-src1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-std-static1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rust-toolset1.49.0-1.module+el8.4.0+416+259a129a
rocky 8rust-toolset:rhel8::rustfmt1.49.0-1.module+el8.4.0+416+259a129a

References

All 14 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.