Skip to content
OpenAdvisories

Description

Rustix is a set of safe Rust bindings to POSIX-ish APIs. When using `rustix::fs::Dir` using the `linux_raw` backend, it's possible for the iterator to "get stuck" when an IO error is encountered. Combined with a memory over-allocation issue in `rustix::fs::Dir::read_more`, this can cause quick and unbounded memory explosion (gigabytes in a few seconds if used on a hot path) and eventually lead to an OOM crash of the application. The symptoms were initially discovered in https://github.com/imsnif/bandwhich/issues/284. That post has lots of details of our investigation. Full details can be read on the GHSA-c827-hfw6-qwvm repo advisory. If a program tries to access a directory with its file descriptor after the file has been unlinked (or any other action that leaves the `Dir` iterator in the stuck state), and the implementation does not break after seeing an error, it can cause a memory explosion. As an example, Linux's various virtual file systems (e.g. `/proc`, `/sys`) can contain directories that spontaneously pop in and out of existence. Attempting to iterate over them using `rustix::fs::Dir` directly or indirectly (e.g. with the `procfs` crate) can trigger this fault condition if the implementation decides to continue on errors. An attacker knowledgeable about the implementation details of a vulnerable target can therefore try to trigger this fault condition via any one or a combination of several available APIs. If successful, the application host will quickly run out of memory, after which the application will likely be terminated by an OOM killer, leading to denial of service. This issue has been addressed in release versions 0.35.15, 0.36.16, 0.37.25, and 0.38.19. Users are advised to upgrade. There are no known workarounds for this issue.

Affected products

VendorProductAffectedFixed
bytecodealliance rustix >= 0.35.11, < 0.35.15, >= 0.36.0, < 0.36.16, >= 0.37.0, < 0.37.25, >= 0.38.0, < 0.38.19 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-rustix 0.38.21-1 —
Debian 13 rust-rustix 0.38.21-1 —
Debian 12 rust-rustix No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-rustix No fix yet —
Ubuntu 26.04 LTS rust-rustix No fix yet —
Ubuntu 25.10 rust-rustix No fix yet —
Ubuntu 24.04 LTS rust-rustix No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 sccache 0.16.0~0-150600.10.11.1 SUSE-SU-2026:3022-1
SLES 15 SP6 rage-encryption 0.10.0+0-150500.3.6.1 SUSE-SU-2024:3404-1
SLES 15 SP6 sccache 0.16.0~0-150600.10.11.1 SUSE-SU-2026:3022-1
SLES 15 SP5 rage-encryption 0.10.0+0-150500.3.6.1 SUSE-SU-2024:3404-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 librsvg 2.60.2-160000.1.1 SUSE-SU-2026:20910-1
SLES for SAP 15 SP6 sccache 0.16.0~0-150600.10.11.1 SUSE-SU-2026:3022-1
SLES 16.0 librsvg 2.60.2-160000.1.1 SUSE-SU-2026:20910-1
SLE Micro 6.2 librsvg 2.60.2-160000.1.1 SUSE-SU-2026:20755-1
SLE Micro 6.1 rust-keylime 0.2.8+12-slfo.1.1_1.1 SUSE-SU-2025:20858-1
SLE Micro 6.0 rust-keylime 0.2.6+13-1.1 SUSE-SU-2025:20057-1
SLE Micro 5.5 librsvg 2.52.12-150400.3.9.1 SUSE-SU-2025:4411-1
SLE Micro 5.5 rust-keylime 0.2.7+141-150500.3.5.1 SUSE-SU-2025:02811-1
SLE Micro 5.4 librsvg 2.52.12-150400.3.9.1 SUSE-SU-2025:4411-1
SLE Micro 5.4 rust-keylime 0.2.7+141-150400.3.5.1 SUSE-SU-2025:02810-1
SLE Micro 5.3 librsvg 2.52.12-150400.3.9.1 SUSE-SU-2025:4411-1
SLE Micro 5.3 rust-keylime 0.2.7+141-150400.3.7.1 SUSE-SU-2025:02809-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed 389-ds 3.1.1~git13.a9c7ff9-1.1 openSUSE-SU-2024:14306-1
openSUSE Tumbleweed rage-encryption 0.10.0+0-3.1 openSUSE-SU-2024:14354-1
openSUSE Tumbleweed rust-keylime 0.2.7+70-2.1 openSUSE-SU-2025:15294-1
openSUSE Leap 16.0 librsvg 2.60.2-160000.1.1 openSUSE-SU-2026:20396-1
openSUSE Leap 15.6 rage-encryption 0.10.0+0-150500.3.6.1 SUSE-SU-2024:3404-1
openSUSE Leap 15.5 rage-encryption 0.10.0+0-150500.3.6.1 SUSE-SU-2024:3404-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 flux 0.194.5-4 —
Azure Linux 3 kata-containers +1 3.2.0.azl4-1 —
Azure Linux 3 virtiofsd 1.8.0-3 —
Azure Linux 2 (CBL-Mariner) cloud-hypervisor 32.0-7 —
Azure Linux 2 (CBL-Mariner) kata-containers-cc 3.2.0.azl2-7 —
Azure Linux 2 (CBL-Mariner) rust 1.72.0-9 —
Azure Linux 2 (CBL-Mariner) virtiofsd 1.8.0-3 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling bat +1 0.24.0-r2 —
Wolfi rolling berg 0.3.5-r2 —
Wolfi rolling pgcat 1.2.0-r1 —
Wolfi rolling zed 0.147.2-r0 —
Wolfi rolling zellij +3 0.42.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io rustix >= 0.35.11, < 0.35.15 0.35.15 GHSA-c827-hfw6-qwvm
crates.io rustix >= 0.36.0, < 0.36.16 0.36.16 GHSA-c827-hfw6-qwvm
crates.io rustix >= 0.37.0, < 0.37.25 0.37.25 GHSA-c827-hfw6-qwvm
crates.io rustix >= 0.38.0, < 0.38.19 0.38.19 GHSA-c827-hfw6-qwvm

Advisories 14

References