CVE-2025-55159

slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check

Published Aug 11, 2025 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-24190 slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check
Github GHSA Github GHSA GHSA-qx2v-8332-m4fv slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Tokio
Tokio slab
Vendors & Products Tokio
Tokio slab
Type Values Removed Values Added
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.
Title slab allows out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check
Weaknesses CWE-119
References
Metrics cvssV4_0

{'score': 5.1, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 12, 2025, 2:07 PM
Reserved
Aug 7, 2025, 6:27 PM
Status
Deferred
Published
Aug 11, 2025, 11:15 PM
Modified
Jun 17, 2026, 9:41 AM
Severity
Moderate
Public date
Aug 11, 2025, 11:00 PM