PT-2020-17525 · Rust · Simple-Slab

Published

2020-09-03

·

Updated

2021-08-25

·

CVE-2020-35893

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions simple-slab crate versions prior to 0.3.3
Description The issue concerns the simple-slab crate for Rust, where two main problems have been identified. Firstly, the remove() function has an off-by-one error, leading to memory leakage and the dropping of uninitialized memory. Secondly, the index() function allows for out-of-bounds read access due to a lack of boundary checking. This can result in accessing memory outside the intended boundaries, potentially causing issues.
Recommendations For versions prior to 0.3.3, update to version 0.3.3 or later to resolve the issue. As a temporary workaround, consider disabling the remove() and index() functions until a patch is available. Restrict access to the Slab module to minimize the risk of exploitation. Avoid using the Slab::index() and Slab::remove() functions in critical operations until the issue is resolved.

Fix

Memory Leak

Use of Uninitialized Resource

Out of bounds Read

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-35893
GHSA-438G-FX34-4H9M
GHSA-HQC8-J86X-2764
RUSTSEC-2020-0039

Affected Products

Simple-Slab