# GHSA-3g6h-r5qx-f6hq: Peer minimum ACK delay can panic quinn-proto when ACK_FREQUENCY transmission is enabled

- Severity: High 7.5 (CVSS:3.1, scored by RustSec Advisory Database) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-09-14T12:00:00.000Z
- Modified: 2026-10-12T18:15:01.975Z
- Also known as: RUSTSEC-2026-0340

## Description

When sending ACK_FREQUENCY frames is enabled through
`TransportConfig::ack_frequency_config(Some(..))`, the peer's transport parameters could cause
`AckFrequencyState::candidate_max_ack_delay` to call `Duration::clamp` with a minimum greater
than its maximum, which panics.

For example, a peer advertising a `min_ack_delay` of 100,000 microseconds and a `max_ack_delay`
of 100 milliseconds passes transport parameter validation. At a 5 ms RTT, the lower bound of the
clamp becomes 100 ms while the upper bound is 25 ms, violating the precondition of `clamp` and
panicking while driving the connection. Both automatically derived and explicitly configured
maximum ACK delays use this calculation.

Sending ACK_FREQUENCY frames is disabled by default, so only endpoints that opt in are affected.

The flaw was corrected in 0.11.18 by computing the delay with explicit minimum and maximum bounds
instead of `clamp`.

Thanks to [@zerox80](https://github.com/zerox80) for reporting this issue.

(As written by RustSec Advisory Database.)

## Affected

- quinn-proto (crates.io): from 0.11.0 before 0.11.18

## References

- <https://crates.io/crates/quinn-proto> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0340.html> (advisory)
- <https://github.com/quinn-rs/quinn/pull/2868> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0340](https://rustsec.org/advisories/RUSTSEC-2026-0340.html), CC0-1.0, modified 2026-10-12

---

Page: https://cve.day/GHSA-3g6h-r5qx-f6hq · Whole record: https://cve.day/GHSA-3g6h-r5qx-f6hq.json · Rebuilt by cve.day 2026-11-25T22:56:43.426Z
