rust-rustix — security advisory
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 m
- Products
- rust-rustix
- Affected versions
- 0.37.20-2, 0.38.25-1, 0.38.30-1, 0.38.37-1, 0.38.37-2, 0.38.37-3, 0.38.37-4, 1.1.2-1, 1.1.2-2, 1.1.3-1, 1.1.4+dfsg-1
- Fixed versions
- Not specified
- CVEs
- CVE-2024-43806
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:14 UTC · Revision 1
Source evidence
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 m
osv:UBUNTU-CVE-2024-43806
rust-rustix
Fixed versions: Not specified
rust-rustix
Fixed versions: Not specified
rust-rustix
Fixed versions: Not specified
rust-rustix
Fixed versions: Not specified
Complete source record
{
"id": "29656f71296086e346e62d1feb4dd26f2201f5d26af046d32af639ba6debf497",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-43806",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-43806",
"summary": "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 m",
"evidence": "osv:UBUNTU-CVE-2024-43806",
"products": [
{
"name": {
"value": "rust-rustix",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.37.20-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.38.25-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.38.30-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-rustix",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.38.37-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.38.37-2",
"evidence": "/affected/1/versions"
},
{
"value": "0.38.37-3",
"evidence": "/affected/1/versions"
},
{
"value": "0.38.37-4",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rust-rustix",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.3-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.1.4+dfsg-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rust-rustix",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.38.37-4",
"evidence": "/affected/3/versions"
},
{
"value": "1.1.2-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.1.2-2",
"evidence": "/affected/3/versions"
},
{
"value": "1.1.3-1",
"evidence": "/affected/3/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2024-43806",
"aliases": [
"UBUNTU-CVE-2024-43806"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-rustix",
"purl": "pkg:deb/ubuntu/rust-rustix?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.37.20-2",
"0.38.25-1",
"0.38.30-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43806.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-rustix-dev",
"binary_version": "0.38.30-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-rustix",
"purl": "pkg:deb/ubuntu/rust-rustix?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.38.37-1",
"0.38.37-2",
"0.38.37-3",
"0.38.37-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43806.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-rustix-dev",
"binary_version": "0.38.37-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-rustix",
"purl": "pkg:deb/ubuntu/rust-rustix?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.1.3-1",
"1.1.4+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43806.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-rustix-dev",
"binary_version": "1.1.4+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-rustix",
"purl": "pkg:deb/ubuntu/rust-rustix?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.38.37-4",
"1.1.2-1",
"1.1.2-2",
"1.1.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43806.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-rustix-dev",
"binary_version": "1.1.3-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:45.227501695Z",
"provider": "osv",
"upstream": [
"CVE-2024-43806"
],
"references": [
"https://ubuntu.com/security/CVE-2024-43806",
"https://www.cve.org/CVERecord?id=CVE-2024-43806",
"https://github.com/bytecodealliance/rustix/security/advisories/GHSA-c827-hfw6-qwvm",
"https://github.com/imsnif/bandwhich/issues/284"
]
},
"related_cves": [
{
"value": "CVE-2024-43806",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356150,
"published_at": "2024-08-26T19:15:00+00:00"
}