Skip to content

CVE-2020-25576 Unaligned memory access in rand_core

CriticalCVSS 9.8 EPSS 1.6%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

Description

An issue was discovered in the rand_core crate before 0.4.2 for Rust. Casting of byte slices to integer slices mishandles alignment constraints.

Upgrade path

7 packages: 5 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-rand-core-0.2(Ubuntu 20.04) = 0.2.2-1; = 0.2.2-2; All versions No fix listed No fix yet
ubuntu/rust-rand-core-0.3(Ubuntu 20.04) = 0.3.0-1; = 0.3.0-2; All versions No fix listed No fix yet
crates.io rand_core(crates.io) < 0.3.1; >= 0.0.0-0, < 0.3.1; >= 0.4.0, < 0.4.2; >= 0.4.0-0, < 0.4.2 0.3.1, 0.4.2 Fixed
debian/rust-rand-core(Debian 12) < 0.5.0-1 0.5.0-1 Fixed
debian/rust-rand-core(Debian 13) < 0.5.0-1 0.5.0-1 Fixed
debian/rust-rand-core(Debian 14) < 0.5.0-1 0.5.0-1 Fixed
rust-random rand < 0.4.2 0.4.2 Fixed

Affected products

ProductAffected versionsFixed in
crates.io rand_core(crates.io) >= 0.4.0, < 0.4.2 0.4.2
crates.io rand_core(crates.io) < 0.3.1 0.3.1
debian/rust-rand-core(Debian:12) < 0.5.0-1 0.5.0-1
debian/rust-rand-core(Debian:14) < 0.5.0-1 0.5.0-1
debian/rust-rand-core(Debian:13) < 0.5.0-1 0.5.0-1
crates.io rand_core(crates.io) >= 0.0.0-0, < 0.3.1 0.3.1
crates.io rand_core(crates.io) >= 0.4.0-0, < 0.4.2 0.4.2
rust-random rand < 0.4.2 0.4.2
ubuntu/rust-rand-core-0.2(Ubuntu:20.04) All versions No fix listed
ubuntu/rust-rand-core-0.2(Ubuntu:20.04) = 0.2.2-1 No fix listed
ubuntu/rust-rand-core-0.2(Ubuntu:20.04) = 0.2.2-2 No fix listed
ubuntu/rust-rand-core-0.3(Ubuntu:20.04) All versions No fix listed
ubuntu/rust-rand-core-0.3(Ubuntu:20.04) = 0.3.0-1 No fix listed
ubuntu/rust-rand-core-0.3(Ubuntu:20.04) = 0.3.0-2 No fix listed

References