]> git.puffer.fish Git - matthieu/frr.git/commit
isisd: fix use after free
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 14 Dec 2021 13:28:08 +0000 (16:28 +0300)
committermergify-bot <noreply@mergify.com>
Thu, 16 Dec 2021 14:42:33 +0000 (14:42 +0000)
commit99512b83ab19995174e7c05e22b194ce2360a964
tree97dfa2b5711a16fbf8d698b366ece6a978e62c5c
parent7bdb7f274ca47e2327060f76297b2c4cb4ef38c3
isisd: fix use after free

Pointers to the adjacency must be cleared only when the adjacency is
deleted. Otherwise, when the ISIS router is deleted later, the adjacency
is not deleted and a crash happens because of UAF.

Fixes #10209.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 7209d2a4cca79fc823b65cc5854f06debb2ac448)
isisd/isis_adjacency.c