[PATCH] nexthop_compare_node: fix NULL iface dereference

Mathieu Hautebas mathieu.hautebas at gmail.com
Mon Feb 16 17:35:19 CET 2026


Hello,

I am proposing a fix for a segfault encountered in bird6, in the
nexthop_compare_node function.

This patch adds checks for validating that x->iface and y->iface are not
null before accessing their index field.

I initially proposed a fix on calico's bird fork :
https://github.com/projectcalico/bird/pull/117 but I was asked to propose
it to the official repo.

Please find the full patch attached.
Best regards,

Mathieu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20260216/bd7b0fd1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-null-checks-for-iface-before-accessing-index-in-.patch
Type: text/x-patch
Size: 694 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20260216/bd7b0fd1/attachment.bin>


More information about the Bird-users mailing list