]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix mishandled attribute length 1417/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 23 Oct 2017 20:43:32 +0000 (16:43 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 6 Nov 2017 23:38:05 +0000 (18:38 -0500)
commitdacffad46143fb57e5fa973fcbfbd0eb51ea37b2
tree9eaabf1bf0ee69b951a3d46a43b3f080ad898565
parent11567ce5a05eb4e520eff576e8269741dc64edc4
bgpd: fix mishandled attribute length

A crafted BGP UPDATE with a malformed path attribute length field causes
bgpd to dump up to 65535 bytes of application memory and send it as the
data field in a BGP NOTIFY message, which is truncated to 4075 bytes
after accounting for protocol headers. After reading a malformed length
field, a NOTIFY is generated that is supposed to contain the problematic
data, but the malformed length field is inadvertently used to compute
how much data we send.

CVE-2017-15865

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_attr.c