Skip to content

Conversation

stasos24
Copy link

Some AES functions may panic when overflow checking is enabled.

Reported
March 6, 2025
Issued
March 6, 2025
Package
ring (crates.io)
Type
Vulnerability
Categories
denial-of-service
References
https://github.com/briansmith/ring/blob/main/RELEASES.md#version-01712-2025-03-05
Patched

=0.17.12
Description
ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.

@stasos24
Copy link
Author

@rushmorem @briansmith @opax7 @danielyule

May i kindly ask you to merge a fix of vulnerability? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant