GHSA-QX2V-8332-M4FV
Vulnerability from github – Published: 2025-08-11 22:45 – Updated: 2025-08-12 13:17
VLAI?
Summary
slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check
Details
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
Severity ?
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "slab"
},
"ranges": [
{
"events": [
{
"introduced": "0.4.10"
},
{
"fixed": "0.4.11"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.4.10"
]
}
],
"aliases": [
"CVE-2025-55159"
],
"database_specific": {
"cwe_ids": [
"CWE-119"
],
"github_reviewed": true,
"github_reviewed_at": "2025-08-11T22:45:20Z",
"nvd_published_at": "2025-08-11T23:15:28Z",
"severity": "MODERATE"
},
"details": "### Impact\n\nThe `get_disjoint_mut` method in slab v0.4.10 incorrectly checked if indices were within the slab\u0027s capacity instead of its length, allowing access to uninitialized memory. This could lead to undefined behavior or potential crashes.\n\n### Patches\n\nThis has been fixed in slab v0.4.11.\n\n### Workarounds\n\nAvoid using `get_disjoint_mut` with indices that might be beyond the slab\u0027s actual length, or upgrade to v0.4.11 or later.\n\n### References\n\n- [https://github.com/tokio-rs/slab/pull/152](https://github.com/tokio-rs/slab/pull/152)",
"id": "GHSA-qx2v-8332-m4fv",
"modified": "2025-08-12T13:17:01Z",
"published": "2025-08-11T22:45:20Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-55159"
},
{
"type": "WEB",
"url": "https://github.com/tokio-rs/slab/pull/152"
},
{
"type": "WEB",
"url": "https://github.com/tokio-rs/slab/commit/2d65c514bc964b192bab212ddf3c1fcea4ae96b8"
},
{
"type": "PACKAGE",
"url": "https://github.com/tokio-rs/slab"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0047.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…