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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-08-11T22:45:20.000Z
- Modified: 2026-10-12T18:00:07.409Z
- Also known as: GHSA-qx2v-8332-m4fv, RUSTSEC-2025-0047
- Weaknesses: CWE-119
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tokio-rs slab: >= 0.4.10, < 0.4.11
- slab (crates.io): from 0.4.10 before 0.4.11

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv> (web)
- <https://github.com/tokio-rs/slab/pull/152> (web)
- <https://github.com/tokio-rs/slab/commit/2d65c514bc964b192bab212ddf3c1fcea4ae96b8> (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> (advisory, web)
- <https://crates.io/crates/slab> (package)

## Sources

- CVE List: [CVE-2025-55159](https://www.cve.org/CVERecord?id=CVE-2025-55159), CVE Terms of Use, modified 2025-08-12
- GitHub Advisory Database: [GHSA-qx2v-8332-m4fv](https://github.com/advisories/GHSA-qx2v-8332-m4fv), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0047](https://rustsec.org/advisories/RUSTSEC-2025-0047.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2025-55159](https://nvd.nist.gov/vuln/detail/CVE-2025-55159), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-55159 · Whole record: https://cve.day/CVE-2025-55159.json · Rebuilt by cve.day 2026-11-25T22:59:02.288Z
