CVE-2024-52811
CVE-2024-52811 · Acks not validated before logged to qlog leads to buffer overflow in ngtcp2
CVSS 8.2 · High · EPSS 1.2%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- ngtcp2No fix published
- ngtcp2 Ubuntu Pro 22.04 LTSNo fix published
- ngtcp2 Ubuntu 24.04 LTSNo fix published
- ngtcp2 Ubuntu 25.10No fix published
- and 2 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ngtcp2"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
The ngtcp2 project is an effort to implement IETF QUIC protocol in C. In affected versions acks are not validated before being written to the qlog leading to a buffer overflow. In `ngtcp2_conn::conn_recv_pkt` for an ACK, there was new logic that got added to skip `conn_recv_ack` if an ack has already been processed in the payload. However, this causes us to also skip `ngtcp2_pkt_validate_ack`. The ack which was skipped still got written to qlog. The bug occurs in `ngtcp2_qlog::write_ack_frame`. It is now possible to reach this code with an invalid ack, suppose `largest_ack=0` and `first_ack_range=15`. Subtracting `largest_ack - first_ack_range` will lead to an integer underflow which is 20 chars long. However, the ngtcp2 qlog code assumes the number written is a signed integer and only accounts for 19 characters of overhead (see `NGTCP2_QLOG_ACK_FRAME_RANGE_OVERHEAD`). Therefore, we overwrite the buffer causing a heap overflow. This is high priority and could potentially impact many users if they enable qlog. qlog is disabled by default. Due to its overhead, it is most likely used for debugging purpose, but the actual use is unknown. ngtcp2 v1.9.1 fixes the bug and users are advised to upgrade. Users unable to upgrade should not turn on qlog.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2025:14766-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
ngtcp2
- Versions
- = 1.9.0: Affected
No fix published
ngtcp2 Ubuntu Pro 22.04 LTS
- Versions
- 0~20210905-1
- 0.1.0+dfsg-1
- 0.1.0+dfsg-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ngtcp2 Ubuntu 24.04 LTS
- Versions
- 0.12.1+dfsg-1
- 0.12.1+dfsg-1build1
- 0.12.1+dfsg-1build2
- 0.12.1+dfsg-1+deb12u1build0.24.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ngtcp2 Ubuntu 25.10
- Versions
- 1.11.0-1
- 1.11.0-1+deb13u1build0.25.10.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ngtcp2 Ubuntu 26.10
- Versions
- 1.16.0-1
- 1.22.1-1
- 1.24.0-1
- 1.24.0-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ngtcp2 Ubuntu 26.04 LTS
- Versions
- 1.11.0-1
- 1.16.0-1
- 1.16.0-1ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published