Skip to content

ospfd: Solved crash in OSPF TE parsing (backport #15431) - #15439

Merged
riw777 merged 1 commit into
dev/10.0from
mergify/bp/dev/10.0/pr-15431
Feb 27, 2024
Merged

ospfd: Solved crash in OSPF TE parsing (backport #15431)#15439
riw777 merged 1 commit into
dev/10.0from
mergify/bp/dev/10.0/pr-15431

Conversation

@mergify

@mergify mergify Bot commented Feb 27, 2024

Copy link
Copy Markdown

This is an automatic backport of pull request #15431 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

Iggy Frankovic discovered an ospfd crash when perfomring fuzzing of OSPF LSA
packets. The crash occurs in ospf_te_parse_te() function when attemping to
create corresponding egde from TE Link parameters. If there is no local
address, an edge is created but without any attributes. During parsing, the
function try to access to this attribute fields which has not been created
causing an ospfd crash.

The patch simply check if the te parser has found a valid local address. If not
found, we stop the parser which avoid the crash.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
(cherry picked from commit a73e66d)

@riw777 riw777 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@riw777
riw777 merged commit 80209ef into dev/10.0 Feb 27, 2024
@mergify
mergify Bot deleted the mergify/bp/dev/10.0/pr-15431 branch February 27, 2024 19:16
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.

1 participant