# GHSA-6pp4-4cxf-xf88: Receive loop can spin after a truncated datagram

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-09-30T12:00:00.000Z
- Modified: 2026-11-13T12:45:08.844Z
- Also known as: RUSTSEC-2026-0538

## Description

Some targets read one datagram per `recvmsg` call instead of using `recvmmsg`: Apple platforms without the `fast-apple-datapath` feature, OpenBSD, NetBSD, Solaris and illumos, and from 0.6 also DragonFly BSD, Redox and GNU/Hurd. On these targets the receive loop set up its `msghdr` only once and looked at the `MSG_TRUNC` flag before checking whether `recvmsg` had failed. After a datagram larger than the receive buffer was dropped, a following `EAGAIN` still saw the old truncation flag. The loop then kept issuing non-blocking receives instead of returning `WouldBlock`.

When the receive buffer is smaller than a datagram that arrives, a remote sender can keep the task that drives the socket busy, before any QUIC packet authentication. The loop ends only when a later datagram fits in the buffer. Whether an application is exposed therefore depends on the receive buffer size it uses. Linux, Android, FreeBSD and Windows use other receive paths and are not affected.

The fix rebuilds the header before every `recvmsg` call and returns receive errors before checking the truncation flag. It is in 0.5.16 and 0.6.3.

(As written by RustSec Advisory Database.)

## Affected

- quinn-udp (crates.io): from 0.0.0-0 before 0.5.16; from 0.6.0 before 0.6.3

## References

- <https://crates.io/crates/quinn-udp> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0538.html> (advisory)
- <https://github.com/quinn-rs/quinn/commit/462865a6c33039c26076f7077c7cd7e2f997b9cd> (web)
- <https://github.com/quinn-rs/quinn/commit/6862d3dcc9a9333fc4160481b3e5e5d154d4dd36> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0538](https://rustsec.org/advisories/RUSTSEC-2026-0538.html), CC0-1.0, modified 2026-11-13

---

Page: https://cve.day/GHSA-6pp4-4cxf-xf88 · Whole record: https://cve.day/GHSA-6pp4-4cxf-xf88.json · Rebuilt by cve.day 2026-11-25T22:56:43.505Z
