cve.bz

CVE-2024-43806 bytecodealliance rustix: Uncontrolled Resource Consumption

6.5 mediumEPSS 0.5%Fix available

Medium (6.5) in bytecodealliance rustix. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in rustix 0.35.15, 0.36.16, 0.37.25.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-08-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-43806 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-43806?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-43806?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-43806 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c827-hfw6-qwvmcrates.iorustix>=0.35.11 <0.35.150.35.15
GHSA-c827-hfw6-qwvmcrates.iorustix>=0.36.0 <0.36.160.36.16
GHSA-c827-hfw6-qwvmcrates.iorustix>=0.37.0 <0.37.250.37.25
GHSA-c827-hfw6-qwvmcrates.iorustix>=0.38.0 <0.38.190.38.19

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12rust-rustixno fix listedDEBIAN-CVE-2024-43806
Debian13, 14rust-rustix0.38.21-1DEBIAN-CVE-2024-43806
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morerust-rustixno fix listedUBUNTU-CVE-2024-43806
SUSELinux Enterprise Micro 5.3rust-keylime0.2.7+141-150400.3.7.1SUSE-SU-2025:02809-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5librsvg2.52.12-150400.3.9.1SUSE-SU-2025:4411-1
SUSELinux Enterprise Micro 5.4rust-keylime0.2.7+141-150400.3.5.1SUSE-SU-2025:02810-1
SUSELinux Enterprise Micro 5.5rust-keylime0.2.7+141-150500.3.5.1SUSE-SU-2025:02811-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Basesystem 15 SP6rage-encryption0.10.0+0-150500.3.6.1SUSE-SU-2024:3404-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6sccache0.16.0~0-150600.10.11.1SUSE-SU-2026:3022-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0librsvg2.60.2-160000.1.1SUSE-SU-2026:20910-1
SUSELinux Micro 6.0rust-keylime0.2.6+13-1.1SUSE-SU-2025:20057-1
SUSELinux Micro 6.1rust-keylime0.2.8+12-slfo.1.1_1.1SUSE-SU-2025:20858-1
SUSELinux Micro 6.2librsvg2.60.2-160000.1.1SUSE-SU-2026:20755-1
openSUSELeap 15.5, Leap 15.6rage-encryption0.10.0+0-150500.3.6.1SUSE-SU-2024:3404-1
openSUSELeap 16.0librsvg2.60.2-160000.1.1openSUSE-SU-2026:20396-1
openSUSETumbleweed389-ds3.1.1~git13.a9c7ff9-1.1openSUSE-SU-2024:14306-1
openSUSETumbleweedrage-encryption0.10.0+0-3.1openSUSE-SU-2024:14354-1
openSUSETumbleweedrust-keylime0.2.7+70-2.1openSUSE-SU-2025:15294-1
Azure Linux2cloud-hypervisor32.0-7AZL-48300
Azure Linux2kata-containers-cc3.2.0.azl2-7AZL-48324
Azure Linux2rust1.72.0-9AZL-48304
Azure Linux2virtiofsd1.8.0-3AZL-48318
Azure Linux3flux0.194.5-4AZL-48327
Azure Linux3kata-containers3.2.0.azl4-1AZL-48333
Azure Linux3kata-containers-cc3.2.0.azl4-1AZL-48330
Azure Linux3virtiofsd1.8.0-3AZL-48312

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON