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.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-rand-core | 0.5.0-1 | — |
| Debian 13 | rust-rand-core | 0.5.0-1 | — |
| Debian 12 | rust-rand-core | 0.5.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | rust-rand-core-0.2 +1 | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | kata-containers | 3.2.0.azl2-3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | rand_core | >= 0.4.0, < 0.4.2 | 0.4.2 | GHSA-mmc9-pwm7-qj5w |
| crates.io | rand_core | < 0.3.1 | 0.3.1 | GHSA-mmc9-pwm7-qj5w |
| crates.io | rand_core | >= 0.0.0-0, < 0.3.1 · >= 0.4.0-0, < 0.4.2 | 0.3.1, 0.4.2 | RUSTSEC-2019-0035 |