summaryrefslogtreecommitdiff
path: root/lib/command_py.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2024-04-16 16:42:06 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-05-28 17:40:07 +0300
commit1a35a2c0667b34f8472eacabde8182abb67ddee4 (patch)
tree4d15ab2f034c63c995cbf9fafe8a0b676c489e84 /lib/command_py.c
parentcd20a74a745e4e8b31921aa5589c6f3978d60396 (diff)
ospfd: protect call to get_edge() in ospf_te.c
During fuzzing, Iggy Frankovic discovered that get_edge() function in ospf_te.c could return null pointer, in particular when the link_id or advertised router IP addresses are fuzzed. As the null pointer returned by get_edge() function is not handlei by calling functions, this could cause ospfd crash. This patch introduces new verification of returned pointer by get_edge() function and stop the processing in case of null pointer. In addition, link ID and advertiser router ID are validated before calling ls_find_edge_by_key() to avoid the creation of a new edge with an invalid key. CVE-2024-34088 Co-authored-by: Iggy Frankovic <iggyfran@amazon.com> Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'lib/command_py.c')
0 files changed, 0 insertions, 0 deletions