---
id: CVE-2025-55159
aliases:
  - RUSTSEC-2025-0047
  - GHSA-qx2v-8332-m4fv
title: Out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check
summary: Out-of-bounds access in `get_disjoint_mut` due to incorrect bounds check
severity: none
vendor: slab
product: slab
ecosystem: rust
affected:
  - 'slab >= 0.4.10, < 0.4.11'
patched:
  - slab 0.4.11
published: '2025-08-12'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T18:00:07.409780135Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2025-0047'
references:
  - url: 'https://crates.io/crates/slab'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2025-0047.html'
  - url: 'https://github.com/tokio-rs/slab/pull/152'
  - url: 'https://github.com/tokio-rs/slab/pull/152'
tags:
  - osv
  - rust
epss: 0.00175
epssPercentile: 0.06364
ingestedAt: '2026-10-13T11:45:30.178Z'
---

## Overview

## 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
* [https://github.com/tokio-rs/slab/pull/152](https://github.com/tokio-rs/slab/pull/152)

## Affected packages

- `slab >= 0.4.10, < 0.4.11`

## Remediation

Upgrade to a patched release:

- `slab 0.4.11`
