همهٔ گزارش‌ها
متوسط

transpose: Buffer overflow due to integer overflow

متن اصلی

نسخه‌های متأثر

بازه‌ها نیاز به بررسی دارند.

Rust / Cargotranspose
نسخه‌های متأثر
>= 0.1.0, < 0.2.3
نسخهٔ اصلاح‌شده
0.2.3
Rust / Cargotranspose
نسخه‌های متأثر
>=0.0.0-0 <0.2.3
نسخهٔ اصلاح‌شده
0.2.3

بهره‌برداری

CVE-2023-53156

احتمال بهره‌برداری در ۳۰ روز آینده: 0.35%

FIRST EPSS · ۱۴۰۵/۰۸/۲۸

شرح آسیب‌پذیری

Given the function transpose::transpose:

fn transpose<T: Copy>(input: &[T], output: &mut [T], input_width: usize, input_height: usize)

The safety check input_width * input_height == output.len() can fail due to input_width * input_height overflowing in such a way that it equals output.len(). As a result of failing the safety check, memory past the end of output is written to. This only occurs in release mode since * panics on overflow in debug mode.

Exploiting this issue requires the caller to pass input_width and input_height arguments such that multiplying them overflows, and the overflown result equals the lengths of input and output slices.

پیوندها