Double free in Quagga bgpd
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 6 fixed, 2 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-415 and the CVSS impact.
Summary
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing certain forms of UPDATE message, containing cluster-list and/or unknown attributes. A successful attack could cause a denial of service or potentially allow an attacker to execute arbitrary code.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Quagga | bgpd | bpgd to before 1.2.3 | 1.2.3 | Patch available | CNA |
- bgpd VendorQuagga Affected bpgd to before 1.2.3 Fixed in 1.2.3 Patch available CNA
CPE configurations NVD · 18
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:quagga:quagga:*:*:*:*:*:*:*:* | up to 1.2.2 | Vulnerable | Quagga |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* | 17.10 | Vulnerable | Canonical |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
- cpe:2.3:a:quagga:quagga:*:*:*:*:*:*:*:* Versions up to 1.2.2 Vulnerable ·Quagga
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
Show 8 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* | 7.5 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:siemens:ruggedcom_rox_ii_firmware:*:*:*:*:*:*:*:* | before 2.13.0 | Vulnerable | Siemens |
| cpe:2.3:h:siemens:ruggedcom_rox_ii:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Siemens |
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* Versions 7.5 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:siemens:ruggedcom_rox_ii_firmware:*:*:*:*:*:*:*:* Versions before 2.13.0 Vulnerable ·Siemens
- cpe:2.3:h:siemens:ruggedcom_rox_ii:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Siemens
Remediation
- Fix · CNA bgpd (Quagga) Fixed in 1.2.3
Red Hat 1 advisory
- RHSA-2018:0377 Released 2018-02-28 · Red Hat rating Importantquagga security update
- Red Hat Enterprise Linux Server (v. 7) quagga-0.99.22.4-5.el7_4, quagga-0.99.22.4-5.el7_4.ppc
- Red Hat Enterprise Linux Server Optional (v. 7) quagga-contrib-0.99.22.4-5.el7_4, quagga-devel-0.99.22.4-5.el7_4, quagga-devel-0.99.22.4-5.el7_4.ppc
- Red Hat Enterprise Linux Workstation (v. 7) quagga-0.99.22.4-5.el7_4
- Red Hat Enterprise Linux Workstation Optional (v. 7) quagga-contrib-0.99.22.4-5.el7_4, quagga-devel-0.99.22.4-5.el7_4
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) quagga-0.99.22.4-5.el7_4
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) quagga-contrib-0.99.22.4-5.el7_4, quagga-devel-0.99.22.4-5.el7_4
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Quagga bgpd — GLSA-201804-17
4 records Highest priority Priority HIGH 2 HIGH, 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2018-03911 Memory corruption in Quagga bgpdPriority HIGH 70
- TI-2018-03914 Infinite loop in Quagga bgpdPriority MEDIUM 56
- TI-2018-03913 Out-of-bounds read in Quagga bgpdPriority LOW 36
- Advisory ·
Quagga bgpd — USN-3573-1
4 records Highest priority Priority HIGH 2 HIGH, 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2018-03911 Memory corruption in Quagga bgpdPriority HIGH 70
- TI-2018-03914 Infinite loop in Quagga bgpdPriority MEDIUM 56
- TI-2018-03913 Out-of-bounds read in Quagga bgpdPriority LOW 36
Show 1 more group
- Advisory ·
Quagga bgpd — DSA-4115
4 records Highest priority Priority HIGH 2 HIGH, 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2018-03911 Memory corruption in Quagga bgpdPriority HIGH 70
- TI-2018-03914 Infinite loop in Quagga bgpdPriority MEDIUM 56
- TI-2018-03913 Out-of-bounds read in Quagga bgpdPriority LOW 36
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:0377 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:0377 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:0377 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2018:0377 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:0377 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:0377 |
Not affected: 1 product
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2018-5379
- 2026-10-03 Alias added: GHSA-5prq-47x2-38gv
References
Advisory 9
- USN-3573-1
- DSA-4115
- http://savannah.nongnu.org/forum/forum.php?forum_id=9095
- GLSA-201804-17
- https://gogs.quagga.net/Quagga/quagga/src/master/doc/security/Quagga-2018-1114.txt
- [debian-lts-announce] 20180216 [SECURITY] [DLA 1286-1] quagga security update
- VU#940439
- RHSA-2018:0377
- https://cert-portal.siemens.com/productcert/pdf/ssa-451142.pdf
More Quagga vulnerabilities
- TI-2018-03911 Memory corruption in Quagga bgpd CVSS 3.0HIGH 7.1
- TI-2017-11946 The aspath_put function in bgpd/bgp_aspath.c in Quagga before 1.2.2 allows remote… CVSS 3.0HIGH 7.5
- TI-2018-03914 Infinite loop in Quagga bgpd CVSS 3.0HIGH 7.5
- TI-2017-03515 All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory… CVSS 3.0HIGH 7.5
- TI-2016-02105 The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in… CVSS 3.0HIGH 8.1
- TI-2016-01143 Memory corruption in Quagga before 1.0.20161017 CVSS 3.0CRITICAL 9.8
Sources
- CVE-2018-5379 · CVE Program
- CVE-2018-5379 · NVD
- FIRST EPSS
- GHSA-5prq-47x2-38gv · GitHub Advisory Database · CC BY 4.0
- CVE-2018-5379 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences