Skip to content
Heist/ feed
Back to feed
High

ngtcp2 — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-52811

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.

Products
ngtcp2
Affected versions
0.1.0+dfsg-1, 0.1.0+dfsg-1ubuntu0.1~esm1, 0.12.1+dfsg-1, 0.12.1+dfsg-1+deb12u1build0.24.04.1, 0.12.1+dfsg-1build1, 0.12.1+dfsg-1build2, 0~20210905-1, 1.11.0-1, 1.11.0-1+deb13u1build0.25.10.1, 1.16.0-1, 1.16.0-1ubuntu0.1, 1.22.1-1, 1.24.0-1, 1.24.0-1build1
Fixed versions
Not specified
CVEs
CVE-2024-52811
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:10 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-52811

core-osv · Original source

Published 25 Nov 2024, 19:15 UTC

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.

osv:UBUNTU-CVE-2024-52811

ngtcp2

Fixed versions: Not specified

ngtcp2

Fixed versions: Not specified

ngtcp2

Fixed versions: Not specified

ngtcp2

Fixed versions: Not specified

ngtcp2

Fixed versions: Not specified

Complete source record
{
  "id": "b8a591e801247727be6042749d272bccfa0799a4465ed4a6a41d918b1580b27e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-52811",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-52811",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2024-52811",
    "products": [
      {
        "name": {
          "value": "ngtcp2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0~20210905-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.1.0+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.1.0+dfsg-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ngtcp2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.12.1+dfsg-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.12.1+dfsg-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.12.1+dfsg-1build2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.12.1+dfsg-1+deb12u1build0.24.04.1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ngtcp2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.11.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.11.0-1+deb13u1build0.25.10.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ngtcp2",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.16.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.22.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.24.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.24.0-1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ngtcp2",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.11.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.16.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.16.0-1ubuntu0.1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2024-52811",
      "aliases": [
        "UBUNTU-CVE-2024-52811"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ngtcp2",
            "purl": "pkg:deb/ubuntu/ngtcp2?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "0~20210905-1",
            "0.1.0+dfsg-1",
            "0.1.0+dfsg-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52811.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libngtcp2-0",
                "binary_version": "0.1.0+dfsg-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "libngtcp2-crypto-gnutls0",
                "binary_version": "0.1.0+dfsg-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "ngtcp2-client",
                "binary_version": "0.1.0+dfsg-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "ngtcp2-server",
                "binary_version": "0.1.0+dfsg-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ngtcp2",
            "purl": "pkg:deb/ubuntu/ngtcp2?arch=source&distro=noble",
            "ecosystem": "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52811.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libngtcp2-9",
                "binary_version": "0.12.1+dfsg-1+deb12u1build0.24.04.1"
              },
              {
                "binary_name": "libngtcp2-crypto-gnutls2",
                "binary_version": "0.12.1+dfsg-1+deb12u1build0.24.04.1"
              },
              {
                "binary_name": "ngtcp2-client",
                "binary_version": "0.12.1+dfsg-1+deb12u1build0.24.04.1"
              },
              {
                "binary_name": "ngtcp2-server",
                "binary_version": "0.12.1+dfsg-1+deb12u1build0.24.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ngtcp2",
            "purl": "pkg:deb/ubuntu/ngtcp2?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.11.0-1",
            "1.11.0-1+deb13u1build0.25.10.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52811.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libngtcp2-16",
                "binary_version": "1.11.0-1+deb13u1build0.25.10.1"
              },
              {
                "binary_name": "libngtcp2-crypto-gnutls8",
                "binary_version": "1.11.0-1+deb13u1build0.25.10.1"
              },
              {
                "binary_name": "ngtcp2-client",
                "binary_version": "1.11.0-1+deb13u1build0.25.10.1"
              },
              {
                "binary_name": "ngtcp2-server",
                "binary_version": "1.11.0-1+deb13u1build0.25.10.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ngtcp2",
            "purl": "pkg:deb/ubuntu/ngtcp2?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.16.0-1",
            "1.22.1-1",
            "1.24.0-1",
            "1.24.0-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52811.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libngtcp2-16",
                "binary_version": "1.24.0-1build1"
              },
              {
                "binary_name": "libngtcp2-crypto-gnutls8",
                "binary_version": "1.24.0-1build1"
              },
              {
                "binary_name": "libngtcp2-crypto-ossl0",
                "binary_version": "1.24.0-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ngtcp2",
            "purl": "pkg:deb/ubuntu/ngtcp2?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.11.0-1",
            "1.16.0-1",
            "1.16.0-1ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-52811.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libngtcp2-16",
                "binary_version": "1.16.0-1ubuntu0.1"
              },
              {
                "binary_name": "libngtcp2-crypto-gnutls8",
                "binary_version": "1.16.0-1ubuntu0.1"
              },
              {
                "binary_name": "libngtcp2-crypto-ossl0",
                "binary_version": "1.16.0-1ubuntu0.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:40.195107751Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-52811"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-52811",
        "https://www.cve.org/CVERecord?id=CVE-2024-52811",
        "https://github.com/ngtcp2/ngtcp2/security/advisories/GHSA-4gmv-gf46-r4g5",
        "https://github.com/ngtcp2/ngtcp2/commit/44b662bd139c23fee1703bf256c13349e2e624a1",
        "https://github.com/ngtcp2/ngtcp2/commit/e550c1a414318d0f3f01fca1a621ae0b0428ca15"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-52811",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355931,
  "published_at": "2024-11-25T19:15:00+00:00"
}