Advisory

RUSTSEC-2020-0039

Also known as: CVE-2020-35892, CVE-2020-35893, GHSA-438g-fx34-4h9m, GHSA-hqc8-j86x-2764

Summary

index() allows out-of-bound read and remove() has off-by-one error

Details

Slab::index() does not perform the boundary checking, which leads to out-of-bound read access. Slab::remove() copies an element from an invalid address due to off-by-one error, resulting in memory leakage and uninitialized memory drop.

Severity

Not rated by the source.

Dates

Published
2020-09-03 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

simple-slab

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.3 (semver)

Fixed versions

0.3.3

Fix

  • Fixed version 0.3.3
    cargo update -p simple-slab --precise 0.3.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences