BIRD crashing when disabled OSPF protocol state is requested

Ondřej Caletka Ondrej.Caletka at cesnet.cz
Thu Jan 23 15:56:02 CET 2014


Hi,

I think I found a bug in BIRD (tested with versions 1.3.9 and 1.4.0).
When OSPF state is requested for a disabled OSPF protocol, the BIRD
process segfaults.

Steps to reproduce:

1. use this bird.conf:
----cut here----
protocol device {
        scan time 10;
}

protocol kernel {
        persist;
}

protocol ospf something {
        disabled;
        area 0.0.0.0 {
                interface "dummy*";
        };
}
----cut here----

2. run bird

3. query for protocol state:
   # birdc show ospf state something

4. BIRD crashes

I guess there is some null-pointer dereference in the ospf_sh_state
function.

Regards,

Ondřej Caletka,
CESNET

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5563 bytes
Desc: Elektronicky podpis S/MIME
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20140123/ea3ea3ad/attachment.p7s>


More information about the Bird-users mailing list