CVE-2025-55159
MEDIUM 5.1CVSS 4.0slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check
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.
- Published
- 11 Aug 2025
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-119
- Also known as
- GHSA-qx2v-8332-m4fvRUSTSEC-2025-0047
- Sources
- NVDJSONOSV GHSA-qx2v-8332-m4fvJSONOSV RUSTSEC-2025-0047JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | slab | >= 0.4.10, < 0.4.11 | 0.4.11 |
References
- https://github.com/tokio-rs/slab/commit/2d65c514bc964b192bab212ddf3c1fcea4ae96b8 · WEB
- https://github.com/tokio-rs/slab/pull/152 · WEB
- https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-55159 · ADVISORY
- https://github.com/tokio-rs/slab · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0047.html · WEB, ADVISORY
- https://crates.io/crates/slab · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 11 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Aug 2025)