]> git.ipfire.org Git - thirdparty/bird.git/commit
BFD: Fix crash related to reconfiguration and passwords
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 27 Mar 2025 16:43:56 +0000 (17:43 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 1 Apr 2025 18:37:21 +0000 (20:37 +0200)
commita511af35f15e433750d7c2c3ad04f17c8d536dcd
tree3c8f622106351006496babe0a5c4d5087924e446
parentc172a6ce7222b0afe9fcb99567f469f0084cf2f9
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