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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-net2 | 0.2.37-1 | — |
| Debian 13 | rust-net2 | 0.2.37-1 | — |
| Debian 12 | rust-net2 | 0.2.37-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | rust-net2 | No fix yet | — |
| Ubuntu 20.04 LTS | rust-net2 | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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 |