CVE-2026-138151
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-138151 NameCVE-2026-138151 Descriptionbgpq4 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.…
CVE-2026-138151
| Name | CVE-2026-138151 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| bgpq4 (PTS) | bookworm | 1.9-1 | vulnerable |
| trixie | 1.12-1 | vulnerable | |
| forky, sid | 1.16-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| bgpq4 | source | (unstable) | (unfixed) | unimportant |
Notes
https://github.com/bgp/bgpq4/pull/141
https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a (1.17)
https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5 (1.17)
Crash in CLI tool, no security impact
Apply commands
https://github.com/bgp/bgpq4/pull/141https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a (1.17)https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5 (1.17)Crash in CLI tool, no security impact
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | bgpq4 |
Affected | — |
| sid | bgpq4 |
Fixed | 1.17-1 |
| forky | bgpq4 |
Affected | — |
| bookworm | bgpq4 |
Affected | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| bgpq4 | bgpq4 | {"endExcluding":"1.17"} | 1.17 |
References
- https://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771
- https://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958
- https://github.com/bgp/bgpq4/blob/1.17/CHANGES
- https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5
- https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a
- https://github.com/bgp/bgpq4/pull/141
- https://github.com/bgp/bgpq4/releases/tag/1.17
- https://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling
- https://security-tracker.debian.org/tracker/CVE-2026-138151
CWEs
CWE-190
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.