]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: fix mishandled attribute length
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:19:40 +0000 (19:19 -0500)
commit55bc81db12c24780aceb272d721c1de0794ee45e
tree598133e2dc1f06e9bc505e8743bf1f8900ea9bc6
parent9c9046679d3a257d5838c594627c0a8619c9315e
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