PT-2020-17551
CVE-2020-35919
·
تاريخ النشر
2020-11-06
·
تاريخ التحديث
2022-05-24
الوصف من
CVSS 3.1
5.5
متوسطةالمقاييسAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
net2 crate versions prior to 0.2.36
Description
The issue arises from the net2 crate's assumption that
std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. This assumption leads to the crate simply casting pointers to convert socket addresses to the system representation. However, the standard library does not guarantee a specific memory layout, which could result in invalid memory access if the library's implementation changes. No warnings or errors will be emitted once the change occurs.Recommendations
For net2 crate versions prior to 0.2.36, update to version 0.2.36 or later to resolve the issue. As a temporary workaround, consider avoiding the use of
std::net::SocketAddrV4 and std::net::SocketAddrV6 until the update is applied. وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾