CVE-2020-35922

MEDIUM5.5EPSS 0.07%

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

發布日:2021/8/25修改日:2023/11/8
也稱為:GHSA-pf3p-x6qj-6j7qRUSTSEC-2020-0081

描述

The [`mio`](https://crates.io/crates/mio) 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. The standard library does not say anything about the memory layout, and this will cause invalid memory access if the standard library changes the implementation. No warnings or errors will be emitted once the change happens.

受影響套件(2)

CVSS 分數

來源版本嚴重程度向量
osvCVSS 3.1MEDIUM5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

參考連結(7)