Skip to content
OpenAdvisories
Medium · 5.5 CVE-2020-35919 CVE-2020-35920EUVD-2022-3525GHSA-458v-4hrf-g3m4GHSA-c79c-gwph-gqfmRUSTSEC-2020-0078RUSTSEC-2020-0079

socket2 invalidly assumes the memory layout of std::net::SocketAddr

Published Dec 31, 2020 · Updated Aug 4, 2024 · Assigned by mitre

Description

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

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
Debian 14 rust-net2 0.2.37-1 —
Debian 13 rust-net2 0.2.37-1 —
Debian 12 rust-net2 0.2.37-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS rust-net2 No fix yet —
Ubuntu 20.04 LTS rust-net2 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io net2 < 0.2.36 0.2.36 GHSA-458v-4hrf-g3m4
crates.io net2 >= 0.0.0-0, < 0.2.36 0.2.36 RUSTSEC-2020-0078
crates.io socket2 < 0.3.16 0.3.16 GHSA-458v-4hrf-g3m4
crates.io socket2 >= 0.0.0-0, < 0.3.16 0.3.16 RUSTSEC-2020-0079

References