Quagga: Arbitrary code execution

2016-10-10T00:00:00
ID GLSA-201610-03
Type gentoo
Reporter Gentoo Foundation
Modified 2016-10-10T00:00:00

Description

Background

Quagga is a free routing daemon replacing Zebra supporting RIP, OSPF and BGP.

Description

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.

Impact

A remote attacker could send a specially crafted packet, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All Quagga users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=net-misc/quagga-1.0.20160315"