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

Published Aug 11, 2025
·
Updated

Impact

The getdisjointmut 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 getdisjointmut 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

Other sources

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

Microsoft

slab is a pre-allocated storage for a uniform data type. In version 0.4.10, the getdisjointmut 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 getdisjointmut with indices that might be beyond the slab's actual length.

NVD

Affected Software

4 affected componentsFixes available
Slab slab
rust/slab=0.4.10
0.4.11
Microsoft azl3 rust 1.90.0-4
Microsoft azl3 rust 1.90.0-3

Event History

Aug 11, 2025
Advisory Published
via GitHub·10:45 PM
Data Sourced
via GitHub·10:45 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Jan 21, 2026
Data Sourced
via Microsoft·09:05 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·09:05 AM
Affected Software
Updated
via Microsoft·09:05 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-55159?

CVE-2025-55159 is classified as a vulnerability that can lead to undefined behavior or potential crashes.

2

How do I fix CVE-2025-55159?

You can fix CVE-2025-55159 by upgrading to slab version 0.4.11 or later.

3

What is the impact of CVE-2025-55159?

The impact of CVE-2025-55159 is that it may allow access to uninitialized memory due to incorrect index checks.

4

Which versions of slab are affected by CVE-2025-55159?

CVE-2025-55159 affects slab version 0.4.10.

5

What method in slab is associated with CVE-2025-55159?

The vulnerability is associated with the `get_disjoint_mut` method in slab.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203