summaryrefslogtreecommitdiff
path: root/pimd/pim_errors.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2024-04-05 12:57:11 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-24 19:32:17 +0000
commitfc77daa322580961f2f18afb4747e9f33a36cb67 (patch)
treec860f917a321036fb96a6439ea58f45e51c4a8b9 /pimd/pim_errors.c
parent64bf99d572f66cfc6394b0d58cca2f7fc9f28b12 (diff)
ospfd: Correct Opaque LSA Extended parser
Iggy Frankovic discovered another ospfd crash when performing fuzzing of OSPF LSA packets. The crash occurs in ospf_te_parse_ext_link() function when attemping to read Segment Routing Adjacency SID subTLVs. The original code doesn't check if the size of the Extended Link TLVs and subTLVs have the correct length. In presence of erronous LSA, this will cause a buffer overflow and ospfd crashes. This patch introduces new verification of the subTLVs size for Extended Link TLVs and subTLVs. Similar check has been also introduced for the Extended Prefix TLV. Co-authored-by: Iggy Frankovic <iggyfran@amazon.com> Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com> (cherry picked from commit 5557a289acdaeec8cc63ffc97b5c2abf6dee7b3a)
Diffstat (limited to 'pimd/pim_errors.c')
0 files changed, 0 insertions, 0 deletions