]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix mishandled attribute length 1418/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 23 Oct 2017 20:43:32 +0000 (16:43 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 7 Nov 2017 00:20:19 +0000 (19:20 -0500)
commit49ba74611fd0e09045f4b9b247169f13aa364471
treedbc18f0f1abaca33de3fcac4088d63f30fe1da30
parentb13553ee694a2ecebd156d3775b4e9ff846d2293
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