PT-2020-17548

CVE-2020-35916

·

تاريخ النشر

2020-11-12

·

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

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 image crate versions prior to 0.23.12
Description The issue arises from constructing a mutable reference to a struct by dereferencing a pointer obtained from slice::as ptr, which performs an implicit reborrow as an immutable shared reference and does not allow writing through the derived pointer. Instead, slice::as mut ptr should have been called on the mutable slice argument. There is no evidence of miscompilation caused by this bug, and further investigation suggests that the unoptimized generated LLVM IR does not contain any undefined behavior itself, effectively mitigating further effects.
Recommendations For image crate versions prior to 0.23.12, update to version 0.23.12 or later to resolve the issue. As a temporary workaround, consider using slice::as mut ptr instead of slice::as ptr when constructing a mutable reference to a struct from a mutable slice argument.
قابلية الاستغلال
استغلال
إصلاح
التأثيرات
المورّدون
المنتجات المتأثرة
تصنيف نقاط الضعف
المعرّفات ذات الصلة
GHSA-9WGH-VJJ7-7433
RUSTSEC-2020-0073
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾