Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-27378 EUVD-2021-1910GHSA-w7j2-35mf-95p7RUSTSEC-2021-0023

Incorrect check on buffer length in rand_core

Published Feb 18, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

An issue was discovered in the rand_core crate before 0.6.2 for Rust. Because read_u32_into and read_u64_into mishandle certain buffer-length checks, a random number generator may be seeded with too little data.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-rand-core No fix yet —
Ubuntu 26.04 LTS rust-rand-core No fix yet —
Ubuntu 25.10 rust-rand-core No fix yet —
Ubuntu 24.04 LTS rust-rand-core No fix yet —
Ubuntu 22.04 LTS rust-rand-core No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS rust-rand-core No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 librsvg2 2.58.1-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io rand_core >= 0.6.0, < 0.6.2 0.6.2 GHSA-w7j2-35mf-95p7

References