Description
bgpq4 before 1.17 contains an integer overflow vulnerability in expander.c that allows malicious IRR servers to corrupt heap memory by sending crafted A<len> replies. Attackers controlling the IRR server or tampering with the plaintext TCP connection can announce a ULONG_MAX or -1 length, wrapping the allocation to one byte and crashing bgpq4.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| bgpq4 | bgpq4 | < 1.17 | 1.17 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | bgpq4 | No fix yet | — |
| Debian 13 | bgpq4 | No fix yet | — |
| Debian 12 | bgpq4 | No fix yet | — |
References
- https://github.com/bgp/bgpq4/pull/141 issue-tracking patch
- https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a patch
- https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5 patch
- bgpq4 1.17 Release Notes release-notes
- https://github.com/bgp/bgpq4/blob/1.17/CHANGES release-notes
- https://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771 technical-description
- https://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958 technical-description
- VulnCheck Advisory: bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling third-party-advisory