]> 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)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 28 Mar 2024 15:26:00 +0000 (17:26 +0200)
commitba6a8f1a31e1a88df2de69ea46068e8bd9b97138
tree2f26681ccd0f2e5e79cede669829efb1be74c243
parent67aaa4b076a81bb5e6608bd49dd7eaf05b88cc69
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>
bgpd/bgp_attr.c