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, GHSA-qx2v-8332-m4fv
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
Not rated by the source.
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: RustSec Advisory Database · CC0-1.0