]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Solved crash in OSPF TE parsing 15441/head
authorOlivier Dugeon <olivier.dugeon@orange.com>
Mon, 26 Feb 2024 09:40:34 +0000 (10:40 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 27 Feb 2024 15:42:56 +0000 (15:42 +0000)
commitaae54e20498974cb026bd0e2649ca3e753090492
treeed7b8bba599b0d97a9c86ca64a79947af9245782
parentb914e4a216f296d84cd1d717dbd7bbcaa9439002
ospfd: Solved crash in OSPF TE parsing

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 a73e66d07329d721f26f3f336f7735de420b0183)
ospfd/ospf_te.c