Skip to main content
VulnerabilityPublished Updated

CVE-2024-43806: Rust rustix · Rustix is a set of safe Rust bindings to POSIX-ish APIs

Affects rust-rustixSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.5 Medium.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Aug 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10rust-rustixpkg:deb/ubuntu/rust-rustix?arch=source&distro=stonkingOther threatsAffected
  • =1.1.3-1
  • =1.1.4+dfsg-1
Fixed in–
Ubuntu 26.04 LTSrust-rustixpkg:deb/ubuntu/rust-rustix?arch=source&distro=resoluteOther threatsAffected
  • 0.38.37-4 – 1.1.3-1
4 affected builds
Fixed in–
Ubuntu 25.10rust-rustixpkg:deb/ubuntu/rust-rustix?arch=source&distro=questingOther threatsAffected
  • 0.38.37-1 – 0.38.37-4
4 affected builds
Fixed in–
Ubuntu 24.04 LTSrust-rustixpkg:deb/ubuntu/rust-rustix?arch=source&distro=nobleOther threatsAffected
  • =0.37.20-2
  • =0.38.25-1
  • =0.38.30-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…