
CVE catalog
CVE-2024-43806
rust-rustix: CVE-2024-43806
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.48% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | rust-rustix | sid | 1.1.5+ds-1 | fixed |
| Debian | rust-rustix | forky | 1.1.4+dfsg-1 | fixed |
| Debian | rust-rustix | trixie | 0.38.37-4 | fixed |
| Debian | rust-rustix | bookworm | 0.35.12-1 | vulnerable |
| Suse | rage-encryption | linux enterprise module for basesystem 15 sp5 | 0.10.0+0-150500.3.6.1 | fixed |
| Suse | rage-encryption | linux enterprise module for basesystem 15 sp6 | 0.10.0+0-150500.3.6.1 | fixed |
| Opensuse | rage-encryption | leap 15.5 | 0.10.0+0-150500.3.6.1 | fixed |
| Opensuse | rage-encryption | leap 15.6 | 0.10.0+0-150500.3.6.1 | fixed |
| Opensuse | rage-encryption | tumbleweed | 0.10.0+0-3.1 | fixed |
| Opensuse | 389-ds | tumbleweed | 3.1.1~git13.a9c7ff9-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | rust-rustix | source | sid | 0.38.21-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-rustix | source | forky | 0.38.21-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-rustix | source | trixie | 0.38.21-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-rustix | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Suse | rage-encryption | rpm | linux enterprise module for basesystem 15 sp5 | 0.10.0+0-150500.3.6.1 | Not reported | SUSE-SU-2024:3404-1 | Not reported |
| Suse | rage-encryption | rpm | linux enterprise module for basesystem 15 sp6 | 0.10.0+0-150500.3.6.1 | Not reported | SUSE-SU-2024:3404-1 | Not reported |
| Opensuse | rage-encryption | rpm | leap 15.5 | 0.10.0+0-150500.3.6.1 | Not reported | SUSE-SU-2024:3404-1 | Not reported |
| Opensuse | rage-encryption | rpm | leap 15.6 | 0.10.0+0-150500.3.6.1 | Not reported | SUSE-SU-2024:3404-1 | Not reported |
| Opensuse | rage-encryption | rpm | tumbleweed | 0.10.0+0-3.1 | Not reported | OPENSUSE-SU-2024:14354-1 | Not reported |
| Opensuse | 389-ds | rpm | tumbleweed | 3.1.1~git13.a9c7ff9-1.1 | Not reported | OPENSUSE-SU-2024:14306-1 | Not reported |
Notes
[bookworm] rust-rustix: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [librust-rustix-dev]Affected
Source package: [rust-rustix]
Details (2)
0.35.12-1· amd64 · bookwormAffected
dsa · rust-rustix · debian · bookworm; dsa · rust-rustix · debian · 12
0.35.12-1· arm64 · bookwormAffected
dsa · rust-rustix · debian · bookworm; dsa · rust-rustix · debian · 12
[openSUSE Tumbleweed]
- [389-ds-devel]Unknown
Source package: [389-ds]
Details (1)
3.2.2+4b41542b2-1.1· x86_64 · tumbleweedUnknown · Fixed:
3.1.1~git13.a9c7ff9-1.1Version impact unknown
dsa · 389-ds · opensuse · tumbleweed
- [389-ds-snmp]Unknown
Source package: [389-ds]
Details (1)
3.2.2+4b41542b2-1.1· x86_64 · tumbleweedUnknown · Fixed:
3.1.1~git13.a9c7ff9-1.1Version impact unknown
dsa · 389-ds · opensuse · tumbleweed
- [lib389]Unknown
Source package: [389-ds]
Details (1)
3.2.2+4b41542b2-1.1· x86_64 · tumbleweedUnknown · Fixed:
3.1.1~git13.a9c7ff9-1.1Version impact unknown
dsa · 389-ds · opensuse · tumbleweed
- [libsvrcore0]Unknown
Source package: [389-ds]
Details (1)
3.2.2+4b41542b2-1.1· x86_64 · tumbleweedUnknown · Fixed:
3.1.1~git13.a9c7ff9-1.1Version impact unknown
dsa · 389-ds · opensuse · tumbleweed
- [rage-encryption-bash-completion]Unknown
Source package: [rage-encryption]
Details (1)
0.11.1+0-3.6· noarch · tumbleweedUnknown · Fixed:
0.10.0+0-3.1Version impact unknown
dsa · rage-encryption · opensuse · tumbleweed
- [rage-encryption-fish-completion]Unknown
Source package: [rage-encryption]
Details (1)
0.11.1+0-3.6· noarch · tumbleweedUnknown · Fixed:
0.10.0+0-3.1Version impact unknown
dsa · rage-encryption · opensuse · tumbleweed
- [rage-encryption-zsh-completion]Unknown
Source package: [rage-encryption]
Details (1)
0.11.1+0-3.6· noarch · tumbleweedUnknown · Fixed:
0.10.0+0-3.1Version impact unknown
dsa · rage-encryption · opensuse · tumbleweed
- [389-ds]Fixed
Source package: [389-ds]
Details (1)
3.2.2+4b41542b2-1.1· x86_64 · tumbleweedFixed · Fixed:
3.1.1~git13.a9c7ff9-1.1dsa · 389-ds · opensuse · tumbleweed
- [rage-encryption]Fixed
Source package: [rage-encryption]
Details (1)
0.11.1+0-3.6· x86_64 · tumbleweedFixed · Fixed:
0.10.0+0-3.1dsa · rage-encryption · opensuse · tumbleweed
[Debian 13 (Trixie)]
- [librust-rustix-dev]Fixed
Source package: [rust-rustix]
Details (2)
0.38.37-4· amd64 · trixieFixed · Fixed:
0.38.21-1dsa · rust-rustix · debian · 13
0.38.37-4· arm64 · trixieFixed · Fixed:
0.38.21-1dsa · rust-rustix · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_3404-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-43806]
- [https://osv.dev/vulnerability/SUSE-SU-2024:3404-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14306-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14354-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-43806]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]