p PatchFirst

CVE-2025-55159

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

CVSS 5.1 · Medium · EPSS 0.2%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • slabNo fix published
  • rust-slab Ubuntu 20.04 LTSNo fix published
  • rust-slab Ubuntu 22.04 LTSNo fix published
  • rust-slab Ubuntu 24.04 LTSNo fix published
  • and 3 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-slab"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • slab

    Versions
    • >= 0.4.10, < 0.4.11: Affected

    No fix published

  • rust-slab Ubuntu 20.04 LTS

    Versions
    • 0.4.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-slab Ubuntu 22.04 LTS

    Versions
    • 0.4.1-1
    • 0.4.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-slab Ubuntu 24.04 LTS

    Versions
    • 0.4.4-1
    • 0.4.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-slab Ubuntu 25.10

    Versions
    • 0.4.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-slab Ubuntu 26.10

    Versions
    • 0.4.9-1
    • 0.4.12-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-slab Ubuntu 26.04 LTS

    Versions
    • 0.4.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →