Skip to content

CVE-2020-35920 socket2 invalidly assumes the memory layout of std::net::SocketAddr

MediumCVSS 5.5 EPSS 0.41%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

Description

An issue was discovered in the socket2 crate before 0.3.16 for Rust. It has false expectations about the std::net::SocketAddr memory representation.

Upgrade path

8 packages: 6 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-socket2(Ubuntu 20.04) = 0.3.11-1; All versions No fix listed No fix yet
ubuntu/rust-socket2(Ubuntu 22.04) = 0.3.19-2; = 0.4.2-1; All versions No fix listed No fix yet
crates.io net2(crates.io) < 0.2.36 0.2.36 Fixed
crates.io socket2(crates.io) < 0.3.16 0.3.16 Fixed
debian/rust-socket2(Debian 12) < 0.3.19-1 0.3.19-1 Fixed
debian/rust-socket2(Debian 13) < 0.3.19-1 0.3.19-1 Fixed
debian/rust-socket2(Debian 14) < 0.3.19-1 0.3.19-1 Fixed
rust-lang socket2 < 0.3.16 0.3.16 Fixed

Affected products

ProductAffected versionsFixed in
ubuntu/rust-socket2(Ubuntu:22.04) All versions No fix listed
crates.io socket2(crates.io) < 0.3.16 0.3.16
crates.io net2(crates.io) < 0.2.36 0.2.36
debian/rust-socket2(Debian:12) < 0.3.19-1 0.3.19-1
debian/rust-socket2(Debian:13) < 0.3.19-1 0.3.19-1
debian/rust-socket2(Debian:14) < 0.3.19-1 0.3.19-1
rust-lang socket2 < 0.3.16 0.3.16
ubuntu/rust-socket2(Ubuntu:20.04) All versions No fix listed
ubuntu/rust-socket2(Ubuntu:20.04) = 0.3.11-1 No fix listed
ubuntu/rust-socket2(Ubuntu:22.04) = 0.3.19-2 No fix listed
ubuntu/rust-socket2(Ubuntu:22.04) = 0.4.2-1 No fix listed

References