From b0da293537a5b2be14bda4fa1431a4dfc3869d86 Mon Sep 17 00:00:00 2001 From: Joseph Birr-Pixton Date: Fri, 19 Apr 2024 13:41:19 +0100 Subject: [PATCH] Add rustls GHSA-6g7w-8wpp-frhj --- crates/rustls/RUSTSEC-0000-0000.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 crates/rustls/RUSTSEC-0000-0000.md diff --git a/crates/rustls/RUSTSEC-0000-0000.md b/crates/rustls/RUSTSEC-0000-0000.md new file mode 100644 index 0000000000..359952c6ce --- /dev/null +++ b/crates/rustls/RUSTSEC-0000-0000.md @@ -0,0 +1,29 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "rustls" +date = "2024-04-19" +url = "https://github.com/rustls/rustls/security/advisories/GHSA-6g7w-8wpp-frhj" +categories = ["denial-of-service"] +aliases = ["GHSA-6g7w-8wpp-frhj"] +cvss = "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" + +[versions] +patched = [">= 0.23.5", ">= 0.22.4, < 0.23.0", ">= 0.21.11, < 0.22.0"] + +[affected] +functions = { "rustls::ConnectionCommon::complete_io" = ["<= 0.23.4", "<= 0.22.3", "<= 0.21.10", "0.20"] } +``` + +# `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input + +If a `close_notify` alert is received during a handshake, `complete_io` +does not terminate. + +Callers which do not call `complete_io` are not affected. + +`rustls-tokio` and `rustls-ffi` do not call `complete_io` +and are not affected. + +`rustls::Stream` and `rustls::StreamOwned` types use +`complete_io` and are affected.