Intel

AIKIDO-2026-88857

mio is vulnerable to Use-After-Free

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 15, 2026
October 15, 2026

62

CVE Score

Medium

Use-After-Free

Are you affected? Scan for Free

TL;DR

mio's Windows named pipe backend submits overlapped ReadFile/WriteFile operations and then calls GetOverlappedResult to check their outcome. When that call reports anything other than ERROR_IO_INCOMPLETE, the code returns an error even though the operation was already submitted and Windows has queued a completion packet, such as when the other end of the pipe disconnects. schedule_read and schedule_write reserve the pipe state with mem::forget only when submission succeeds, so this premature error lets the completion callback free that state while the caller still uses it, causing a use-after-free. The fix distinguishes submitted operations from ones that never queued and returns Ok(None) for submitted operations so their state stays alive until the real completion arrives.

How do I fix this?

Upgrade the mio library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use Windows named pipes through mio::windows::NamedPipe, including through Tokio.

Package

Versions

0.7.2 - 1.2.3

Fixed in 1.2.4

Background info

mio is vulnerable to Use-After-Free in versions 0.7.2 - 1.2.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea