Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

tokio-rs/tokio
master @ 46c8301
6
Fixes
4
CVEs
HIGH
Peak severity
Highlights
Data Race: 3 prior fixes. Scrutinize any change in this area.
src/reactor/poll_evented.rs: most-fixed (1 issue). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Data Race: A race condition occurs when both the sender and receiver concurrently access an underlying UnsafeCell upon channel closure, bypassing Rust's thread-safety guarantees. This can lead to undefined behavior or memory corruption under specific race conditions.
Memory Safety: Passing raw slices to the poll_read interface permits safe code to read uninitialized memory buffers, leading to potential information leaks or crashes. Transitioning to a validated ReadBuf wrapper is required to prevent downstream users from accessing uninitialized memory.
Auth Bypass: The ServerOptions builder for Windows named pipes allowed setting the pipe mode in a way that silently wiped previously configured bits. This behavior erased the critical PIPE_REJECT_REMOTE_CLIENTS protection, allowing unauthorized remote connections to local pipes.