]> git.proxmox.com Git - mirror_frr.git/commit - lib/zclient.c
lib: Check prefix length from zebra is sensible
authorPaul Jakma <paul.jakma@hpe.com>
Tue, 9 Feb 2016 15:23:03 +0000 (15:23 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 16:12:17 +0000 (12:12 -0400)
commitd91788284ed910bcf945c01ceb18334423cc352d
tree9f79d7d56a5e5d7abb7455d01c4c8b832e1dc243
parent6b143a68d3a44be42f2370b9d91409eceb14cebd
lib: Check prefix length from zebra is sensible

* zclient.c: prefix length on router-id and interface address add
  messages not sanity checked.  fix.

* */*_zebra.c: Prefix length on zebra route read was not checked, and
  clients use it to write to storage.  An evil zebra could overflow
  client structures by sending overly long prefixlen.

Prompted by discussions with:

Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_zebra.c
isisd/isis_zebra.c
lib/zclient.c
ospf6d/ospf6_zebra.c
ospfd/ospf_zebra.c
ripd/rip_zebra.c
ripngd/ripng_zebra.c