CVE-2025-4432: Ring: some aes functions may panic when overflow checking is enabled in ring

Published Mar 7, 2025
·
Updated

ring::aead::quic::HeaderProtectionKey::newmask() 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 232 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES128GCM, AES256GCM} 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.

Other sources

A flaw was found in Rust's Ring package. A panic may be triggered when overflow checking is enabled. In the QUIC protocol, this flaw allows an attacker to induce this panic by sending a specially crafted packet. It will likely occur unintentionally in 1 out of every 232 packets sent or received.

GitHub

Ring: some aes functions may panic when overflow checking is enabled in ring

Microsoft

Affected Software

7 affected componentsFixes available
Rust Ring
rust/ring<0.17.13
0.17.13
Microsoft azl3 kata-containers 3.15.0.aks0-1
Microsoft azl3 rust 1.86.0-10
Microsoft azl3 kata-containers-cc 3.15.0.aks0-1
Microsoft azl3 python-tensorboard 2.16.2-6
Microsoft azl3 rust 1.75.0-22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/ring to a version that resolves this vulnerability.

    Fixed in 0.17.13
  2. Upgrade

    Upgrade rust/ring to a version that resolves this vulnerability.

    Fixed in 0.17.12
  3. Configuration

    Disable overflow checking so the panic condition in ring does not occur (overflow checking is overridden by RUSTFLAGS="-C overflow-checks" or overflow-checks=true in Cargo.toml profile).

    Rust (compiler) / Cargo profiles overflow-checks (via -C overflow-checks or overflow-checks=true) = disable (do not set RUSTFLAGS="-C overflow-checks" and set overflow-checks=false)
  4. Configuration

    Ensure overflow checking is not enabled for the target build (overflow checking is usually enabled by default in debug mode).

    Rust (compiler) / Cargo profiles overflow-checks (debug mode) = disable for affected builds
  5. Compensating control

    For QUIC deployments, reduce exposure by ensuring the application processes QUIC traffic in a way that prevents the specially-crafted packets from being able to trigger ring panics (e.g., deploy network-level filtering/inspection to block maliciously crafted QUIC packets).

Event History

Mar 7, 2025
Advisory Published
via GitHub·04:23 PM
Data Sourced
via GitHub·04:23 PM
DescriptionWeaknessAffected Software
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software
May 9, 2025
CVE Published
via MITRE·04:06 PM
Data Sourced
via MITRE·04:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:30 PM
Aug 6, 2025
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·12:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-4432?

CVE-2025-4432 has a moderate severity as it can lead to a denial of service through a panic in the QUIC protocol.

2

How do I fix CVE-2025-4432?

To fix CVE-2025-4432, upgrade the Rust Ring library to version 0.17.13 or later.

3

What causes the panic in CVE-2025-4432?

The panic in CVE-2025-4432 is caused by overflow checking in the `ring::aead::quic::HeaderProtectionKey::new_mask()` function when processing specially-crafted QUIC packets.

4

Who is affected by CVE-2025-4432?

CVE-2025-4432 affects users of the Rust Ring library that utilize QUIC protocol implementations.

5

Is CVE-2025-4432 being actively exploited?

Currently, there have been no reported active exploits for CVE-2025-4432, but potential exploitation could occur given the nature of the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203