Application crash via unbounded directory buffer growth
Published Aug 26, 2024 · Updated Aug 26, 2024
Denial of service in Rustix allows remote authenticated users to crash applications through error-triggering Linux directory iteration. The rustix::fs::Dir iterator fails to stop after an I/O error, while Dir::read_more grows its buffer on every retry until memory is exhausted. Exploitation requires the linux_raw backend, a stuck directory state, and calling code that continues after iterator errors; the host can invoke its OOM killer.
Summary
What happened
Denial of service in Rustix allows remote authenticated users to crash applications through error-triggering Linux directory iteration. The rustix::fs::Dir iterator fails to stop after an I/O error, while Dir::read_more grows its buffer on every retry until memory is exhausted. Exploitation requires the linux_raw backend, a stuck directory state, and calling code that continues after iterator errors; the host can invoke its OOM killer.
The record
- CVE
- CVE-2024-43806
- Published
- Aug 26, 2024
- Updated
- Aug 26, 2024
- Vendor
- Bytecode Alliance
- Product
- Rustix
- Classifications
- CWE-400, T1499.004
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 26, 2024CVE publishedPublication date reported by the CVE source.
- Aug 26, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 0.35.11, < 0.35.15
- Affected versionversion=0.35.11 <0.35.15
- Affected versionversion=>= 0.36.0, < 0.36.16
- Affected versionversion=0.36.0 <0.36.16
- Affected versionversion=>= 0.37.0, < 0.37.25
- Affected versionversion=0.37.0 <0.37.25
- Affected versionversion=>= 0.38.0, < 0.38.19
- Affected versionversion=0.38.0 <0.38.19
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream rustix::fs::Dir memory-exhaustion PoCproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo