Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. mio
  4. ›
  5. CVE-2024-27308

CVE-2024-27308: Mio's tokens for named pipes may be delivered after deregistration

March 4, 2024 (updated March 6, 2024)

When using named pipes on Windows, mio will under some circumstances return invalid tokens that correspond to named pipes that have already been deregistered from the mio registry. The impact of this vulnerability depends on how mio is used. For some applications, invalid tokens may be ignored or cause a warning or a crash. On the other hand, for applications that store pointers in the tokens, this vulnerability may result in a use-after-free.

For users of Tokio, this vulnerability is serious and can result in a use-after-free in Tokio.

The vulnerability is Windows-specific, and can only happen if you are using named pipes. Other IO resources are not affected.

References

  • github.com/advisories/GHSA-r8w9-5wcg-vfj7
  • github.com/tokio-rs/mio
  • github.com/tokio-rs/mio/commit/90d4fe00df870acd3d38f3dc4face9aacab8fbb9
  • github.com/tokio-rs/mio/pull/1760
  • github.com/tokio-rs/mio/security/advisories/GHSA-r8w9-5wcg-vfj7
  • github.com/tokio-rs/tokio/issues/6369
  • nvd.nist.gov/vuln/detail/CVE-2024-27308

Code Behaviors & Features

Detect and mitigate CVE-2024-27308 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.7.2 before 0.8.11

Fixed versions

  • 0.8.11

Solution

Upgrade to version 0.8.11 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-416: Use After Free
  • CWE-672: Operation on a Resource after Expiration or Release

Source file

cargo/mio/CVE-2024-27308.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.