Advisory

RUSTSEC-2025-0047

Also known as: CVE-2025-55159, GHSA-qx2v-8332-m4fv

Summary

Out-of-bounds access in get_disjoint_mut due to incorrect bounds check

Details

Impact
The get_disjoint_mut method in slab v0.4.10 incorrectly checked if indices were within the slab's capacity instead of its length, allowing access to uninitialized memory. This could lead to undefined behavior or potential crashes.

Patches
This has been fixed in slab v0.4.11.

Workarounds
Avoid using get_disjoint_mut with indices that might be beyond the slab's actual length, or upgrade to v0.4.11 or later.

References

Severity

Not rated by the source.

Dates

Published
2025-08-12 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

slab

crates.io · All systems

Affected

  • introduced 0.4.10, fixed 0.4.11 (semver)

Fixed versions

0.4.11

Fix

  • Fixed version 0.4.11
    cargo update -p slab --precise 0.4.11

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