rust-slab — security advisory
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.
- Products
- rust-slab
- Affected versions
- 0.4.1-1, 0.4.12-1, 0.4.4-1, 0.4.9-1
- Fixed versions
- Not specified
- CVEs
- CVE-2025-55159
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:33 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2025-55159
rust-slab
Fixed versions: Not specified
rust-slab
Fixed versions: Not specified
rust-slab
Fixed versions: Not specified
rust-slab
Fixed versions: Not specified
rust-slab
Fixed versions: Not specified
rust-slab
Fixed versions: Not specified
Complete source record
{
"id": "54f8fe11e62200c2d71150aab48065ba4293ddc50d501a44727f46566979bfb2",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-55159",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-55159",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2025-55159",
"products": [
{
"name": {
"value": "rust-slab",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-slab",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.4.4-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rust-slab",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.4-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.4.9-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rust-slab",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.9-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "rust-slab",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.9-1",
"evidence": "/affected/4/versions"
},
{
"value": "0.4.12-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "rust-slab",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.4.9-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2025-55159",
"aliases": [
"UBUNTU-CVE-2025-55159"
],
"metrics": [
{
"type": "CVSS_V4",
"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": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-slab",
"purl": "pkg:deb/ubuntu/rust-slab?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.4.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-55159.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-slab-dev",
"binary_version": "0.4.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-slab",
"purl": "pkg:deb/ubuntu/rust-slab?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.4.1-1",
"0.4.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-55159.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-slab-dev",
"binary_version": "0.4.4-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-slab",
"purl": "pkg:deb/ubuntu/rust-slab?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.4.4-1",
"0.4.9-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-55159.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-slab-dev",
"binary_version": "0.4.9-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-slab",
"purl": "pkg:deb/ubuntu/rust-slab?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.4.9-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-55159.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-slab-dev",
"binary_version": "0.4.9-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-slab",
"purl": "pkg:deb/ubuntu/rust-slab?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.4.9-1",
"0.4.12-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-55159.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-slab-dev",
"binary_version": "0.4.12-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-slab",
"purl": "pkg:deb/ubuntu/rust-slab?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.4.9-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-55159.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-slab-dev",
"binary_version": "0.4.9-1"
}
]
}
}
],
"modified": "2026-10-17T12:57:07.932856709Z",
"provider": "osv",
"upstream": [
"CVE-2025-55159"
],
"references": [
"https://ubuntu.com/security/CVE-2025-55159",
"https://www.cve.org/CVERecord?id=CVE-2025-55159",
"https://github.com/tokio-rs/slab/commit/2d65c514bc964b192bab212ddf3c1fcea4ae96b8",
"https://github.com/tokio-rs/slab/pull/152",
"https://github.com/tokio-rs/slab/security/advisories/GHSA-qx2v-8332-m4fv"
]
},
"related_cves": [
{
"value": "CVE-2025-55159",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356763,
"published_at": "2025-08-11T23:15:00+00:00"
}