GHSA-c439-chv8-8g2j
`os_socketaddr` invalidly assumes the memory layout of std::net::SocketAddr
The os_socketaddr crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation.
These layout were changed into idiomatic rust types in nightly std. Starting from rustc 1.64 the affected versions of this crate will have undefined behaviour.
What each source reports
GitHub AdvisoriesNo score
`os_socketaddr` invalidly assumes the memory layout of std::net::SocketAddr
The os_socketaddr crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation.
These layout were changed into idiomatic rust types in nightly std. Starting from rustc 1.64 the affected versions of this crate will have undefined behaviour.
- Record
GHSA-c439-chv8-8g2j- Updated
- 2026-11-02
OSVNo score
`os_socketaddr` invalidly assumes the memory layout of std::net::SocketAddr
The os_socketaddr crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation.
These layout were changed into idiomatic rust types in nightly std. Starting from rustc 1.64 the affected versions of this crate will have undefined behaviour.
- Record
GHSA-c439-chv8-8g2j- Updated
- 2026-11-02
OSVRUSTSEC-2022-0052No score
`os_socketaddr` invalidly assumes the memory layout of std::net::SocketAddr
The os_socketaddr crate has assumed
std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C
representation sockaddr. It has simply casted the pointers to convert the socket addresses to the
system representation.
These layout were changed into idiomatic rust types
in nightly std. Starting from rustc 1.64 the affected versions of this crate will have undefined
behaviour.
- Record
RUSTSEC-2022-0052- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
os_socketaddrcrates.io | before 0.2.2 | 0.2.2 |
os_socketaddrcrates.io | 0.0.0-0 up to 0.2.2 | 0.2.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
GHSA-c439-chv8-8g2j is a vulnerability with no CVSS score yet in os_socketaddr, published August 26, 2022. No source lists public exploit code. Fixed in os_socketaddr 0.2.2.