]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix error handling when receiving BGP Prefix SID attribute
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 27 Mar 2024 16:42:56 +0000 (18:42 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 6 May 2024 01:10:53 +0000 (01:10 +0000)
commit9b0d3e7ce4ff1e4ed70639f49b8da583c20b41cc
tree96ff5ac7afc8fa4e750c467c344ee55818d35292
parent44c0ea26cb127ce122e2761290ec012d17064fe1
bgpd: Fix error handling when receiving BGP Prefix SID attribute

Without this patch, we always set the BGP Prefix SID attribute flag without
checking if it's malformed or not. RFC8669 says that this attribute MUST be discarded.

Also, this fixes the bgpd crash when a malformed Prefix SID attribute is received,
with malformed transitive flags and/or TLVs.

Reported-by: Iggy Frankovic <iggyfran@amazon.com>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit ba6a8f1a31e1a88df2de69ea46068e8bd9b97138)
bgpd/bgp_attr.c