Rustls vulnerable to an infinite loop in rustls::conn::ConnectionCommon::complete_io() with proper client input
rustls
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| rustls crates.io |
|
|
rustls
| Product | Affected | Fixed in |
|---|---|---|
| rustls crates.io |
|
|
Rustls is a modern TLS library written in Rust. `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input. When using a blocking rustls server, if a client send a `close_notify` message immediately after `client_hello`, the server's `complete_io` will get in an infinite loop. This vulnerability is fixed in 0.23.5, 0.22.4, and 0.21.11.
From the CVE record · GitHub_M
In rustls, `ConnectionCommon::complete_io` can enter an infinite loop on a blocking server. A network client can trigger it by sending `close_notify` immediately after `client_hello`; no authentication or user interaction is described.
Engineers running blocking servers with affected rustls crates.io versions, including 0.20 and versions before 0.21.11, 0.22.4, or 0.23.5, should check their dependencies.