]> 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>
Mon, 31 Mar 2025 10:57:50 +0000 (12:57 +0200)
commit34379ce5a18b89f5fae179d23c2208ec86bd936a
tree5f75602f69d8f3d6cf3f1dc7fa097fc5e2e2dd99
parent35f4ada0856061cb60f216282934c71264c2525f
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