]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Fix heap corruption vulnerability when parsing SR-Algorithm TLV 16862/head
authorAcee Lindem <acee@lindem.com>
Wed, 18 Sep 2024 18:09:19 +0000 (18:09 +0000)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Wed, 18 Sep 2024 23:56:49 +0000 (23:56 +0000)
commit9da029884c2c1d852c0f69e5f05b6cc3a3817b82
tree0fd0f013f616dc1cfdaf5c74f61745ad3f94c6c5
parenta099561cb49c82dacdeed6481ecb01808417c49a
ospfd: Fix heap corruption vulnerability when parsing SR-Algorithm TLV

When parsing the SR-Algorithm TLV in the OSPF Router Information Opaque
LSA, assure that not more than the maximum number of supported
algorithms are copied from the TLV.

Signed-off-by: Acee Lindem <acee@lindem.com>
(cherry picked from commit 0dc969185fdd75fd007c9b29e11be57a078236df)
ospfd/ospf_sr.c