CVE-2024-27308: Mio's tokens for named pipes may be delivered after deregistration
(updated )
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
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 →