Every CVESearch/Get API key

GHSA-c439-chv8-8g2j

`os_socketaddr` invalidly assumes the memory layout of std::net::SocketAddr

No scoreFix available

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

Affected packages
PackageAffectedFixed
os_socketaddr
crates.io
before 0.2.2
0.2.2
os_socketaddr
crates.io
0.0.0-0 up to 0.2.2
0.2.2

History

History
RecordedChangedSources
first indexedGitHub 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.

References

MoveEnter Open