Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-rh4w-94hh-9943

Опубликовано: 24 мая 2022
Источник: github
Github: Прошло ревью
CVSS3: 4.7

Описание

MutexGuard::map can cause a data race in safe code

Affected versions of the crate had a Send/Sync implementation for MappedMutexGuard that only considered variance on T, while MappedMutexGuard dereferenced to U.

This could of led to data races in safe Rust code when a closure used in MutexGuard::map() returns U that is unrelated to T.

The issue was fixed by fixing Send and Sync implementations, and by adding a PhantomData<&'a mut U> marker to the MappedMutexGuard type to tell the compiler that the guard is over U too.

Пакеты

Наименование

futures-util

rust
Затронутые версииВерсия исправления

>= 0.3.2, < 0.3.7

0.3.7

EPSS

Процентиль: 15%
0.0005
Низкий

4.7 Medium

CVSS3

Дефекты

CWE-362

Связанные уязвимости

CVSS3: 4.7
nvd
около 5 лет назад

An issue was discovered in the futures-util crate before 0.3.7 for Rust. MutexGuard::map can cause a data race for certain closure situations (in safe code).

EPSS

Процентиль: 15%
0.0005
Низкий

4.7 Medium

CVSS3

Дефекты

CWE-362