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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/tokio-rs/slab/pull/152 patch
- https://github.com/tokio-rs/slab/commit/2d65c514bc964b192bab212ddf3c1fcea4ae96b8 patch
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2025-55159 vendor-advisory