The processing of IPv6 Type 0 Routing Headers can lead to denial of service exploits, as discussed in a recent publicly published paper (see link below). Current "Best Practices" encourage disabling processing of RH0 extension headers, since they are of extremely limited value. All current releases of JUNOS are susceptible to this vulnerability. The following packet types may trigger the vulnerability:
A firewall filter can be used to silently discard all IPv6 datagrams that contain the RH0 extension. The following firewall filter will cause packets containing the RH0 extension header to be silently discarded.
firewall { family inet6 { filter filter_v6_rh { term 0 { from { next-header [hop-by-hop routing]; } then { discard; } } } } }
hop-by-hop
routing
0
43
This filter will cause all packets in which the first extension header is a hop-by-hop or routing options header to be discarded; this includes both transit packets and packets addressed to the router itself. Note that the impact of stopping hop by hop packets may have consequences for IPv6 operations such MLD and Router Alert.