p PatchFirst

CVE-2024-52811

CVE-2024-52811 · Acks not validated before logged to qlog leads to buffer overflow in ngtcp2

CVSS 8.2 · Alta · EPSS 1,2%

Compara con tu versión instalada

Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.

  • ngtcp2Sin corrección publicada
  • ngtcp2 Ubuntu Pro 22.04 LTSSin corrección publicada
  • ngtcp2 Ubuntu 24.04 LTSSin corrección publicada
  • ngtcp2 Ubuntu 25.10Sin corrección publicada
  • y 2 más

Comprueba la versión instalada:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ngtcp2"'

Evalúa los riesgos de tu servidor

La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.

La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.

curl -fsSL https://patchfirst.dev/check.sh | sh
Comprobar tu servidor gratis →

Los canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

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.

Publicación
Actualización

Correcciones en distribuciones

Pila tecnológica: system

Productos y versiones afectados

  • ngtcp2

    Versiones
    • = 1.9.0: Afectada

    Sin corrección publicada

  • ngtcp2 Ubuntu Pro 22.04 LTS

    Versiones
    • 0~20210905-1
    • 0.1.0+dfsg-1
    • 0.1.0+dfsg-1ubuntu0.1~esm1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • ngtcp2 Ubuntu 24.04 LTS

    Versiones
    • 0.12.1+dfsg-1
    • 0.12.1+dfsg-1build1
    • 0.12.1+dfsg-1build2
    • 0.12.1+dfsg-1+deb12u1build0.24.04.1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • ngtcp2 Ubuntu 25.10

    Versiones
    • 1.11.0-1
    • 1.11.0-1+deb13u1build0.25.10.1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • ngtcp2 Ubuntu 26.10

    Versiones
    • 1.16.0-1
    • 1.22.1-1
    • 1.24.0-1
    • 1.24.0-1build1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • ngtcp2 Ubuntu 26.04 LTS

    Versiones
    • 1.11.0-1
    • 1.16.0-1
    • 1.16.0-1ubuntu0.1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

Fuentes originales

Comprueba tu servidor →