Skip to content

CVE-2025-55159 slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check

MediumCVSS 5.1 EPSS 0.20%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

slab is a pre-allocated storage for a uniform data type. In version 0.4.10, the get_disjoint_mut method 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. This has been fixed in slab 0.4.11. A workaround for this issue involves to avoid using get_disjoint_mut with indices that might be beyond the slab's actual length.

Upgrade path

7 packages: 1 fixed, 1 partially fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-slab(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/rust-slab(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/rust-slab(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/rust-slab(Ubuntu 26.10) All versions No fix listed No fix yet
azure linux rust(Azure Linux 3.0) < 1.90.0-4; All versions 1.90.0-4 Partially fixed
crates.io slab(crates.io) = 0.4.10; >= 0.4.10, < 0.4.11 0.4.11 Fixed
tokio-rs slab = >= 0.4.10, < 0.4.11 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
azure linux rust(Azure Linux:3.0) All versions No fix listed
azure linux rust(Azure Linux:3.0) < 1.90.0-4 1.90.0-4
crates.io slab(crates.io) >= 0.4.10, < 0.4.11 0.4.11
crates.io slab(crates.io) = 0.4.10 No fix listed
tokio-rs slab = >= 0.4.10, < 0.4.11 No fix listed
ubuntu/rust-slab(Ubuntu:22.04) All versions No fix listed
ubuntu/rust-slab(Ubuntu:24.04) All versions No fix listed
ubuntu/rust-slab(Ubuntu:26.04) All versions No fix listed
ubuntu/rust-slab(Ubuntu:26.10) All versions No fix listed

References