PT-2020-17536

CVE-2020-35904

·

تاريخ النشر

2020-06-26

·

تاريخ التحديث

2021-08-25

الوصف من

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 crossbeam-channel versions prior to 0.4.4
Description An issue was discovered in the crossbeam-channel crate for Rust. It has incorrect expectations about the relationship between the memory allocation and how many iterator elements there are. The affected version of this crate's bounded channel incorrectly assumes that Vec::from iter has allocated capacity that same as the number of iterator elements. Vec::from iter does not actually guarantee that and may allocate extra memory. The destructor of the bounded channel reconstructs Vec from the raw pointer based on the incorrect assumptions described above. This is unsound and causing deallocation with the incorrect capacity when Vec::from iter has allocated different sizes with the number of iterator elements.
Recommendations To resolve the issue, upgrade to crossbeam-channel version 0.4.4. As a temporary workaround, consider avoiding the use of the bounded channel until a patch is applied. Restrict access to the bounded channel to minimize the risk of exploitation. Avoid using Vec::from iter in the affected bounded channel until the issue is resolved.
قابلية الاستغلال
استغلال
إصلاح
التأثيرات
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
GHSA-M8H8-V6JH-C762
GHSA-V5M7-53CV-F3HX
RUSTSEC-2020-0052
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾