Quagga: Arbitrary code execution — GLSA 201610-03

A buffer overflow in Quagga might allow remote attackers to execute arbitrary code.

Affected packages

net-misc/quagga on all architectures
Affected versions < 1.0.20160315
Unaffected versions >= 1.0.20160315

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"
 

References

Release date
October 10, 2016

Latest revision
October 10, 2016: 1

Severity
high

Exploitable
remote

Bugzilla entries