]> git.ipfire.org Git - thirdparty/bird.git/commit
BFD: Fix crash related to reconfiguration and passwords oz-test2
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 27 Mar 2025 16:43:56 +0000 (17:43 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 27 Mar 2025 16:43:56 +0000 (17:43 +0100)
commit509d0f3b8cd1f8a6ed2ae0e00257349ba9b9f942
treec04bf1103e9c65770f78ba2b3381d7933bf59727
parent938515a4f9556cca057174995f98bb337453e5e0
BFD: Fix crash related to reconfiguration and passwords

Any change in BFD iface configuration should trigger session
reconfiguration, as config is copied into the bfd_session structure
and not just accessed through the bfd_iface structure.

As bfd_session now contains a pointer to the password list allocated
from the configuration, forgetting to update the bfd_session causes
use-after-free.

Thanks to Lexi Winter for the bugreport.
proto/bfd/bfd.c