Quagga bgpd with BGP peers enabled for VPNv4 contains a buffer overflow vulnerability
Original Release date: 10 Mar 2016 | Last revised: 10 Mar 2016
Quagga, version 0.99.24.1 and earlier, contains a buffer overflow vulnerability in bgpd with BGP peers enabled for VPNv4 that may leveraged to gain code execution.
CWE-121: Stack-based Buffer Overflow – CVE-2016-2342
Quagga is a software routing suite that implements numerous routing protocols for Unix-based platforms.
A memcpy function in the VPNv4 NLRI parser of bgp_mplsvpn.c does not properly check the upper-bound length of received Labeled-VPN SAFI routes data, which may allow for arbitrary code execution on the stack. Note that hosts are only vulnerable if bgpd is running with BGP peers enabled for VPNv4, which is not a default configuration.
For more details, refer to the Quagga changelog and commit notes.
A malicious BGP peer may execute arbitrary code in particularly configured remote bgpd hosts.
Apply an updateQuagga has released version 1.0.20160309 which addresses this issue.
Vendor Information (Learn More)
24 Nov 2015
10 Mar 2016
If you are a vendor and your product is affected, let us know.
CVSS Metrics (Learn More)
Thanks to Kostya Kortchinsky for reporting this vulnerability.
This document was written by Joel Land.
CVE IDs: CVE-2016-2342
Date Public: 10 Mar 2016
Date First Published: 10 Mar 2016
Date Last Updated: 10 Mar 2016
Document Revision: 12
If you have feedback, comments, or additional information about this vulnerability, please send us email.