Advisory

GHSA-qx2v-8332-m4fv

Also known as: CVE-2025-55159, RUSTSEC-2025-0047

Summary

slab allows 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

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-08-11 22:45 UTC
Modified
2026-09-10 03:50 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences