CVE catalog

CVE-2024-43806

rust-rustix: CVE-2024-43806

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debianrust-rustixsid1.1.5+ds-1fixed
Debianrust-rustixforky1.1.4+dfsg-1fixed
Debianrust-rustixtrixie0.38.37-4fixed
Debianrust-rustixbookworm0.35.12-1vulnerable
Suserage-encryptionlinux enterprise module for basesystem 15 sp50.10.0+0-150500.3.6.1fixed
Suserage-encryptionlinux enterprise module for basesystem 15 sp60.10.0+0-150500.3.6.1fixed
Opensuserage-encryptionleap 15.50.10.0+0-150500.3.6.1fixed
Opensuserage-encryptionleap 15.60.10.0+0-150500.3.6.1fixed
Opensuserage-encryptiontumbleweed0.10.0+0-3.1fixed
Opensuse389-dstumbleweed3.1.1~git13.a9c7ff9-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrust-rustixsourcesid0.38.21-1not yet assignedNot reportedNot reported
Debianrust-rustixsourceforky0.38.21-1not yet assignedNot reportedNot reported
Debianrust-rustixsourcetrixie0.38.21-1not yet assignedNot reportedNot reported
Debianrust-rustixsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Suserage-encryptionrpmlinux enterprise module for basesystem 15 sp50.10.0+0-150500.3.6.1Not reportedSUSE-SU-2024:3404-1Not reported
Suserage-encryptionrpmlinux enterprise module for basesystem 15 sp60.10.0+0-150500.3.6.1Not reportedSUSE-SU-2024:3404-1Not reported
Opensuserage-encryptionrpmleap 15.50.10.0+0-150500.3.6.1Not reportedSUSE-SU-2024:3404-1Not reported
Opensuserage-encryptionrpmleap 15.60.10.0+0-150500.3.6.1Not reportedSUSE-SU-2024:3404-1Not reported
Opensuserage-encryptionrpmtumbleweed0.10.0+0-3.1Not reportedOPENSUSE-SU-2024:14354-1Not reported
Opensuse389-dsrpmtumbleweed3.1.1~git13.a9c7ff9-1.1Not reportedOPENSUSE-SU-2024:14306-1Not reported

Notes

[bookworm] rust-rustix: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [rust-rustix]

    Details (2)
    • 0.35.12-1 · amd64 · bookworm

      Affected

      dsa · rust-rustix · debian · bookworm; dsa · rust-rustix · debian · 12

    • 0.35.12-1 · arm64 · bookworm

      Affected

      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 · tumbleweed

      Unknown · Fixed: 3.1.1~git13.a9c7ff9-1.1

      Version 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 · tumbleweed

      Unknown · Fixed: 3.1.1~git13.a9c7ff9-1.1

      Version impact unknown

      dsa · 389-ds · opensuse · tumbleweed

  • [lib389]Unknown

    Source package: [389-ds]

    Details (1)
    • 3.2.2+4b41542b2-1.1 · x86_64 · tumbleweed

      Unknown · Fixed: 3.1.1~git13.a9c7ff9-1.1

      Version impact unknown

      dsa · 389-ds · opensuse · tumbleweed

  • [libsvrcore0]Unknown

    Source package: [389-ds]

    Details (1)
    • 3.2.2+4b41542b2-1.1 · x86_64 · tumbleweed

      Unknown · Fixed: 3.1.1~git13.a9c7ff9-1.1

      Version impact unknown

      dsa · 389-ds · opensuse · tumbleweed

  • Source package: [rage-encryption]

    Details (1)
    • 0.11.1+0-3.6 · noarch · tumbleweed

      Unknown · Fixed: 0.10.0+0-3.1

      Version impact unknown

      dsa · rage-encryption · opensuse · tumbleweed

  • Source package: [rage-encryption]

    Details (1)
    • 0.11.1+0-3.6 · noarch · tumbleweed

      Unknown · Fixed: 0.10.0+0-3.1

      Version impact unknown

      dsa · rage-encryption · opensuse · tumbleweed

  • Source package: [rage-encryption]

    Details (1)
    • 0.11.1+0-3.6 · noarch · tumbleweed

      Unknown · Fixed: 0.10.0+0-3.1

      Version impact unknown

      dsa · rage-encryption · opensuse · tumbleweed

  • [389-ds]Fixed

    Source package: [389-ds]

    Details (1)
    • 3.2.2+4b41542b2-1.1 · x86_64 · tumbleweed

      Fixed · Fixed: 3.1.1~git13.a9c7ff9-1.1

      dsa · 389-ds · opensuse · tumbleweed

  • Source package: [rage-encryption]

    Details (1)
    • 0.11.1+0-3.6 · x86_64 · tumbleweed

      Fixed · Fixed: 0.10.0+0-3.1

      dsa · rage-encryption · opensuse · tumbleweed

[Debian 13 (Trixie)]

  • Source package: [rust-rustix]

    Details (2)
    • 0.38.37-4 · amd64 · trixie

      Fixed · Fixed: 0.38.21-1

      dsa · rust-rustix · debian · 13

    • 0.38.37-4 · arm64 · trixie

      Fixed · Fixed: 0.38.21-1

      dsa · rust-rustix · debian · 13

Observed:

References