Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: Fix error handling when receiving BGP Prefix SID attribute (backport #15628) #15657

Merged
merged 2 commits into from Apr 3, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Apr 2, 2024


This is an automatic backport of pull request #15628 done by [Mergify](https://mergify.com).

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 ba6a8f1)
If we receive an attribute that is handled by bgp_attr_malformed(), use
treat-as-withdraw behavior for unknown (or missing to add - if new) attributes.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit babb23b)
@frrbot frrbot bot added the bgp label Apr 2, 2024
@ton31337 ton31337 merged commit 489fc4f into stable/9.1 Apr 3, 2024
12 checks passed
@ton31337 ton31337 deleted the mergify/bp/stable/9.1/pr-15628 branch April 3, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant