slab
Affected
- introduced
0.4.10, fixed0.4.11(semver)
Fixed versions
0.4.11
Fix
- Fixed version
0.4.11cargo update -p slab --precise 0.4.11
Advisory
Also known as: CVE-2025-55159, RUSTSEC-2025-0047
slab allows out-of-bounds access in get_disjoint_mut due to incorrect bounds check
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
Medium Basis: The source's own band: MODERATE
0.4.10, fixed 0.4.11 (semver)0.4.11
0.4.11cargo update -p slab --precise 0.4.11Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0