Integer Overflow in bgpq4 Allows Memory Corruption via Malicious IRR Servers
CVE-2026-138151
8.2HIGH
What is CVE-2026-138151?
An integer overflow vulnerability exists in bgpq4 prior to version 1.17 within the expander.c file, which can lead to heap memory corruption. Maliciously crafted A replies from compromised IRR servers can trigger this overflow. When an IRR server is controlled by an attacker or when the plaintext TCP connection is tampered with, it can announce a length value of ULONG_MAX or -1. This manipulation causes the memory allocation to collapse to a mere byte, resulting in a crash of the bgpq4 software. Organizations using affected versions are advised to update to version 1.17 or later to mitigate this risk.
Affected Version(s)
bgpq4 0 < 1.17
